All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.wizards.core.Route
java.lang.Object
|
+----com.sun.wizards.core.Route
- public class Route
- extends Object
- implements Serializable
Route is an object that has information that guides
requests from the server to the client or from the
client to the server.
This object facilitates communication between the
client and the server. On the server side, each
WizardState object has a unique Route object. On
the client side, each panel within the wizard client
panel tree has a unique Route object. The Route
objects simply route messages to the correct object.
-
clientRoute
- Route information specific to the client.
-
serverRoute
- Route information specific to the server.
-
Route()
- Creates a route with no server or client
entries.
-
addClientRoute(String)
- Add an element to the client route.
-
addServerRoute(String)
- Add an element to the server route.
-
copy()
- Create a copy of this Route object.
-
equals(Object)
- Compares two routes for equality.
-
getChildClientRoute(String)
- Return a route representing a path to a child of this
route object.
-
getChildServerRoute(String)
- Return a route representing a path to a child of this
route object.
-
getClientServerRoute()
- Returns a route to the parent of the client object referenced by
this route.
-
getNextClientRoute()
- Get the next client id.
-
getNextServerRoute()
- Get the next server id.
-
getParentServerRoute()
- Returns a route to the parent of the server object referenced by
this route.
-
isClientRouteComplete()
- Returns the completion status of the client route.
-
isServerRouteComplete()
- Returns the completion status of the server route.
-
toString()
- Convert this route to a string.
serverRoute
protected Stack serverRoute
- Route information specific to the server.
clientRoute
protected Stack clientRoute
- Route information specific to the client.
Route
public Route()
- Creates a route with no server or client
entries. This accomplishes a route to the
root object.
equals
public boolean equals(Object obj)
- Compares two routes for equality.
- Parameters:
- obj - The route object to compare to.
- Returns:
- true if the routes are equal; false otherwise.
- Overrides:
- equals in class Object
copy
public Route copy()
- Create a copy of this Route object.
- Returns:
- The copy of this route object.
addServerRoute
public void addServerRoute(String newServerElement)
- Add an element to the server route.
- Parameters:
- newServerElement - The element to be added to the
server route.
getChildServerRoute
public Route getChildServerRoute(String newServerChild)
- Return a route representing a path to a child of this
route object.
- Parameters:
- newServerChild - The name of the child.
getParentServerRoute
public Route getParentServerRoute()
- Returns a route to the parent of the server object referenced by
this route.
getChildClientRoute
public Route getChildClientRoute(String newClientChild)
- Return a route representing a path to a child of this
route object.
- Parameters:
- newClientChild - The child.
- Returns:
- The route to the specified child.
getClientServerRoute
public Route getClientServerRoute()
- Returns a route to the parent of the client object referenced by
this route.
addClientRoute
public void addClientRoute(String newClientElement)
- Add an element to the client route.
- Parameters:
- newClientElement - The element to be added to the
client route.
getNextServerRoute
public String getNextServerRoute()
- Get the next server id.
- Returns:
- The requested server id.
getNextClientRoute
public String getNextClientRoute()
- Get the next client id.
- Returns:
- The requested client id.
isServerRouteComplete
public boolean isServerRouteComplete()
- Returns the completion status of the server route.
- Returns:
- true if the server route is complete, false
otherwise.
isClientRouteComplete
public boolean isClientRouteComplete()
- Returns the completion status of the client route.
- Returns:
- true if the client route is complete, false
otherwise.
toString
public String toString()
- Convert this route to a string.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index