Spring Web Services Framework

org.springframework.ws.transport.http
Class AbstractHttpWebServiceMessageSender

java.lang.Object
  extended by org.springframework.ws.transport.http.AbstractHttpWebServiceMessageSender
All Implemented Interfaces:
WebServiceMessageSender
Direct Known Subclasses:
CommonsHttpMessageSender, HttpUrlConnectionMessageSender

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
protected static String ENCODING_GZIP
           
protected static String HTTP_HEADER_ACCEPT_ENCODING
           
protected static String HTTP_SCHEME
           
protected static String HTTPS_SCHEME
           
 
Constructor Summary
AbstractHttpWebServiceMessageSender()
           
 
Method Summary
 boolean isAcceptGzipEncoding()
          Return whether to accept GZIP encoding, that is, whether to send the HTTP Accept-Encoding header with gzip as value.
 void setAcceptGzipEncoding(boolean acceptGzipEncoding)
          Set whether to accept GZIP encoding, that is, whether to send the HTTP Accept-Encoding header with gzip as value.
 boolean supports(String uri)
          Does this WebServiceMessageSender 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 Detail

HTTP_HEADER_ACCEPT_ENCODING

protected static final String HTTP_HEADER_ACCEPT_ENCODING
See Also:
Constant Field Values

ENCODING_GZIP

protected static final String ENCODING_GZIP
See Also:
Constant Field Values

HTTP_SCHEME

protected static final String HTTP_SCHEME
See Also:
Constant Field Values

HTTPS_SCHEME

protected static final String HTTPS_SCHEME
See Also:
Constant Field Values
Constructor Detail

AbstractHttpWebServiceMessageSender

public AbstractHttpWebServiceMessageSender()
Method Detail

isAcceptGzipEncoding

public boolean isAcceptGzipEncoding()
Return whether to accept GZIP encoding, that is, whether to send the HTTP Accept-Encoding header with gzip as value.


setAcceptGzipEncoding

public void setAcceptGzipEncoding(boolean acceptGzipEncoding)
Set whether to accept GZIP encoding, that is, whether to send the HTTP Accept-Encoding header with gzip 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

public boolean supports(String uri)
Description copied from interface: WebServiceMessageSender
Does this WebServiceMessageSender support the supplied URI?

Specified by:
supports in interface WebServiceMessageSender
Parameters:
uri - the URI to be checked
Returns:
true if this WebServiceMessageSender supports the supplied URI

Spring Web Services Framework

Copyright � 2005-2008 The Spring Web Services Framework. All Rights Reserved.