Class AbstractHttpWebServiceMessageSender
java.lang.Object
org.springframework.ws.transport.http.AbstractHttpWebServiceMessageSender
- All Implemented Interfaces:
WebServiceMessageSender
- Direct Known Subclasses:
ClientHttpRequestMessageSender
,CommonsHttpMessageSender
,HttpComponents5MessageSender
,HttpComponentsMessageSender
,HttpUrlConnectionMessageSender
,JdkHttpClientMessageSender
public abstract class AbstractHttpWebServiceMessageSender
extends Object
implements WebServiceMessageSender
Abstract base class for
WebServiceMessageSender
implementations that use
HTTP.- Since:
- 1.0.0
- Author:
- Arjen Poutsma
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.apache.commons.logging.Log
Logger available to subclasses. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return whether to accept GZIP encoding, that is, whether to send the HTTPAccept-Encoding
header withgzip
as value.void
setAcceptGzipEncoding
(boolean acceptGzipEncoding) Set whether to accept GZIP encoding, that is, whether to send the HTTPAccept-Encoding
header withgzip
as value.boolean
Does thisWebServiceMessageSender
support the supplied URI?Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.ws.transport.WebServiceMessageSender
createConnection
-
Field Details
-
logger
protected final org.apache.commons.logging.Log loggerLogger available to subclasses.
-
-
Constructor Details
-
AbstractHttpWebServiceMessageSender
public AbstractHttpWebServiceMessageSender()
-
-
Method Details
-
isAcceptGzipEncoding
public boolean isAcceptGzipEncoding()Return whether to accept GZIP encoding, that is, whether to send the HTTPAccept-Encoding
header withgzip
as value. -
setAcceptGzipEncoding
public void setAcceptGzipEncoding(boolean acceptGzipEncoding) Set whether to accept GZIP encoding, that is, whether to send the HTTPAccept-Encoding
header withgzip
as value.Default is
true
. Turn this flag off if you do not want GZIP response compression even if enabled on the HTTP server. -
supports
Description copied from interface:WebServiceMessageSender
Does thisWebServiceMessageSender
support the supplied URI?- Specified by:
supports
in interfaceWebServiceMessageSender
- Parameters:
uri
- the URI to be checked- Returns:
true
if thisWebServiceMessageSender
supports the supplied URI
-