如果我实现自己的PlaceHistoryMapper
:
public class MyAppPlaceHistoryMapper implements PlaceHistoryMapper {
@Override
public Place getPlace(String token) {
if(token.equals("home"))
return new HomePlace();
else
return new AboutUsPlace();
}
@Override
public String getToken(Place place) {
if(place instanceof HomePlace)
return "home";
else
return "about-us";
}}
}
如果我的网络应用程序植根于http://www.myapp.com
,那么与HomePlace
和相关联的实际(可书签)URL 是AboutUsPlace
什么?他们是:
http://www.myapp.com/home
和http://www.myapp.com/about-us
; 或者http://www.myapp.com/HomePlace:home
和http://www.myapp.com/AboutUsPlace:about-us
; 或者- 别的东西?
提前致谢!