|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataSinkFactoryEx
Tagging interface for data sink factory.
A data sink factory is registered in the plugin.xml
of the
providing extension as a serviceHandler
CreateDataSinkFactoryEx
,
UpdateDataSinkFactoryEx
,
DeleteDataSinkFactoryEx
,
CORDataSinkFactoryEx#SINGLETON
,
PocServiceHome.getDataSinkFactory()
This interface is designed to be implemented by clients. |
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_MODE
Default value for the mode that data sinks are requested with using the data sink factory |
static java.util.Map<java.lang.String,java.lang.String[]> |
EMPTY_PARAMETERS
The empty parameters map, unmodifiable |
Method Summary | |
---|---|
DataSink |
newSink(java.net.URI uri,
java.lang.String mode,
java.util.Map<java.lang.String,java.lang.String[]> params,
java.lang.String mimeType,
Context ctx)
Generates a data sink that is able to handle an input stream of data and produces an output stream as a response. |
Field Detail |
---|
static final java.util.Map<java.lang.String,java.lang.String[]> EMPTY_PARAMETERS
static final java.lang.String DEFAULT_MODE
Method Detail |
---|
DataSink newSink(java.net.URI uri, java.lang.String mode, java.util.Map<java.lang.String,java.lang.String[]> params, java.lang.String mimeType, Context ctx) throws java.io.IOException
uri
- POCURI of the addressed resource, must not be
null
and must contain a valid scheme identifiermode
- mode constantparams
- unmodifiable parameters map (String -> String[]), may be empty
but not null
mimeType
- content type of the input datactx
- COR context, not null
DataSink
. May be null
in which case the implementation indicates that the URI will not
be processed.
java.io.IOException
- - if the data sink cannot be created
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |