Class CommonsHttpConnection
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
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCommonsHttpConnection(org.apache.commons.httpclient.HttpClient httpClient, org.apache.commons.httpclient.methods.PostMethod postMethod) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequestHeader(String name, String value) Deprecated.Adds a request header with the given name and value.org.apache.commons.httpclient.methods.PostMethodDeprecated.protected InputStreamDeprecated.Returns the raw, possibly compressed input stream to read the response from.protected OutputStreamDeprecated.Returns the output stream to write the request to.protected intDeprecated.Returns the HTTP status code of the response.protected longDeprecated.Returns the length of the response.Deprecated.Returns an iteration over all the header names this request contains.getResponseHeaders(String name) Deprecated.Returns an iteration over all the string values of the specified header.protected StringDeprecated.Returns the HTTP status message of the response.getUri()Deprecated.Returns the URI for this connection.voidonClose()Deprecated.Template method invoked fromAbstractWebServiceConnection.close().protected voidonSendAfterWrite(WebServiceMessage message) Deprecated.Called after the given message has been written to theTransportOutputStream.protected voidonSendBeforeWrite(WebServiceMessage message) Deprecated.Called before the given message has been written to theTransportOutputStream.Methods inherited from class org.springframework.ws.transport.http.AbstractHttpSenderConnection
getErrorMessage, getResponseInputStream, hasError, hasFault, hasResponse, setFault, setFaultCodeMethods inherited from class org.springframework.ws.transport.AbstractSenderConnection
createTransportInputStream, createTransportOutputStreamMethods inherited from class org.springframework.ws.transport.AbstractWebServiceConnection
close, onReceiveAfterRead, onReceiveBeforeRead, receive, sendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ws.transport.WebServiceConnection
close, receive, send
-
Constructor Details
-
CommonsHttpConnection
protected CommonsHttpConnection(org.apache.commons.httpclient.HttpClient httpClient, org.apache.commons.httpclient.methods.PostMethod postMethod) Deprecated.
-
-
Method Details
-
getPostMethod
public org.apache.commons.httpclient.methods.PostMethod getPostMethod()Deprecated. -
onClose
Deprecated.Description copied from class:AbstractSenderConnectionTemplate method invoked fromAbstractWebServiceConnection.close(). Default implementation is empty.- Overrides:
onClosein classAbstractSenderConnection- Throws:
IOException- if an I/O error occurs when closing this connection
-
getUri
Deprecated.Description copied from interface:WebServiceConnectionReturns the URI for this connection.- Throws:
URISyntaxException
-
onSendBeforeWrite
Deprecated.Description copied from class:AbstractWebServiceConnectionCalled before the given message has been written to theTransportOutputStream. Called fromAbstractWebServiceConnection.send(WebServiceMessage).Default implementation does nothing.
- Overrides:
onSendBeforeWritein classAbstractWebServiceConnection- Parameters:
message- the message- Throws:
IOException- when an I/O exception occurs
-
addRequestHeader
Deprecated.Description copied from interface:HeadersAwareSenderWebServiceConnectionAdds 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 headervalue- the value of the header- Throws:
IOException
-
getRequestOutputStream
Deprecated.Description copied from class:AbstractSenderConnectionReturns the output stream to write the request to.- Specified by:
getRequestOutputStreamin classAbstractSenderConnection- Throws:
IOException
-
onSendAfterWrite
Deprecated.Description copied from class:AbstractWebServiceConnectionCalled after the given message has been written to theTransportOutputStream. Called fromAbstractWebServiceConnection.send(WebServiceMessage).Default implementation does nothing.
- Overrides:
onSendAfterWritein classAbstractWebServiceConnection- Parameters:
message- the message- Throws:
IOException- when an I/O exception occurs
-
getResponseCode
Deprecated.Description copied from class:AbstractHttpSenderConnectionReturns the HTTP status code of the response.- Specified by:
getResponseCodein classAbstractHttpSenderConnection- Throws:
IOException
-
getResponseMessage
Deprecated.Description copied from class:AbstractHttpSenderConnectionReturns the HTTP status message of the response.- Specified by:
getResponseMessagein classAbstractHttpSenderConnection- Throws:
IOException
-
getResponseContentLength
Deprecated.Description copied from class:AbstractHttpSenderConnectionReturns the length of the response.- Specified by:
getResponseContentLengthin classAbstractHttpSenderConnection- Throws:
IOException
-
getRawResponseInputStream
Deprecated.Description copied from class:AbstractHttpSenderConnectionReturns the raw, possibly compressed input stream to read the response from.- Specified by:
getRawResponseInputStreamin classAbstractHttpSenderConnection- Throws:
IOException
-
getResponseHeaderNames
Deprecated.Description copied from interface:HeadersAwareSenderWebServiceConnectionReturns an iteration over all the header names this request contains. Returns an emptyIteratorif there are no headers.- Throws:
IOException
-
getResponseHeaders
Deprecated.Description copied from interface:HeadersAwareSenderWebServiceConnectionReturns an iteration over all the string values of the specified header. Returns an emptyIteratorif there are no headers of the specified name.- Throws:
IOException
-
HttpComponentsConnection