ePOST API

rice.post
Class PostClientAddress

java.lang.Object
  extended by rice.post.PostClientAddress
All Implemented Interfaces:
java.io.Serializable

public final class PostClientAddress
extends java.lang.Object
implements java.io.Serializable

This class represents the notion of an address, which uniquely identifies an application running on top of the POST service. This class is designed using the factory pattery, with the getAddress() method as the entrance into the factory.

Version:
$Id: PostClientAddress.java 2081 2004-10-02 16:47:05Z amislove $
See Also:
Serialized Form

Field Summary
protected  java.lang.String name
           
 
Constructor Summary
PostClientAddress(java.lang.String name)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object o)
           
static PostClientAddress getAddress(PostClient client)
          Method by which one can generate a PostClientAddress.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
Constructor Detail

PostClientAddress

public PostClientAddress(java.lang.String name)
Constructor

Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getAddress

public static PostClientAddress getAddress(PostClient client)
Method by which one can generate a PostClientAddress. This method will always return the same address given the same PostClient class.

Parameters:
client - The client wanting an address
Returns:
A unique address for this class of client

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

ePOST API

Copyright © 2001-2005 - Rice Pastry.