Class MimeServiceExtractor
- java.lang.Object
-
- com.adaptris.core.services.dynamic.ServiceExtractorImpl
-
- com.adaptris.core.services.dynamic.MimeServiceExtractor
-
- All Implemented Interfaces:
ComponentLifecycle
,ServiceExtractor
@ComponentProfile(summary="Select the service to executed based on a MIME selector on the message") public class MimeServiceExtractor extends ServiceExtractorImpl
ServiceExtractor
implementation that uses aPartSelector
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.
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.services.dynamic.ServiceExtractorImpl
log
-
-
Constructor Summary
Constructors Constructor Description MimeServiceExtractor()
MimeServiceExtractor(PartSelector selector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getInputStream(AdaptrisMessage m)
PartSelector
getSelector()
void
setSelector(PartSelector selector)
Set thePartSelector
implementation to use.-
Methods inherited from class com.adaptris.core.services.dynamic.ServiceExtractorImpl
getService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adaptris.core.ComponentLifecycle
close, init, start, stop
-
-
-
-
Constructor Detail
-
MimeServiceExtractor
public MimeServiceExtractor()
-
MimeServiceExtractor
public MimeServiceExtractor(PartSelector selector)
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream(AdaptrisMessage m) throws ServiceException, java.io.IOException
- Specified by:
getInputStream
in classServiceExtractorImpl
- Throws:
ServiceException
java.io.IOException
-
getSelector
public PartSelector getSelector()
-
setSelector
public void setSelector(PartSelector selector)
Set thePartSelector
implementation to use.- Parameters:
selector
- the part selector.
-
-