| org.apache.lenya.cms.publication.DefaultDocumentBuilder
DefaultDocumentBuilder | public class DefaultDocumentBuilder extends AbstractLogEnabled implements DocumentBuilder,Serviceable,ThreadSafe(Code) | | Default document builder implementation.
version: $Id: DefaultDocumentBuilder.java 507914 2007-02-15 12:15:30Z andreas $ |
Field Summary | |
protected ServiceManager | manager |
manager | protected ServiceManager manager(Code) | | |
DefaultDocumentBuilder | public DefaultDocumentBuilder()(Code) | | Ctor.
|
buildCanonicalDocumentUrl | protected String buildCanonicalDocumentUrl(DocumentFactory factory, DocumentLocator locator)(Code) | | Builds the canonical document URL.
Parameters: factory - The document factory. Parameters: locator - The document locator. A string. |
getExtension | protected String getExtension(String url)(Code) | | Returns the extension of a URL.
Parameters: url - The URL. The extension. |
getLanguage | protected String getLanguage(String urlWithoutSuffix)(Code) | | Returns the language of a URL.
Parameters: urlWithoutSuffix - The URL without the suffix. A string. |
getLocatorWithoutCheck | protected DocumentLocator getLocatorWithoutCheck(DocumentFactory factory, String webappUrl) throws DocumentBuildException(Code) | | Creates a document locator for a webapp URL without checking if the
webapp URL refers to a locator first.
Parameters: factory - The document factory. Parameters: webappUrl - The webapp URL. A document locator or null if the URL doesn'trefer to a locator. throws: DocumentBuildException - if an error occurs. |
removeExtensions | protected String removeExtensions(String url)(Code) | | Removes all "."-separated extensions from a URL (e.g.,
/foo.print.html is transformed to /foo ).
Parameters: url - The URL to trim. A URL string. |
service | public void service(ServiceManager manager)(Code) | | See Also: org.apache.avalon.framework.service.Serviceable.service(org.apache.avalon.framework.service.ServiceManager) |
|
|