On Wednesday, November 14, 2012 10:38:50 PM UTC+1, Robert Hoffmann wrote:
Hi,
I am currently using:
- PlaceHistoryMapper historyMapper = GWT.create(AppPlaceHistoryMapper.class);
- @WithTokenizers({FrontPlace.Tokenizer.class, ...}) on PlaceHistoryMapper
I'd like to use now hash bang tokens for places to support bot crawling.
What is the best way (minimal change) to do this?
Ideally, I'd change the @Prefix annotations to include the "!"; but you can also extend DefaultHistorian, or use your approach, which is fine too (in getPlace, instead of unconditionally trying a substring(1), I'd rather check with a startsWith("!")).
But that's the easiest part of the #! story…