Cumulus4j API
(1.1.0)

org.cumulus4j.keymanager.back.shared
Class Message

java.lang.Object
  extended by org.cumulus4j.keymanager.back.shared.Message
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Request, Response

public abstract class Message
extends Object
implements Serializable

Base-type for Request and Response.

There should not be any other direct sub-classes of this class besides Request and Response.

We implement a request-response messaging-pattern, hence for every Request instance, there must be exactly one Response instance. Both are identified by the requestID

Author:
Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de
See Also:
Serialized Form

Constructor Summary
Message()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getRequestID()
          Get the request-identifier.
 int hashCode()
           
 void setRequestID(String requestID)
          Set the request-identifier.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message()
Method Detail

getRequestID

public String getRequestID()
Get the request-identifier. Because a Response belongs to a Request in a 1-1-relationship, both use the same requestID.

Returns:
the identifier of the request.
See Also:
setRequestID(String)

setRequestID

public void setRequestID(String requestID)
Set the request-identifier.

Parameters:
requestID - the identifier of the request.
See Also:
getRequestID()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Cumulus4j API
(1.1.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.