
public class PlaceRequest extends Object
#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.| Modifier and Type | Class and Description |
|---|---|
static class |
PlaceRequest.Builder
Class for constructing
PlaceRequests. |
| Constructor and Description |
|---|
PlaceRequest()
Builds a request without any name token and without parameters.
|
PlaceRequest(String nameToken)
Deprecated.
Please use
PlaceRequest.Builder.nameToken(String)
instead |
| Modifier and Type | Method and Description |
|---|---|
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 |
public PlaceRequest()
PlaceRequest(String) and specify the name token.
However, this version is acceptable when calling
com.gwtplatform.mvp.client.proxy.Proxy#reveal(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.public 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 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)
insteadname - The new parameter name.value - The new parameter value.Copyright © 2010-2014 ArcBees. All Rights Reserved.