Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 (sad)) 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

...