|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.logicblaze.lingo.jms.marshall.DefaultMarshaller
Represents the strategy of marshalling of requests and responses in and out of JMS messages
Constructor Summary | |
DefaultMarshaller()
|
Method Summary | |
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 |
Message |
createRequestMessage(Requestor requestor,
LingoInvocation invocation)
Creates the request message |
org.springframework.remoting.support.RemoteInvocationResult |
extractInvocationResult(Message message)
Extracts the invocation result from the response message |
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 |
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 |
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 Marshaller
requestor
- invocation
- the remote invocation to send
JMSException
- if the message could not be createdpublic org.springframework.remoting.support.RemoteInvocationResult extractInvocationResult(Message message) throws JMSException
Marshaller
extractInvocationResult
in interface Marshaller
message
- the response message
JMSException
- is thrown if a JMS exception occurspublic org.springframework.remoting.support.RemoteInvocation readRemoteInvocation(Message message) throws JMSException
Marshaller
readRemoteInvocation
in interface Marshaller
message
- current JMS message
JMSException
public boolean isIgnoreInvalidMessages()
public void setIgnoreInvalidMessages(boolean ignoreInvalidMessages)
protected org.springframework.remoting.support.RemoteInvocationResult onInvalidClientMessage(Message message) throws JMSException
JMSException
protected org.springframework.remoting.support.RemoteInvocation onInvalidMessage(Message message)
protected void appendMessageHeaders(Message message, Requestor requestor, LingoInvocation invocation)
protected void handleInvocationHeaders(Message message)
protected void handleInvocationResultHeaders(Message message)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |