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
This class represents a 'request' for a place location.
It includes the 'id' of the place as well as any parameter values.
PlaceRequests are usually created from GWT history strings by using a
TokenFormatter
- Author:
- David Peterson
|
Method Summary |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getName()
|
java.lang.String |
getParameter(java.lang.String key,
java.lang.String defaultValue)
|
java.util.Set<java.lang.String> |
getParameterNames()
|
int |
hashCode()
|
java.lang.String |
toString()
|
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(java.lang.String name)
getName
public java.lang.String getName()
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()
- Overrides:
toString in class java.lang.Object
Copyright © 2010 customware.net. All Rights Reserved.