Class ServiceFromUrl
- java.lang.Object
-
- com.adaptris.core.services.dynamic.ServiceExtractorImpl
-
- com.adaptris.core.services.dynamic.ServiceFromUrl
-
- All Implemented Interfaces:
ComponentLifecycle
,ServiceExtractor
@ComponentProfile(summary="Extract the service to execute from a URL (file/http etc)", since="3.8.4") public class ServiceFromUrl extends ServiceExtractorImpl
Extract the service to execute based on the configured URL.- See Also:
DynamicServiceExecutor
In the adapter configuration file this class is aliased as dynamic-service-from-url 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 ServiceFromUrl()
ServiceFromUrl(java.lang.String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getInputStream(AdaptrisMessage m)
java.lang.String
getUrl()
void
setUrl(java.lang.String url)
-
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
-
-
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream(AdaptrisMessage m) throws java.lang.Exception
- Specified by:
getInputStream
in classServiceExtractorImpl
- Throws:
java.lang.Exception
-
getUrl
public java.lang.String getUrl()
-
setUrl
public void setUrl(java.lang.String url)
-
-