Package org.somda.sdc.dpws.http.apache
Class ApacheTransportBindingFactoryImpl
-
- All Implemented Interfaces:
-
org.somda.sdc.dpws.factory.TransportBindingFactory,org.somda.sdc.dpws.http.factory.HttpClientFactory
public class ApacheTransportBindingFactoryImpl implements TransportBindingFactory, HttpClientFactory
Factory for creating apache http client backed transport bindings and clients.
-
-
Field Summary
Fields Modifier and Type Field Description public final HttpClientclient
-
Method Summary
Modifier and Type Method Description HttpClientgetClient()Access the configured apache http client. TransportBindingcreateTransportBinding(String endpointUri, @Nullable() CommunicationLogContext communicationLogContext)Generic factory method to create a binding on the basis of a URI. TransportBindingcreateHttpBinding(String endpointUri, @Nullable() CommunicationLogContext communicationLogContext)Creates an HTTP or HTTPS binding. HttpClientcreateHttpClient()Creates an http client. -
-
Method Detail
-
getClient
HttpClient getClient()
Access the configured apache http client.
Note: Do not use this client for productive purposes, always use the TransportBinding instead. This is only useful if you want to send intentionally bad messages to a server, which you most likely do not want.
- Returns:
the configured apache http client
-
createTransportBinding
TransportBinding createTransportBinding(String endpointUri, @Nullable() CommunicationLogContext communicationLogContext)
Generic factory method to create a binding on the basis of a URI.
Please note that - depending on the implementation - bindings are not supported. In this case an UnsupportedOperationException is thrown.
- Parameters:
endpointUri- the URI to create a binding to.communicationLogContext- additional information made available in the communication log- Returns:
a transport binding bound to endpointUri.
-
createHttpBinding
TransportBinding createHttpBinding(String endpointUri, @Nullable() CommunicationLogContext communicationLogContext)
Creates an HTTP or HTTPS binding.
- Parameters:
endpointUri- a valid HTTP/HTTPS URI to create a binding to.communicationLogContext- additional information made available in the communication log- Returns:
a transport binding bound to endpointUri.
-
createHttpClient
HttpClient createHttpClient()
Creates an http client.
- Returns:
a transport binding bound to endpointUri.
-
-
-
-