|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.logicblaze.lingo.jms.marshall.DefaultMarshaller
public class DefaultMarshaller
Represents the strategy of marshalling of requests and responses in and out of JMS messages
| Constructor Summary | |
|---|---|
DefaultMarshaller()
|
|
| Method Summary | |
|---|---|
protected void |
addResponseMessageHeaders(ObjectMessage answer,
org.springframework.remoting.support.RemoteInvocationResult result,
Message requestMessage)
A strategy for derived classes to allow them to plug in custom header processing for responses |
protected void |
appendMessageHeaders(Message message,
Requestor requestor,
LingoInvocation invocation)
A strategy method for derived classes to allow them a plugin point to perform custom header processing |
protected void |
appendMessageHeaders(Message message,
Session session,
Object value)
|
Message |
createObjectMessage(Session session,
Object value)
Creates a message for a Java Object for when distributing objects in collections |
Message |
createRequestMessage(Requestor requestor,
LingoInvocation invocation)
Creates the request message |
Message |
createResponseMessage(Session session,
org.springframework.remoting.support.RemoteInvocationResult result,
Message requestMessage)
Creates the response message |
org.springframework.remoting.support.RemoteInvocationResult |
extractInvocationResult(Message message)
Extracts the invocation result from the response message |
protected String |
getStickySessionID()
|
protected void |
handleInvocationHeaders(Message message)
A strategy method to allow derived classes to process the headers in a special way |
protected void |
handleInvocationResultHeaders(Message message)
A strategy method to allow derived classes to process the headers in a special way |
protected void |
handleMessageHeaders(Message message)
A strategy method to allow derived classes to process the headers in a special way |
boolean |
isIgnoreInvalidMessages()
|
protected org.springframework.remoting.support.RemoteInvocationResult |
onInvalidClientMessage(Message message)
|
protected org.springframework.remoting.support.RemoteInvocation |
onInvalidMessage(Message message)
Handle invalid messages by just logging, though a different implementation may wish to throw exceptions |
Object |
readMessage(Message message)
Extracts the body from the given JMS message |
org.springframework.remoting.support.RemoteInvocation |
readRemoteInvocation(Message message)
Read a RemoteInvocation from the given JMS message |
void |
setIgnoreInvalidMessages(boolean ignoreInvalidMessages)
Sets whether invalidly formatted messages should be silently ignored or not |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMarshaller()
| Method Detail |
|---|
public Message createRequestMessage(Requestor requestor,
LingoInvocation invocation)
throws JMSException
Marshaller
createRequestMessage in interface Marshallerinvocation - the remote invocation to send
JMSException - if the message could not be created
public Message createResponseMessage(Session session,
org.springframework.remoting.support.RemoteInvocationResult result,
Message requestMessage)
throws JMSException
Marshaller
createResponseMessage in interface Marshallersession - the JMS session to useresult - the result invocationrequestMessage - the original request message
JMSException - if the message could not be created
public org.springframework.remoting.support.RemoteInvocationResult extractInvocationResult(Message message)
throws JMSException
Marshaller
extractInvocationResult in interface Marshallermessage - the response message
JMSException - is thrown if a JMS exception occurs
public org.springframework.remoting.support.RemoteInvocation readRemoteInvocation(Message message)
throws JMSException
Marshaller
readRemoteInvocation in interface Marshallermessage - current JMS message
JMSException
public Message createObjectMessage(Session session,
Object value)
throws JMSException
Marshaller
createObjectMessage in interface MarshallerJMSException
public Object readMessage(Message message)
throws JMSException
Marshaller
readMessage in interface MarshallerJMSExceptionpublic boolean isIgnoreInvalidMessages()
public void setIgnoreInvalidMessages(boolean ignoreInvalidMessages)
protected org.springframework.remoting.support.RemoteInvocationResult onInvalidClientMessage(Message message)
throws JMSException
JMSExceptionprotected org.springframework.remoting.support.RemoteInvocation onInvalidMessage(Message message)
protected void appendMessageHeaders(Message message,
Requestor requestor,
LingoInvocation invocation)
throws JMSException
JMSException
protected void appendMessageHeaders(Message message,
Session session,
Object value)
protected String getStickySessionID()
protected void addResponseMessageHeaders(ObjectMessage answer,
org.springframework.remoting.support.RemoteInvocationResult result,
Message requestMessage)
throws JMSException
JMSExceptionprotected void handleInvocationHeaders(Message message)
protected void handleInvocationResultHeaders(Message message)
protected void handleMessageHeaders(Message message)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||