org.granite.client.messaging.messages.requests
Class InvocationMessage

java.lang.Object
  extended by org.granite.client.messaging.messages.AbstractMessage
      extended by org.granite.client.messaging.messages.requests.AbstractRequestMessage
          extended by org.granite.client.messaging.messages.requests.InvocationMessage
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, Iterable<InvocationMessage>, Message, MessageChain<InvocationMessage>, RequestMessage

public final class InvocationMessage
extends AbstractRequestMessage
implements MessageChain<InvocationMessage>

Author:
Franck WOLFF
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.granite.client.messaging.messages.Message
Message.Type
 
Constructor Summary
InvocationMessage()
           
InvocationMessage(String id, String clientId, long timestamp, long timeToLive, Map<String,Object> headers, String serviceId, String method, Object[] parameters)
           
InvocationMessage(String serviceId, String method, Object[] parameters)
           
InvocationMessage(String clientId, String serviceId, String method, Object[] parameters)
           
 
Method Summary
 InvocationMessage copy()
           
 String getMethod()
           
 InvocationMessage getNext()
           
 Object[] getParameters()
           
 String getServiceId()
           
 Message.Type getType()
           
 Iterator<InvocationMessage> iterator()
           
 void readExternal(ObjectInput in)
           
 void setMethod(String method)
           
 void setNext(InvocationMessage next)
           
 void setParameters(Object[] parameters)
           
 void setServiceId(String serviceId)
           
 StringBuilder toString(StringBuilder sb)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.granite.client.messaging.messages.AbstractMessage
clone, copy, equals, getClientId, getHeader, getHeaders, getId, getRemainingTimeToLive, getRemainingTimeToLive, getTimestamp, getTimeToLive, hashCode, headerExists, isExpired, isExpired, setClientId, setHeader, setHeaders, setId, setTimestamp, setTimeToLive, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.granite.client.messaging.messages.Message
clone, getClientId, getHeader, getHeaders, getId, getRemainingTimeToLive, getRemainingTimeToLive, getTimestamp, getTimeToLive, headerExists, isExpired, isExpired, setClientId, setHeader, setHeaders, setId, setTimestamp, setTimeToLive
 

Constructor Detail

InvocationMessage

public InvocationMessage()

InvocationMessage

public InvocationMessage(String serviceId,
                         String method,
                         Object[] parameters)

InvocationMessage

public InvocationMessage(String clientId,
                         String serviceId,
                         String method,
                         Object[] parameters)

InvocationMessage

public InvocationMessage(String id,
                         String clientId,
                         long timestamp,
                         long timeToLive,
                         Map<String,Object> headers,
                         String serviceId,
                         String method,
                         Object[] parameters)
Method Detail

getType

public Message.Type getType()
Specified by:
getType in interface Message

getServiceId

public String getServiceId()

setServiceId

public void setServiceId(String serviceId)

getMethod

public String getMethod()

setMethod

public void setMethod(String method)

getParameters

public Object[] getParameters()

setParameters

public void setParameters(Object[] parameters)

setNext

public void setNext(InvocationMessage next)
Specified by:
setNext in interface MessageChain<InvocationMessage>

getNext

public InvocationMessage getNext()
Specified by:
getNext in interface MessageChain<InvocationMessage>

iterator

public Iterator<InvocationMessage> iterator()
Specified by:
iterator in interface Iterable<InvocationMessage>

copy

public InvocationMessage copy()
Specified by:
copy in interface Message

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class AbstractMessage
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class AbstractMessage
Throws:
IOException

toString

public StringBuilder toString(StringBuilder sb)
Overrides:
toString in class AbstractMessage