net.customware.gwt.presenter.client.place
Interface TokenFormatter

All Known Implementing Classes:
ParameterTokenFormatter

public interface TokenFormatter

Provides services to convert a PlaceRequest to and from a History token value.


Method Summary
 java.lang.String toHistoryToken(PlaceRequest placeRequest)
          Converts a PlaceRequest into a History token.
 PlaceRequest toPlaceRequest(java.lang.String token)
          Converts a History token into a PlaceRequest.
 

Method Detail

toHistoryToken

java.lang.String toHistoryToken(PlaceRequest placeRequest)
                                throws TokenFormatException
Converts a PlaceRequest into a History token.

Parameters:
placeRequest - The place request
Returns:
The history token
Throws:
TokenFormatException

toPlaceRequest

PlaceRequest toPlaceRequest(java.lang.String token)
                            throws TokenFormatException
Converts a History token into a PlaceRequest.

Parameters:
token - The token.
Returns:
The place request
Throws:
TokenFormatException - if there is an error converting.


Copyright © 2010 customware.net. All Rights Reserved.