com.ibm.portal.resolver.helper
Class DefaultDataSink
java.lang.Object
com.ibm.portal.resolver.helper.DefaultDataSink
- All Implemented Interfaces:
- Disposable, Addressable, DataSink
-
public class DefaultDataSink
- extends java.lang.Object
- implements DataSink, Addressable
Base class for DataSink implementations
- Since:
- 8.0
- Note:
This interface is designed to be implemented by clients. |
Method Summary
|
void |
dispose()
Indicate that the object will no longer be accessed |
protected Context |
getContext()
Return the current COR context |
java.util.Map<java.lang.String,java.lang.String[]> |
getParameters()
Returns an potentially unmodifiable version of the parameters used to
address the object, never null, but potentially the empty
map. |
java.net.URI |
getURI()
Return the unique identifier of the object. |
void |
setContext(Context aContext)
Assigns a new COR contetx |
protected void |
setParameters(java.util.Map<java.lang.String,java.lang.String[]> aParameters)
|
protected void |
setURI(java.net.URI aUri)
|
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultDataSink
public DefaultDataSink()
dispose
public void dispose()
- Description copied from interface: Disposable
- Indicate that the object will no longer be accessed
- Specified by:
- dispose in interface Disposable
getContext
protected Context getContext()
- Returns the current COR context
- Returns:
- the COR context
getParameters
public java.util.Map<java.lang.String,java.lang.String[]> getParameters()
- Description copied from interface: Addressable
-
Returns an potentially unmodifiable version of the parameters used to
address the object, never null, but potentially the empty
map.
The key is of type String, the values of type
String[]
- Specified by:
- getParameters in interface Addressable
- Returns:
- parameter map
getURI
public java.net.URI getURI()
- Description copied from interface: Addressable
- Returns the unique identifier of the object. The URI must contain valid
scheme information and cannot be just a relative URL.
- Specified by:
- getURI in interface Addressable
- Returns:
- URI of the object, never null.
setContext
public void setContext(Context aContext)
- Assigns a new COR contetx
- Parameters:
- aContext - the context
setParameters
protected void setParameters(java.util.Map<java.lang.String,java.lang.String[]> aParameters)
- Parameters:
- parameters - the parameters to set
setURI
protected void setURI(java.net.URI aUri)
- Parameters:
- uri - the uri to set