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.
Implementation of
WebServiceConnection
that is based on Jakarta Commons HttpClient. Exposes a
PostMethod
.
Since:
1.0.0
Author:
Arjen Poutsma, Greg Turnquist
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.
Deprecated.
Returns the raw, possibly compressed input stream to read the response from.
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.
Deprecated.
Returns the HTTP status message of the response.
Deprecated.
Returns the URI for this connection.
Deprecated.
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.
Overrides:
onClose
in class
AbstractSenderConnection
Throws:
IOException
- if an I/O error occurs when closing this connection
throws
URISyntaxException
Deprecated.
Returns the URI for this connection.
Throws:
URISyntaxException
onSendBeforeWrite
Deprecated.
Overrides:
onSendBeforeWrite
in class
AbstractWebServiceConnection
Parameters:
message
- the message
Throws:
IOException
- when an I/O exception occurs
throws
IOException
Deprecated.
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
Deprecated.
Returns the output stream to write the request to.
Specified by:
getRequestOutputStream
in class
AbstractSenderConnection
Throws:
IOException
onSendAfterWrite
Deprecated.
Overrides:
onSendAfterWrite
in class
AbstractWebServiceConnection
Parameters:
message
- the message
Throws:
IOException
- when an I/O exception occurs
throws
IOException
Deprecated.
Returns the HTTP status code of the response.
Specified by:
getResponseCode
in class
AbstractHttpSenderConnection
Throws:
IOException
throws
IOException
Deprecated.
Returns the HTTP status message of the response.
Specified by:
getResponseMessage
in class
AbstractHttpSenderConnection
Throws:
IOException
throws
IOException
Deprecated.
Returns the length of the response.
Specified by:
getResponseContentLength
in class
AbstractHttpSenderConnection
Throws:
IOException
getRawResponseInputStream
Deprecated.
Returns the raw, possibly compressed input stream to read the response from.
Specified by:
getRawResponseInputStream
in class
AbstractHttpSenderConnection
Throws:
IOException
getResponseHeaderNames
Deprecated.
Returns an iteration over all the header names this request contains. Returns an empty
Iterator
if there
are no headers.
Throws:
IOException
getResponseHeaders
Deprecated.
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
HttpComponentsConnection