|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.ws.transport.AbstractWebServiceConnection
org.springframework.ws.transport.AbstractSenderConnection
org.springframework.ws.transport.http.AbstractHttpSenderConnection
org.springframework.ws.transport.http.HttpUrlConnection
public class HttpUrlConnection
Implementation of the WebServiceConnection
interface that uses a HttpURLConnection
.
Constructor Summary | |
---|---|
protected |
HttpUrlConnection(HttpURLConnection connection)
Creates a new instance of the HttpUrlConnection with the given HttpURLConnection . |
Method Summary | |
---|---|
protected void |
addRequestHeader(String name,
String value)
Adds a request header with the given name and value. |
HttpURLConnection |
getConnection()
|
protected InputStream |
getRawResponseInputStream()
Returns the raw, possibly compressed input stream to read the response from. |
protected OutputStream |
getRequestOutputStream()
Returns the output stream to write the request to. |
protected int |
getResponseCode()
Returns the HTTP status code of the response. |
protected long |
getResponseContentLength()
Returns the length of the response. |
protected Iterator |
getResponseHeaderNames()
Returns an iteration over all the header names this request contains. |
protected Iterator |
getResponseHeaders(String name)
Returns an iteration over all the string values of the specified header. |
protected String |
getResponseMessage()
Returns the HTTP status message of the response. |
void |
onClose()
Template method invoked from AbstractSenderConnection.close() . |
protected void |
onSendAfterWrite(WebServiceMessage message)
Called after 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 |
---|
close, createTransportInputStream, createTransportOutputStream |
Methods inherited from class org.springframework.ws.transport.AbstractWebServiceConnection |
---|
onReceiveAfterRead, onReceiveBeforeRead, onSendBeforeWrite, 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 HttpUrlConnection(HttpURLConnection connection)
HttpUrlConnection
with the given HttpURLConnection
.
connection
- the HttpURLConnection
Method Detail |
---|
public HttpURLConnection getConnection()
public void onClose()
AbstractSenderConnection
AbstractSenderConnection.close()
. Default implementation is empty.
onClose
in class AbstractSenderConnection
protected 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 long getResponseContentLength() throws IOException
AbstractHttpSenderConnection
getResponseContentLength
in class AbstractHttpSenderConnection
IOException
protected Iterator getResponseHeaderNames() throws IOException
AbstractSenderConnection
Iterator
if
there areno headers.
getResponseHeaderNames
in class AbstractSenderConnection
IOException
protected Iterator getResponseHeaders(String name) throws IOException
AbstractSenderConnection
Iterator
if there are no headers of the specified name.
getResponseHeaders
in class AbstractSenderConnection
IOException
protected int getResponseCode() throws IOException
AbstractHttpSenderConnection
getResponseCode
in class AbstractHttpSenderConnection
IOException
protected String getResponseMessage() throws IOException
AbstractHttpSenderConnection
getResponseMessage
in class AbstractHttpSenderConnection
IOException
protected InputStream getRawResponseInputStream() throws IOException
AbstractHttpSenderConnection
getRawResponseInputStream
in class AbstractHttpSenderConnection
IOException
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |