public class HttpExchangeConnection
extends org.springframework.ws.transport.AbstractReceiverConnection
implements org.springframework.ws.transport.EndpointAwareWebServiceConnection, org.springframework.ws.transport.FaultAwareWebServiceConnection
WebServiceConnection that is based on the Java 6 HttpServer HttpExchange.| Modifier | Constructor and Description |
|---|---|
protected |
HttpExchangeConnection(com.sun.net.httpserver.HttpExchange httpExchange)
Constructs a new exchange connection with the given
HttpExchange. |
| Modifier and Type | Method and Description |
|---|---|
void |
addResponseHeader(String name,
String value) |
void |
endpointNotFound() |
String |
getErrorMessage() |
com.sun.net.httpserver.HttpExchange |
getHttpExchange()
Returns the
HttpExchange for this connection. |
Iterator<String> |
getRequestHeaderNames() |
Iterator<String> |
getRequestHeaders(String name) |
protected InputStream |
getRequestInputStream() |
protected OutputStream |
getResponseOutputStream() |
URI |
getUri() |
boolean |
hasError() |
boolean |
hasFault() |
void |
onClose() |
protected void |
onSendAfterWrite(org.springframework.ws.WebServiceMessage message) |
void |
setFault(boolean fault)
Deprecated.
|
void |
setFaultCode(QName faultCode) |
createTransportInputStream, createTransportOutputStreamclose, onReceiveAfterRead, onReceiveBeforeRead, onSendBeforeWrite, receive, sendprotected HttpExchangeConnection(com.sun.net.httpserver.HttpExchange httpExchange)
HttpExchange.public com.sun.net.httpserver.HttpExchange getHttpExchange()
HttpExchange for this connection.public URI getUri() throws URISyntaxException
getUri in interface org.springframework.ws.transport.WebServiceConnectionURISyntaxExceptionpublic void endpointNotFound()
endpointNotFound in interface org.springframework.ws.transport.EndpointAwareWebServiceConnectionpublic boolean hasError()
throws IOException
hasError in interface org.springframework.ws.transport.WebServiceConnectionIOExceptionpublic String getErrorMessage() throws IOException
getErrorMessage in interface org.springframework.ws.transport.WebServiceConnectionIOExceptionpublic Iterator<String> getRequestHeaderNames() throws IOException
getRequestHeaderNames in interface org.springframework.ws.transport.HeadersAwareReceiverWebServiceConnectionIOExceptionpublic Iterator<String> getRequestHeaders(String name) throws IOException
getRequestHeaders in interface org.springframework.ws.transport.HeadersAwareReceiverWebServiceConnectionIOExceptionprotected InputStream getRequestInputStream() throws IOException
getRequestInputStream in class org.springframework.ws.transport.AbstractReceiverConnectionIOExceptionpublic void addResponseHeader(String name, String value) throws IOException
addResponseHeader in interface org.springframework.ws.transport.HeadersAwareReceiverWebServiceConnectionIOExceptionprotected OutputStream getResponseOutputStream() throws IOException
getResponseOutputStream in class org.springframework.ws.transport.AbstractReceiverConnectionIOExceptionprotected void onSendAfterWrite(org.springframework.ws.WebServiceMessage message)
throws IOException
onSendAfterWrite in class org.springframework.ws.transport.AbstractWebServiceConnectionIOExceptionpublic void onClose()
throws IOException
onClose in class org.springframework.ws.transport.AbstractReceiverConnectionIOExceptionpublic boolean hasFault()
throws IOException
hasFault in interface org.springframework.ws.transport.FaultAwareWebServiceConnectionIOException@Deprecated public void setFault(boolean fault) throws IOException
setFault in interface org.springframework.ws.transport.FaultAwareWebServiceConnectionIOExceptionpublic void setFaultCode(QName faultCode) throws IOException
setFaultCode in interface org.springframework.ws.transport.FaultAwareWebServiceConnectionIOException