cgl.narada.matching
Class ProfileRequest

java.lang.Object
  extended by cgl.narada.matching.ProfileRequest

public class ProfileRequest
extends Object

This class encapsulates a profile propagation request


Constructor Summary
ProfileRequest(byte[] marshalledBytes)
           
ProfileRequest(Profile profile, boolean addProfile)
           
ProfileRequest(Profile profile, boolean addProfile, int level)
           
 
Method Summary
 byte[] getBytes()
          This method returns a serialized representation of the profile propagation Request
 byte[] getDestinationsToReach()
           
 byte[] getDestinationsTraversedSoFar()
           
 int getLevel()
          If the level return is -1 it means the value was never changed after its initialization.
 Profile getProfile()
           
 byte[] getSignedSecurityToken()
           
 boolean hasSignedSecurityToken()
           
 boolean isAddProfile()
          Indicates if the profile propagation request refers to a profile addition or removal
 boolean isFromClient()
          Indicates if this profile propagation request is from a client
 void setDestinationsToReach(byte[] toReach)
           
 void setDestinationsTraversedSoFar(byte[] traversedSoFar)
           
 void setSignedSecurityToken(byte[] sst)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileRequest

public ProfileRequest(Profile profile,
                      boolean addProfile)

ProfileRequest

public ProfileRequest(Profile profile,
                      boolean addProfile,
                      int level)

ProfileRequest

public ProfileRequest(byte[] marshalledBytes)
Method Detail

isFromClient

public boolean isFromClient()
Indicates if this profile propagation request is from a client


isAddProfile

public boolean isAddProfile()
Indicates if the profile propagation request refers to a profile addition or removal


getProfile

public Profile getProfile()

getLevel

public int getLevel()
If the level return is -1 it means the value was never changed after its initialization.


getDestinationsToReach

public byte[] getDestinationsToReach()

getDestinationsTraversedSoFar

public byte[] getDestinationsTraversedSoFar()

setDestinationsToReach

public void setDestinationsToReach(byte[] toReach)

setDestinationsTraversedSoFar

public void setDestinationsTraversedSoFar(byte[] traversedSoFar)

getBytes

public byte[] getBytes()
This method returns a serialized representation of the profile propagation Request


setSignedSecurityToken

public void setSignedSecurityToken(byte[] sst)

getSignedSecurityToken

public byte[] getSignedSecurityToken()

hasSignedSecurityToken

public boolean hasSignedSecurityToken()


For comments and suggestions please send e-mail to The NaradaBrokering Project