THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
/** Absolute URL of Roller, e.g. http://localhost:8080/roller */ public String getAbsoluteSite() { // return WebloggerRuntimeConfig.getAbsoluteContextURL(); URLStrategy urlStrategy = WebloggerFactory.getWeblogger().getUrlStrategy(); return urlStrategy.getWeblogURL(weblog, null, true); } |
Changes to WeblogRequestMapper
WeblogRequestMapper assumes the weblog handle is at the beginning of the pathInfo string in the request. We'll either need to subclass WeblogRequestMapper or inject (or lookup ) a strategy object that can do this. A strategy object would be better than a subclass. Do we create a new strategy object for decoding a URL or do we add methods to the existing URLStrategy objects?
New SubdomainURLStrategy object
...