cgl.narada.transport.up2p.messages
Class RegistrationResponse

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

public class RegistrationResponse
extends Object
implements Serializable

Created on Aug 7, 2006

See Also:
Serialized Form

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

Constructor Detail

RegistrationResponse

public RegistrationResponse(SocketAddress address)
Method Detail

getPeerPublicAddress

public final SocketAddress getPeerPublicAddress()

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 RegistrationResponse createObjectFromBytes(byte[] objectBytes)
Unmarshalls the bytes as a RegistrationResponse object

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


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