|
||||||||||
| 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.AbstractReceiverConnection
org.springframework.ws.transport.jms.JmsReceiverConnection
public class JmsReceiverConnection
Implementation of WebServiceConnection that is used for server-side JMS access. Exposes a BytesMessage or TextMessage request and response message.
BytesMessage is received as
request, a BytesMessage is created as response, and if a TextMessage is received, a
TextMessage response is created.
| Constructor Summary | |
|---|---|
protected |
JmsReceiverConnection(javax.jms.BytesMessage requestMessage,
javax.jms.Session session)
Constructs a new JMS connection with the given BytesMessage. |
protected |
JmsReceiverConnection(javax.jms.TextMessage requestMessage,
String encoding,
javax.jms.Session session)
Constructs a new JMS connection with the given TextMessage. |
| Method Summary | |
|---|---|
protected void |
addResponseHeader(String name,
String value)
|
String |
getErrorMessage()
|
protected Iterator<String> |
getRequestHeaderNames()
|
protected Iterator<String> |
getRequestHeaders(String name)
|
protected InputStream |
getRequestInputStream()
|
javax.jms.Message |
getRequestMessage()
Returns the request message for this connection. |
javax.jms.Message |
getResponseMessage()
Returns the response message, if any, for this connection. |
protected OutputStream |
getResponseOutputStream()
|
URI |
getUri()
|
boolean |
hasError()
|
protected void |
onSendAfterWrite(WebServiceMessage message)
|
protected void |
onSendBeforeWrite(WebServiceMessage message)
|
| Methods inherited from class org.springframework.ws.transport.AbstractReceiverConnection |
|---|
createTransportInputStream, createTransportOutputStream, onClose |
| 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 |
| Constructor Detail |
|---|
protected JmsReceiverConnection(javax.jms.BytesMessage requestMessage,
javax.jms.Session session)
BytesMessage.
requestMessage - the JMS request messagesession - the JMS session
protected JmsReceiverConnection(javax.jms.TextMessage requestMessage,
String encoding,
javax.jms.Session session)
TextMessage.
requestMessage - the JMS request messagesession - the JMS session| Method Detail |
|---|
public javax.jms.Message getRequestMessage()
BytesMessage or a TextMessage.
public javax.jms.Message getResponseMessage()
BytesMessage or a TextMessage.
public URI getUri()
throws URISyntaxException
URISyntaxException
public String getErrorMessage()
throws IOException
IOException
public boolean hasError()
throws IOException
IOException
protected Iterator<String> getRequestHeaderNames()
throws IOException
getRequestHeaderNames in class AbstractReceiverConnectionIOException
protected Iterator<String> getRequestHeaders(String name)
throws IOException
getRequestHeaders in class AbstractReceiverConnectionIOException
protected InputStream getRequestInputStream()
throws IOException
getRequestInputStream in class AbstractReceiverConnectionIOException
protected void onSendBeforeWrite(WebServiceMessage message)
throws IOException
onSendBeforeWrite in class AbstractWebServiceConnectionIOException
protected void addResponseHeader(String name,
String value)
throws IOException
addResponseHeader in class AbstractReceiverConnectionIOException
protected OutputStream getResponseOutputStream()
throws IOException
getResponseOutputStream in class AbstractReceiverConnectionIOException
protected void onSendAfterWrite(WebServiceMessage message)
throws IOException
onSendAfterWrite in class AbstractWebServiceConnectionIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||