public final class HttpDispatcher extends Object implements WscDispatcher
WscDispatcher implementation that aims to dispatch HTTP messages.| Constructor and Description |
|---|
HttpDispatcher(String address,
HttpClient client) |
| Modifier and Type | Method and Description |
|---|---|
static HttpDispatcher |
createDefault(String address,
HttpService httpService)
Creates a default
HttpDispatcher using the provided HttpService and with a fixed set of attributes. |
WscResponse |
dispatch(org.apache.cxf.message.Message message)
Sends off a Soap
Message to a destination and returns it's response. |
void |
dispose()
Disposes all the associated resources to this
WscDispatcher instance. |
public HttpDispatcher(String address, HttpClient client)
public WscResponse dispatch(org.apache.cxf.message.Message message)
Message to a destination and returns it's response.
Dispatches a Soap message through http adding the SoapAction header, if required, and the content-type.
dispatch in interface WscDispatcherWscResponse with the content returned by the transport and it's corresponding Content-Type.public void dispose()
WscDispatcher instance.dispose in interface WscDispatcherpublic static HttpDispatcher createDefault(String address, HttpService httpService)
HttpDispatcher using the provided HttpService and with a fixed set of attributes.address - the address we want to dispatch http messages to.httpService - the configured HttpService used to create the http client.HttpDispatcher default instance.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.