@ComponentProfile(summary="Make a HTTP request to a remote server using standard JRE components", tag="service,http,https", metadata="adphttpresponse") public class HttpRequestService extends HttpRequestServiceImpl implements DynamicPollingTemplate.TemplateProvider
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.
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
HttpRequestService() |
HttpRequestService(java.lang.String url) |
Modifier and Type | Method and Description |
---|---|
void |
doService(AdaptrisMessage msg)
Apply the service to the message.
|
buildProducer, closeService, getAuthenticator, getContentType, getMethod, getRequestHeaderProvider, getResponseHeaderHandler, getUrl, initService, prepare, setAuthenticator, setContentType, setMethod, setRequestHeaderProvider, setResponseHeaderHandler, setUrl, withAuthenticator, withContentType, withMethod, withRequestHeaderProvider, withResponseHeaderHandler, withUrl
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getLookupName, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setLookupName, setUniqueId, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
continueOnFailure, isBranching, setUniqueId
createName, createQualifier, isTrackingEndpoint
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
getUniqueId
close, init, start, stop
prepare
getLookupName
public HttpRequestService()
public HttpRequestService(java.lang.String url)
public void doService(AdaptrisMessage msg) throws ServiceException
Service
Apply the service to the message.
doService
in interface Service
msg
- the AdaptrisMessage
to processServiceException
- wrapping any underlying Exception
s