java.lang.Object
org.springframework.ws.transport.AbstractWebServiceConnection
org.springframework.ws.transport.AbstractSenderConnection
org.springframework.ws.transport.http.AbstractHttpSenderConnection
org.springframework.ws.transport.http.CommonsHttpConnection
All Implemented Interfaces:
AutoCloseable , FaultAwareWebServiceConnection , HeadersAwareSenderWebServiceConnection , WebServiceConnection
@Deprecated public class CommonsHttpConnection extends AbstractHttpSenderConnection
Deprecated.
Implementation of WebServiceConnection that is based on Jakarta Commons HttpClient. Exposes a PostMethod .
Since:
1.0.0
Author:
Arjen Poutsma, Greg Turnquist
Description
protected
CommonsHttpConnection (org.apache.commons.httpclient.HttpClient httpClient, org.apache.commons.httpclient.methods.PostMethod postMethod)
Deprecated.
Adds a request header with the given name and value.
org.apache.commons.httpclient.methods.PostMethod
Deprecated.
protected InputStream
Deprecated.
Returns the raw, possibly compressed input stream to read the response from.
protected OutputStream
Deprecated.
Returns the output stream to write the request to.
protected int
Deprecated.
Returns the HTTP status code of the response.
protected long
Deprecated.
Returns the length of the response.
Deprecated.
Returns an iteration over all the header names this request contains.
Deprecated.
Returns an iteration over all the string values of the specified header.
protected String
Deprecated.
Returns the HTTP status message of the response.
Deprecated.
Returns the URI for this connection.
Deprecated.
Template method invoked from AbstractWebServiceConnection.close() .
protected void
Deprecated.
Called after the given message has been written to the TransportOutputStream .
protected void
Deprecated.
Called before the given message has been written to the TransportOutputStream .

Methods inherited from class org.springframework.ws.transport.http. AbstractHttpSenderConnection

getErrorMessage , getResponseInputStream , hasError , hasFault , hasResponse , setFault , setFaultCode

Methods inherited from class org.springframework.ws.transport. AbstractSenderConnection

createTransportInputStream , createTransportOutputStream

Methods inherited from class org.springframework.ws.transport. AbstractWebServiceConnection

close , onReceiveAfterRead , onReceiveBeforeRead , receive , send

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. WebServiceConnection

close , receive , send

CommonsHttpConnection

protected CommonsHttpConnection (org.apache.commons.httpclient.HttpClient httpClient, org.apache.commons.httpclient.methods.PostMethod postMethod)
Deprecated.

getPostMethod

public org.apache.commons.httpclient.methods.PostMethod getPostMethod ()
Deprecated.
Deprecated.
Description copied from class: AbstractSenderConnection
Template method invoked from AbstractWebServiceConnection.close() . Default implementation is empty.
Overrides:
onClose in class AbstractSenderConnection
Throws:
IOException - if an I/O error occurs when closing this connection
throws URISyntaxException
Deprecated.
Description copied from interface: WebServiceConnection
Returns the URI for this connection.
Throws:
URISyntaxException

onSendBeforeWrite

protected void onSendBeforeWrite ( WebServiceMessage message) throws IOException
Deprecated.
Description copied from class: AbstractWebServiceConnection
Called before the given message has been written to the TransportOutputStream . Called from AbstractWebServiceConnection.send(WebServiceMessage) . Default implementation does nothing.

Overrides:
onSendBeforeWrite in class AbstractWebServiceConnection
Parameters:
message - the message
Throws:
IOException - when an I/O exception occurs
throws IOException
Deprecated.
Description copied from interface: HeadersAwareSenderWebServiceConnection
Adds a request header with the given name and value. This method can be called multiple times, to allow for headers with multiple values.
Parameters:
name - the name of the header
value - the value of the header
Throws:
IOException

getRequestOutputStream

protected OutputStream getRequestOutputStream () throws IOException
Deprecated.
Description copied from class: AbstractSenderConnection
Returns the output stream to write the request to.
Specified by:
getRequestOutputStream in class AbstractSenderConnection
Throws:
IOException

onSendAfterWrite

protected void onSendAfterWrite ( WebServiceMessage message) throws IOException
Deprecated.
Description copied from class: AbstractWebServiceConnection
Called after the given message has been written to the TransportOutputStream . Called from AbstractWebServiceConnection.send(WebServiceMessage) . Default implementation does nothing.

Overrides:
onSendAfterWrite in class AbstractWebServiceConnection
Parameters:
message - the message
Throws:
IOException - when an I/O exception occurs
throws IOException
Deprecated.
Description copied from class: AbstractHttpSenderConnection
Returns the HTTP status code of the response.
Specified by:
getResponseCode in class AbstractHttpSenderConnection
Throws:
IOException
throws IOException
Deprecated.
Description copied from class: AbstractHttpSenderConnection
Returns the HTTP status message of the response.
Specified by:
getResponseMessage in class AbstractHttpSenderConnection
Throws:
IOException
throws IOException
Deprecated.
Description copied from class: AbstractHttpSenderConnection
Returns the length of the response.
Specified by:
getResponseContentLength in class AbstractHttpSenderConnection
Throws:
IOException

getRawResponseInputStream

protected InputStream getRawResponseInputStream () throws IOException
Deprecated.
Description copied from class: AbstractHttpSenderConnection
Returns the raw, possibly compressed input stream to read the response from.
Specified by:
getRawResponseInputStream in class AbstractHttpSenderConnection
Throws:
IOException

getResponseHeaderNames

public Iterator < String > getResponseHeaderNames () throws IOException
Deprecated.
Description copied from interface: HeadersAwareSenderWebServiceConnection
Returns an iteration over all the header names this request contains. Returns an empty Iterator if there are no headers.
Throws:
IOException

getResponseHeaders

public Iterator < String > getResponseHeaders ( String name) throws IOException
Deprecated.
Description copied from interface: HeadersAwareSenderWebServiceConnection
Returns an iteration over all the string values of the specified header. Returns an empty Iterator if there are no headers of the specified name.
Throws:
IOException