cgl.narada.transport.up2p.messages
Class P2PConnectionRequest

java.lang.Object
  extended by cgl.narada.transport.up2p.messages.P2PConnectionRequest
All Implemented Interfaces:
Serializable

public class P2PConnectionRequest
extends Object
implements Serializable

Created on Aug 7, 2006

See Also:
Serialized Form

Constructor Summary
P2PConnectionRequest(String destId, String magic)
           
 
Method Summary
static P2PConnectionRequest createObjectFromBytes(byte[] objectBytes)
          Unmarshalls the bytes as a P2PConnectionRequest object
 byte[] getBytes()
          Marshalls the object into an array of bytes.
 String getDestinationPeerID()
           
 String getMagic()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

P2PConnectionRequest

public P2PConnectionRequest(String destId,
                            String magic)
Method Detail

getDestinationPeerID

public final String getDestinationPeerID()

getMagic

public final String getMagic()

getBytes

public byte[] getBytes()
Marshalls the object into an array of bytes.

Returns:
an array of bytes representing the marshaller object, null if error occurs

createObjectFromBytes

public static P2PConnectionRequest createObjectFromBytes(byte[] objectBytes)
Unmarshalls the bytes as a P2PConnectionRequest object

Parameters:
objectBytes -
Returns:
P2PConnectionRequest if successful, null if error occurs


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