1. Where can i find JavaDoc? Docs are quite useful.
2. I want to use PrettyConfigBuilder to add and remove entries programmatically. In real system one wants to add mapping and remove it when needed. So there is method to add UrlMapping but there isn’t for remove it .
I recommend using prettyContext.setCurrentConfig(PrettyConfig config) if you really want to change things around at runtime. Note, however, that PrettyContext requires an active HTTPSession in order to get a handle; however, if that is unappealing, you could also use this approach:
servletContext.getAttribute(PrettyContext.CONFIG_KEY) – as long as PrettyFaces has started up, the config should be set in that location. This is not really recommended, however, since it might cause threading issues when modifying the PrettyConfig during web-requests.