|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
HttpComponentsConnection
@Deprecated public class CommonsHttpConnection
Implementation of WebServiceConnection
that is based on Jakarta Commons HttpClient. Exposes a PostMethod
.
Constructor Summary | |
---|---|
protected |
CommonsHttpConnection(HttpClient httpClient,
PostMethod postMethod)
Deprecated. |
Method Summary | |
---|---|
protected void |
addRequestHeader(String name,
String value)
Deprecated. Adds a request header with the given name and value. |
PostMethod |
getPostMethod()
Deprecated. |
protected InputStream |
getRawResponseInputStream()
Deprecated. Returns the raw, possibly compressed input stream to read the response from. |
protected OutputStream |
getRequestOutputStream()
Deprecated. Returns the output stream to write the request to. |
protected int |
getResponseCode()
Deprecated. Returns the HTTP status code of the response. |
protected long |
getResponseContentLength()
Deprecated. Returns the length of the response. |
protected Iterator<String> |
getResponseHeaderNames()
Deprecated. Returns an iteration over all the header names this request contains. |
protected Iterator<String> |
getResponseHeaders(String name)
Deprecated. Returns an iteration over all the string values of the specified header. |
protected String |
getResponseMessage()
Deprecated. Returns the HTTP status message of the response. |
URI |
getUri()
Deprecated. Returns the URI for this connection. |
void |
onClose()
Deprecated. Template method invoked from AbstractWebServiceConnection.close() . |
protected void |
onSendAfterWrite(WebServiceMessage message)
Deprecated. Called after the given message has been written to the TransportOutputStream . |
protected void |
onSendBeforeWrite(WebServiceMessage message)
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 |
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 |
Constructor Detail |
---|
protected CommonsHttpConnection(HttpClient httpClient, PostMethod postMethod)
Method Detail |
---|
public PostMethod getPostMethod()
public void onClose() throws IOException
AbstractSenderConnection
AbstractWebServiceConnection.close()
. Default implementation is empty.
onClose
in class AbstractSenderConnection
IOException
- if an I/O error occurs when closing this connectionpublic URI getUri() throws URISyntaxException
WebServiceConnection
URISyntaxException
protected void onSendBeforeWrite(WebServiceMessage message) throws IOException
AbstractWebServiceConnection
TransportOutputStream
. Called from AbstractWebServiceConnection.send(WebServiceMessage)
.
Default implementation does nothing.
onSendBeforeWrite
in class AbstractWebServiceConnection
message
- the message
IOException
- when an I/O exception occursprotected void addRequestHeader(String name, String value) throws IOException
AbstractSenderConnection
addRequestHeader
in class AbstractSenderConnection
name
- the name of the headervalue
- the value of the header
IOException
protected OutputStream getRequestOutputStream() throws IOException
AbstractSenderConnection
getRequestOutputStream
in class AbstractSenderConnection
IOException
protected void onSendAfterWrite(WebServiceMessage message) throws IOException
AbstractWebServiceConnection
TransportOutputStream
. Called from AbstractWebServiceConnection.send(WebServiceMessage)
.
Default implementation does nothing.
onSendAfterWrite
in class AbstractWebServiceConnection
message
- the message
IOException
- when an I/O exception occursprotected int getResponseCode() throws IOException
AbstractHttpSenderConnection
getResponseCode
in class AbstractHttpSenderConnection
IOException
protected String getResponseMessage() throws IOException
AbstractHttpSenderConnection
getResponseMessage
in class AbstractHttpSenderConnection
IOException
protected long getResponseContentLength() throws IOException
AbstractHttpSenderConnection
getResponseContentLength
in class AbstractHttpSenderConnection
IOException
protected InputStream getRawResponseInputStream() throws IOException
AbstractHttpSenderConnection
getRawResponseInputStream
in class AbstractHttpSenderConnection
IOException
protected Iterator<String> getResponseHeaderNames() throws IOException
AbstractSenderConnection
Iterator
if
there are no headers.
getResponseHeaderNames
in class AbstractSenderConnection
IOException
protected Iterator<String> getResponseHeaders(String name) throws IOException
AbstractSenderConnection
Iterator
if there are no headers of the specified name.
getResponseHeaders
in class AbstractSenderConnection
IOException
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |