Class HttpRequestService

All Implemented Interfaces:
AdaptrisComponent, ComponentLifecycle, ComponentLifecycleExtension, ConfigComment, DynamicPollingTemplate.TemplateProvider, MessageEventGenerator, Service, StateManagedComponent

@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
Direct HTTP support as a service rather wrapped via 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.

  • Constructor Details

    • HttpRequestService

      public HttpRequestService()
    • HttpRequestService

      public HttpRequestService(String url)
  • Method Details