Back to GWTP Home

com.gwtplatform.mvp.client.proxy
Class PlaceRequest.Builder

Package class diagram package PlaceRequest.Builder
java.lang.Object
  extended by com.gwtplatform.mvp.client.proxy.PlaceRequest.Builder
Enclosing class:
PlaceRequest

public static final class PlaceRequest.Builder
extends Object

Class for constructing PlaceRequests. This class supports all currently existing constructors and the PlaceRequest.with(String, String) method. It is not checked if any of the builder parameters are set when calling the build() method as is currently also possible to construct an empty PlaceRequest (see PlaceRequest.PlaceRequest())


Constructor Summary
PlaceRequest.Builder()
          Constructor which will not initialize any internal variables; this should be done by calling either nameToken(String), with(String, String) or with(java.util.Map) method, e.g.
PlaceRequest.Builder(PlaceRequest request)
          'Copy' constructor for initializing a new PlaceRequest.Builder with data from an existing PlaceRequest, e.g.
 
Method Summary
 PlaceRequest build()
           
 PlaceRequest.Builder nameToken(String nameToken)
           
 PlaceRequest.Builder with(Map<String,String> params)
           
 PlaceRequest.Builder with(String name, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaceRequest.Builder

public PlaceRequest.Builder()
Constructor which will not initialize any internal variables; this should be done by calling either nameToken(String), with(String, String) or with(java.util.Map) method, e.g.
 
 PlaceRequest request = new PlaceRequest.Builder().nameToken("nameToken").build();
 
 


PlaceRequest.Builder

public PlaceRequest.Builder(PlaceRequest request)
'Copy' constructor for initializing a new PlaceRequest.Builder with data from an existing PlaceRequest, e.g.
 
 PlaceRequest request = placeManager.getCurrentPlaceRequest();
 PlaceRequest newRequest = new PlaceRequest.Builder(request).with("newParameter", "newValue").build();
 
 

Method Detail

nameToken

public PlaceRequest.Builder nameToken(String nameToken)

with

public PlaceRequest.Builder with(String name,
                                 String value)

with

public PlaceRequest.Builder with(Map<String,String> params)

build

public PlaceRequest build()

Back to GWTP Home

Copyright © 2010-2013 ArcBees. All Rights Reserved.