org.springframework.ws.transport.jms
Class JmsSenderConnection
java.lang.Object
org.springframework.ws.transport.AbstractWebServiceConnection
org.springframework.ws.transport.AbstractSenderConnection
org.springframework.ws.transport.jms.JmsSenderConnection
- All Implemented Interfaces:
- WebServiceConnection
public class JmsSenderConnection
- extends AbstractSenderConnection
Implementation of WebServiceConnection
that is used for client-side JMS access. Exposes a BytesMessage
request and response message.
- Since:
- 1.5.0
- Author:
- Arjen Poutsma
Constructor Summary |
protected |
JmsSenderConnection(javax.jms.ConnectionFactory connectionFactory,
javax.jms.Connection connection,
javax.jms.Session session,
javax.jms.Destination requestDestination,
javax.jms.Message requestMessage)
Constructs a new JMS connection with the given parameters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JmsSenderConnection
protected JmsSenderConnection(javax.jms.ConnectionFactory connectionFactory,
javax.jms.Connection connection,
javax.jms.Session session,
javax.jms.Destination requestDestination,
javax.jms.Message requestMessage)
throws javax.jms.JMSException
- Constructs a new JMS connection with the given parameters.
- Throws:
javax.jms.JMSException
getRequestMessage
public javax.jms.Message getRequestMessage()
- Returns the request message for this connection. Returns either a
BytesMessage
or a TextMessage
.
getResponseMessage
public javax.jms.Message getResponseMessage()
- Returns the response message, if any, for this connection. Returns either a
BytesMessage
or a TextMessage
.
getUri
public URI getUri()
throws URISyntaxException
- Throws:
URISyntaxException
hasError
public boolean hasError()
throws IOException
- Throws:
IOException
getErrorMessage
public String getErrorMessage()
throws IOException
- Throws:
IOException
addRequestHeader
protected void addRequestHeader(String name,
String value)
throws IOException
- Specified by:
addRequestHeader
in class AbstractSenderConnection
- Throws:
IOException
getRequestOutputStream
protected OutputStream getRequestOutputStream()
throws IOException
- Specified by:
getRequestOutputStream
in class AbstractSenderConnection
- Throws:
IOException
onSendAfterWrite
protected void onSendAfterWrite(WebServiceMessage message)
throws IOException
- Overrides:
onSendAfterWrite
in class AbstractWebServiceConnection
- Throws:
IOException
onReceiveBeforeRead
protected void onReceiveBeforeRead()
throws IOException
- Overrides:
onReceiveBeforeRead
in class AbstractWebServiceConnection
- Throws:
IOException
hasResponse
protected boolean hasResponse()
throws IOException
- Specified by:
hasResponse
in class AbstractSenderConnection
- Throws:
IOException
getResponseHeaderNames
protected Iterator<String> getResponseHeaderNames()
throws IOException
- Specified by:
getResponseHeaderNames
in class AbstractSenderConnection
- Throws:
IOException
getResponseHeaders
protected Iterator<String> getResponseHeaders(String name)
throws IOException
- Specified by:
getResponseHeaders
in class AbstractSenderConnection
- Throws:
IOException
getResponseInputStream
protected InputStream getResponseInputStream()
throws IOException
- Specified by:
getResponseInputStream
in class AbstractSenderConnection
- Throws:
IOException
onClose
protected void onClose()
throws IOException
- Overrides:
onClose
in class AbstractSenderConnection
- Throws:
IOException
Copyright © 2013 The Spring Web Services Framework. All Rights Reserved.