Class HttpRequestService
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,ConfigComment
,DynamicPollingTemplate.TemplateProvider
,MessageEventGenerator
,Service
,StateManagedComponent
StandaloneProducer
or StandaloneRequestor
.
Note that this service just wraps a StandardHttpProducer
instance but doesn't expose all the possible settings available
for the normal StandardHttpProducer
. If you need those features, than continue using the producer wrapped as a
StandaloneProducer
or StandaloneRequestor
.
String parameters in this service will use the InterlokMessage.resolve(String)
which allows you to specify metadata
values as part of a constant string e.g. setUrl("%message{http_url}")
will use the metadata value associated with the key
http_url
.
In the adapter configuration file this class is aliased as http-request-service which is the preferred alternative to the fully qualified classname when building your configuration.
-
Field Summary
Fields inherited from class com.adaptris.core.ServiceImp
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doService
(AdaptrisMessage msg) Apply the service to the message.Methods inherited from class com.adaptris.core.http.client.net.HttpRequestServiceImpl
buildProducer, closeService, getAuthenticator, getConnectTimeout, getContentType, getMethod, getReadTimeout, getRequestHeaderProvider, getResponseHeaderHandler, getUrl, initService, prepare, setAuthenticator, setConnectTimeout, setContentType, setMethod, setReadTimeout, setRequestHeaderProvider, setResponseHeaderHandler, setUrl, withAuthenticator, withContentType, withMethod, withRequestHeaderProvider, withResponseHeaderHandler, withUrl
Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, getComments, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setComments, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stop
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.AdaptrisComponent
getUniqueId
Methods inherited from interface com.adaptris.core.ComponentLifecycle
close, init, start, stop
Methods inherited from interface com.adaptris.core.ComponentLifecycleExtension
prepare
Methods inherited from interface com.adaptris.core.ConfigComment
getComments, setComments
Methods inherited from interface com.adaptris.core.MessageEventGenerator
createName, createQualifier, isTrackingEndpoint
Methods inherited from interface com.adaptris.core.Service
continueOnFailure, isBranching, setUniqueId
Methods inherited from interface com.adaptris.core.StateManagedComponent
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
-
Constructor Details
-
HttpRequestService
public HttpRequestService() -
HttpRequestService
-
-
Method Details
-
doService
Description copied from interface:Service
Apply the service to the message.
- Specified by:
doService
in interfaceService
- Parameters:
msg
- theAdaptrisMessage
to process- Throws:
ServiceException
- wrapping any underlyingException
s
-