Class AbstractHttpWebServiceMessageSender
java.lang.Object
org.springframework.ws.transport.AbstractWebServiceMessageSender<HttpDestinationDescriptor>
org.springframework.ws.transport.http.AbstractHttpWebServiceMessageSender
- All Implemented Interfaces:
WebServiceMessageSender
- Direct Known Subclasses:
AbstractHttpComponents5MessageSender, ClientHttpRequestMessageSender, HttpComponentsMessageSender, HttpUrlConnectionMessageSender, JdkHttpClientMessageSender
public abstract class AbstractHttpWebServiceMessageSender
extends AbstractWebServiceMessageSender<HttpDestinationDescriptor>
Abstract base class for
WebServiceMessageSender implementations that use HTTP.
Any http: or https: URI supplied by the application is accepted. A URI
supplied by a remote peer, such as a WS-Addressing
ReplyTo or FaultTo address, is only accepted when a
DestinationPolicy accepts it; without a policy, every remote
destination is rejected. HttpDestinationPolicies.allowedHosts(String...) can be
used to state the hosts that remote destinations may target. For more advanced or
constrained scenarios, implement DestinationPolicy directly.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface WebServiceMessageSender
WebServiceMessageSender.DestinationDescriptor, WebServiceMessageSender.DestinationPolicy<D>, WebServiceMessageSender.UriSource -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.commons.logging.LogLogger available to subclasses. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate an instance that acceptshttp:andhttps:URIs.protectedAbstractHttpWebServiceMessageSender(Predicate<URI> supportedUriFilter) Create an instance with the URI filter to apply to accept a given URI. -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpDestinationDescriptorcreateDescriptor(URI uri, WebServiceMessageSender.UriSource uriSource) booleanReturn whether to accept GZIP encoding, that is, whether to send the HTTPAccept-Encodingheader withgzipas value.voidsetAcceptGzipEncoding(boolean acceptGzipEncoding) Set whether to accept GZIP encoding, that is, whether to send the HTTPAccept-Encodingheader withgzipas value.Methods inherited from class AbstractWebServiceMessageSender
getDestinationPolicy, setDestinationPolicy, supports, supportsRemoteDestinationsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface WebServiceMessageSender
createConnection, supports
-
Field Details
-
logger
protected final org.apache.commons.logging.Log loggerLogger available to subclasses.
-
-
Constructor Details
-
AbstractHttpWebServiceMessageSender
-
AbstractHttpWebServiceMessageSender
protected AbstractHttpWebServiceMessageSender()Create an instance that acceptshttp:andhttps:URIs.
-
-
Method Details
-
isAcceptGzipEncoding
public boolean isAcceptGzipEncoding()Return whether to accept GZIP encoding, that is, whether to send the HTTPAccept-Encodingheader withgzipas value. -
setAcceptGzipEncoding
public void setAcceptGzipEncoding(boolean acceptGzipEncoding) Set whether to accept GZIP encoding, that is, whether to send the HTTPAccept-Encodingheader withgzipas value.Default is
true. Turn this flag off if you do not want GZIP response compression even if enabled on the HTTP server. -
createDescriptor
protected HttpDestinationDescriptor createDescriptor(URI uri, WebServiceMessageSender.UriSource uriSource) Description copied from class:AbstractWebServiceMessageSender- Specified by:
createDescriptorin classAbstractWebServiceMessageSender<HttpDestinationDescriptor>- Parameters:
uri- the URI to checkuriSource- the source of the URI- Returns:
- a suitable descriptor
-