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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoService(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, withUrlMethods 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, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.adaptris.core.AdaptrisComponent
getUniqueIdMethods inherited from interface com.adaptris.core.ComponentLifecycle
close, init, start, stopMethods inherited from interface com.adaptris.core.ComponentLifecycleExtension
prepareMethods inherited from interface com.adaptris.core.ConfigComment
getComments, setCommentsMethods inherited from interface com.adaptris.core.MessageEventGenerator
createName, createQualifier, isTrackingEndpointMethods inherited from interface com.adaptris.core.Service
continueOnFailure, isBranching, setUniqueIdMethods 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:ServiceApply the service to the message.
- Specified by:
doServicein interfaceService- Parameters:
msg- theAdaptrisMessageto process- Throws:
ServiceException- wrapping any underlyingExceptions
-