@ComponentProfile(summary="Extract the service to execute from a DataInputParameter", since="3.8.4") public class ServiceFromDataInputParameter extends ServiceExtractorImpl
DataInputParameter
Wraps DataInputParameter<String>
so you can use any of those implementations as the
source of your executable service.
DynamicServiceExecutor
,
ConstantDataInputParameter
,
StringPayloadDataInputParameter
,
MetadataDataInputParameter
In the adapter configuration file this class is aliased as dynamic-service-from-data-input which is the preferred alternative to the fully qualified classname when building your configuration.
log
Constructor and Description |
---|
ServiceFromDataInputParameter() |
ServiceFromDataInputParameter(DataInputParameter<java.lang.String> input) |
Modifier and Type | Method and Description |
---|---|
DataInputParameter<java.lang.String> |
getInput() |
java.io.InputStream |
getInputStream(AdaptrisMessage m)
Get an
InputStream that can be unmarshalled into a service. |
void |
setInput(DataInputParameter<java.lang.String> input) |
getService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, init, start, stop
public ServiceFromDataInputParameter()
public ServiceFromDataInputParameter(DataInputParameter<java.lang.String> input)
public java.io.InputStream getInputStream(AdaptrisMessage m) throws java.lang.Exception
ServiceExtractor
InputStream
that can be unmarshalled into a service.getInputStream
in interface ServiceExtractor
getInputStream
in class ServiceExtractorImpl
m
- the adaptris message.java.lang.Exception
public DataInputParameter<java.lang.String> getInput()
public void setInput(DataInputParameter<java.lang.String> input)