@ComponentProfile(summary="Select the service to executed based on a MIME selector on the message") public class MimeServiceExtractor extends ServiceExtractorImpl
ServiceExtractor
implementation that uses a PartSelector
to extract where the service is.In the adapter configuration file this class is aliased as dynamic-mime-service-extractor which is the preferred alternative to the fully qualified classname when building your configuration.
log
Constructor and Description |
---|
MimeServiceExtractor() |
MimeServiceExtractor(PartSelector selector) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream(AdaptrisMessage m)
Get an
InputStream that can be unmarshalled into a service. |
PartSelector |
getSelector() |
void |
setSelector(PartSelector selector)
Set the
PartSelector implementation to use. |
getService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, init, start, stop
public MimeServiceExtractor()
public MimeServiceExtractor(PartSelector selector)
public java.io.InputStream getInputStream(AdaptrisMessage m) throws ServiceException, java.io.IOException
ServiceExtractor
InputStream
that can be unmarshalled into a service.getInputStream
in interface ServiceExtractor
getInputStream
in class ServiceExtractorImpl
m
- the adaptris message.ServiceException
java.io.IOException
public PartSelector getSelector()
public void setSelector(PartSelector selector)
PartSelector
implementation to use.selector
- the part selector.