public class HermesJmsRequestTransport extends Object implements RequestTransport
Modifier and Type | Class and Description |
---|---|
static class |
HermesJmsRequestTransport.UnresolvedJMSEndpointException |
Modifier and Type | Field and Description |
---|---|
protected boolean |
addSoapAction |
protected String |
clientID |
protected String |
durableSubscriptionName |
protected static List<RequestFilter> |
filters |
protected hermes.Hermes |
hermes |
static String |
IS_JMS_MESSAGE_RECEIVED |
static String |
JMS_ERROR |
static String |
JMS_MESSAGE_SEND |
static String |
JMS_RECEIVE_TIMEOUT |
static String |
JMS_RESPONSE |
protected JMSEndpoint |
jmsEndpoint |
protected String |
messageSelector |
protected String |
password |
protected boolean |
sendAsBytesMessage |
protected String |
username |
REQUEST_TRANSPORT, WSDL_REQUEST
Constructor and Description |
---|
HermesJmsRequestTransport() |
Modifier and Type | Method and Description |
---|---|
void |
abortRequest(SubmitContext submitContext) |
void |
addRequestFilter(RequestFilter filter) |
protected void |
closeSessionAndConnection(javax.jms.Connection connection,
javax.jms.Session session) |
protected javax.jms.TopicSubscriber |
createDurableSubscription(SubmitContext submitContext,
javax.jms.Session topicSession,
JMSConnectionHolder jmsConnectionHolder) |
protected JMSHeader |
createJMSHeader(SubmitContext submitContext,
Request request,
hermes.Hermes hermes,
javax.jms.Message message,
javax.jms.Destination replyToDestination) |
protected Response |
errorResponse(SubmitContext submitContext,
Request request,
long timeStarted,
javax.jms.JMSException jmse) |
protected Response |
execute(SubmitContext submitContext,
Request request,
long timeStarted) |
protected hermes.Hermes |
getHermes(String sessionName,
Request request) |
protected long |
getTimeout(SubmitContext submitContext,
Request request) |
protected void |
init(SubmitContext submitContext,
Request request) |
void |
insertRequestFilter(RequestFilter filter,
RequestFilter refFilter) |
protected Response |
makeEmptyResponse(SubmitContext submitContext,
Request request,
long timeStarted,
javax.jms.Message messageSend) |
protected Response |
makeResponse(SubmitContext submitContext,
Request request,
long timeStarted,
javax.jms.Message messageSend,
javax.jms.MessageConsumer messageConsumer) |
protected javax.jms.Message |
messagePublish(SubmitContext submitContext,
Request request,
javax.jms.Session topicSession,
hermes.Hermes hermes,
javax.jms.Topic topicPublish,
javax.jms.Destination replyToDestination) |
protected javax.jms.Message |
messageSend(SubmitContext submitContext,
Request request,
javax.jms.Session session,
hermes.Hermes hermes,
javax.jms.Queue queueSend,
javax.jms.Destination replyToDestination) |
void |
removeRequestFilter(RequestFilter filter) |
Response |
sendRequest(SubmitContext submitContext,
Request request) |
public static final String IS_JMS_MESSAGE_RECEIVED
public static final String JMS_MESSAGE_SEND
public static final String JMS_RESPONSE
public static final String JMS_ERROR
public static final String JMS_RECEIVE_TIMEOUT
protected String username
protected String password
protected JMSEndpoint jmsEndpoint
protected String durableSubscriptionName
protected String clientID
protected String messageSelector
protected boolean sendAsBytesMessage
protected boolean addSoapAction
protected hermes.Hermes hermes
protected static List<RequestFilter> filters
public Response sendRequest(SubmitContext submitContext, Request request) throws Exception
sendRequest
in interface RequestTransport
Exception
protected void init(SubmitContext submitContext, Request request) throws NamingException
NamingException
protected Response execute(SubmitContext submitContext, Request request, long timeStarted) throws Exception
Exception
protected hermes.Hermes getHermes(String sessionName, Request request) throws NamingException
NamingException
protected long getTimeout(SubmitContext submitContext, Request request)
protected JMSHeader createJMSHeader(SubmitContext submitContext, Request request, hermes.Hermes hermes, javax.jms.Message message, javax.jms.Destination replyToDestination)
protected void closeSessionAndConnection(javax.jms.Connection connection, javax.jms.Session session) throws javax.jms.JMSException
javax.jms.JMSException
protected Response errorResponse(SubmitContext submitContext, Request request, long timeStarted, javax.jms.JMSException jmse)
protected javax.jms.Message messageSend(SubmitContext submitContext, Request request, javax.jms.Session session, hermes.Hermes hermes, javax.jms.Queue queueSend, javax.jms.Destination replyToDestination) throws javax.jms.JMSException
javax.jms.JMSException
protected javax.jms.Message messagePublish(SubmitContext submitContext, Request request, javax.jms.Session topicSession, hermes.Hermes hermes, javax.jms.Topic topicPublish, javax.jms.Destination replyToDestination) throws javax.jms.JMSException
javax.jms.JMSException
protected Response makeResponse(SubmitContext submitContext, Request request, long timeStarted, javax.jms.Message messageSend, javax.jms.MessageConsumer messageConsumer) throws javax.jms.JMSException
javax.jms.JMSException
protected Response makeEmptyResponse(SubmitContext submitContext, Request request, long timeStarted, javax.jms.Message messageSend)
protected javax.jms.TopicSubscriber createDurableSubscription(SubmitContext submitContext, javax.jms.Session topicSession, JMSConnectionHolder jmsConnectionHolder) throws javax.jms.JMSException, NamingException
javax.jms.JMSException
NamingException
public void abortRequest(SubmitContext submitContext)
abortRequest
in interface RequestTransport
public void addRequestFilter(RequestFilter filter)
addRequestFilter
in interface RequestTransport
public void removeRequestFilter(RequestFilter filter)
removeRequestFilter
in interface RequestTransport
public void insertRequestFilter(RequestFilter filter, RequestFilter refFilter)
insertRequestFilter
in interface RequestTransport
Copyright © 2019. All Rights Reserved.