net.customware.gwt.presenter.client.place
Class PlaceRequest
java.lang.Object
net.customware.gwt.presenter.client.place.PlaceRequest
public class PlaceRequest
- extends java.lang.Object
Method Summary |
boolean |
equals(java.lang.Object obj)
|
static PlaceRequest |
fromString(java.lang.String token)
Parses a GWT history token into a Place instance. |
java.lang.String |
getParameter(java.lang.String key,
java.lang.String defaultValue)
|
java.util.Set<java.lang.String> |
getParameterNames()
|
Place |
getPlace()
|
int |
hashCode()
|
java.lang.String |
toString()
Outputs the place as a GWT history token. |
PlaceRequest |
with(java.lang.String name,
java.lang.String value)
Returns a new instance of the request with the specified parameter name
and value. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PlaceRequest
public PlaceRequest(Place id)
getPlace
public Place getPlace()
getParameterNames
public java.util.Set<java.lang.String> getParameterNames()
getParameter
public java.lang.String getParameter(java.lang.String key,
java.lang.String defaultValue)
with
public PlaceRequest with(java.lang.String name,
java.lang.String value)
- Returns a new instance of the request with the specified parameter name
and value. If a parameter with the same name was previously specified,
the new request contains the new value.
- Parameters:
name
- The new parameter name.value
- The new parameter value.
- Returns:
- The new place request instance.
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Outputs the place as a GWT history token.
- Overrides:
toString
in class java.lang.Object
fromString
public static PlaceRequest fromString(java.lang.String token)
throws PlaceParsingException
- Parses a GWT history token into a
Place
instance.
- Parameters:
token
- The token.
- Returns:
- The place, or
null
if the token could not be
parsed.
- Throws:
PlaceParsingException
Copyright © 2009 customware.net. All Rights Reserved.