|
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
public abstract class AbstractHttpSenderConnection
Abstract base class for WebServiceConnection
implementations that send request over HTTP.
Constructor Summary | |
---|---|
AbstractHttpSenderConnection()
|
Method Summary | |
---|---|
String |
getErrorMessage()
Returns the error message. |
protected abstract InputStream |
getRawResponseInputStream()
Returns the raw, possibly compressed input stream to read the response from. |
protected abstract int |
getResponseCode()
Returns the HTTP status code of the response. |
protected abstract long |
getResponseContentLength()
Returns the length of the response. |
protected InputStream |
getResponseInputStream()
Returns the input stream to read the response from. |
protected abstract String |
getResponseMessage()
Returns the HTTP status message of the response. |
boolean |
hasError()
Indicates whether this connection has an error. |
boolean |
hasFault()
Indicates whether this connection received a fault. |
protected boolean |
hasResponse()
Indicates whether this connection has a response. |
void |
setFault(boolean fault)
Sets whether this connection will send a fault. |
Methods inherited from class org.springframework.ws.transport.AbstractSenderConnection |
---|
addRequestHeader, createTransportInputStream, createTransportOutputStream, getRequestOutputStream, getResponseHeaderNames, getResponseHeaders, onClose |
Methods inherited from class org.springframework.ws.transport.AbstractWebServiceConnection |
---|
close, onReceiveAfterRead, onReceiveBeforeRead, onSendAfterWrite, 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, getUri, receive, send |
Constructor Detail |
---|
public AbstractHttpSenderConnection()
Method Detail |
---|
public final boolean hasError() throws IOException
WebServiceConnection
hasError
in interface WebServiceConnection
true
if this connection has an error; false
otherwise.
IOException
public final String getErrorMessage() throws IOException
WebServiceConnection
getErrorMessage
in interface WebServiceConnection
null
when no error is present
IOException
WebServiceConnection.hasError()
protected final boolean hasResponse() throws IOException
AbstractSenderConnection
hasResponse
in class AbstractSenderConnection
IOException
protected final InputStream getResponseInputStream() throws IOException
AbstractSenderConnection
getResponseInputStream
in class AbstractSenderConnection
IOException
protected abstract int getResponseCode() throws IOException
IOException
protected abstract String getResponseMessage() throws IOException
IOException
protected abstract long getResponseContentLength() throws IOException
IOException
protected abstract InputStream getRawResponseInputStream() throws IOException
IOException
public final boolean hasFault() throws IOException
FaultAwareWebServiceConnection
hasFault
in interface FaultAwareWebServiceConnection
true
if this connection received a fault; false
otherwise.
IOException
- in case of I/O errorspublic final void setFault(boolean fault)
FaultAwareWebServiceConnection
setFault
in interface FaultAwareWebServiceConnection
fault
- true
if this will send a fault; false
otherwise.
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |