Is there a way to retrieve the prefix of a Place

2011-02-10 Thread karthik reddy
I was wondering if  there is a way to retrieve   the prefix corresponding to 
a place ???

For example lets say I have the following Place class:

public class HomePlace extends Place {
 @Prefix("/home")
public static class Tokenizer implements PlaceTokenizer {

@Override
public HomePlace getPlace(String token) {
  return new HomePlace ();
}

@Override
public String getToken(HomePlace place) {
return "home";
}
}

}


Now, lets say I want to  retrieve the Prefix corresponding to HomePlace, in 
some other part of my code(say some Activity class) . Is there a way to do 
it ??? I know I could retrieve the token but am kinda clueless about being 
able to retrieve the prefix.

Any thoughts/pointers are much appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Is there a way to retrieve the prefix of a Place

2011-02-11 Thread karthik reddy
I just discovered the following method 

PrefixAndToken *getPrefixAndToken*(Place newPlace)


in the class  AbstractPlaceHistoryMapper  but the method is declared 
abstract and hence not implemented.

So, it does not help ; but this is the kind of functionality I am looking 
for.  Any thoughts ?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.