| 
 | Back to GWTP Home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcom.gwtplatform.mvp.client.proxy.PlaceRequest
public class PlaceRequest
This class represents a 'request' for a place location. It includes the 'id' of the place as well as any parameter values. It can convert from and to String tokens for use with the GWT History.
Place request tokens are formatted like this:#nameToken(;key=value)*
 
 
 There is a mandatory 'nameToken' value, followed by 0 or more key/value
 pairs, separated by semi-colons (';'). A few examples follow:
 
 #users#user;name=j.blogs#user-email;name=j.blogs;type=homeParameterTokenFormatter.
| Nested Class Summary | |
|---|---|
| static class | PlaceRequest.BuilderClass for constructing PlaceRequests. | 
| Constructor Summary | |
|---|---|
| PlaceRequest()Builds a request without any name token and without parameters. | |
| PlaceRequest(String nameToken)Deprecated. Please use PlaceRequest.Builder.nameToken(String)instead | |
| Method Summary | |
|---|---|
|  boolean | equals(Object obj) | 
|  String | getNameToken() | 
|  String | getParameter(String key,
             String defaultValue)Extracts a given parameter from the PlaceRequest. | 
|  Set<String> | getParameterNames()Retrieves all the parameters available with the request. | 
|  int | hashCode() | 
|  boolean | hasSameNameToken(PlaceRequest other)Checks if this place request has the same name token as the one passed in. | 
|  boolean | matchesNameToken(String nameToken)Checks if this place request matches the name token passed. | 
|  PlaceRequest | with(String name,
     String value)Deprecated. Please use PlaceRequest.Builder.with(String, String)instead | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PlaceRequest()
PlaceRequest(String) and specify the name token.
 However, this version is acceptable when calling
 com.gwtplatform.mvp.client.proxy.Proxy#reveal(com.gwtplatform.mvp.client.proxy.PlaceRequest).
@Deprecated public PlaceRequest(String nameToken)
PlaceRequest.Builder.nameToken(String)
             instead
   PlaceRequest request = newRequest.with(key1, param1)
                                    .with(key2, param2);
 
nameToken - The name token for the request.| Method Detail | 
|---|
public boolean equals(Object obj)
equals in class Objectpublic String getNameToken()
public String getParameter(String key,
                           String defaultValue)
PlaceRequest.
key - The name of the parameter.defaultValue - The value returned if the parameter is not found.
defaultValue otherwise.public Set<String> getParameterNames()
Set containing all the parameter names.public int hashCode()
hashCode in class Objectpublic boolean hasSameNameToken(PlaceRequest other)
other - The PlaceRequest to check against.
true if both requests share the same name token. false otherwise.public boolean matchesNameToken(String nameToken)
nameToken - The name token to match.
true if the request matches. false otherwise.
@Deprecated
public PlaceRequest with(String name,
                                    String value)
PlaceRequest.Builder.with(String, String)
             instead
name - The new parameter name.value - The new parameter value.
| 
 | Back to GWTP Home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||