| org.apache.cocoon.components.url.ParsedContextURLProtocolHandler
ParsedContextURLProtocolHandler | public class ParsedContextURLProtocolHandler extends AbstractParsedURLProtocolHandler (Code) | | Provide an extension to Batik to handle the "context:" protocol. This class
assumes it will live in a separate classloader as the Context is set statically.
Batik uses the Jar file Services extension, so the class is instantiated in
an uncontrolled manner (as far as Cocoon is concerned).
author: Berin Loritsch version: CVS $Id: ParsedContextURLProtocolHandler.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public ParsedURLData | parseURL(String uri) Getbase.getPath() the ParsedURLData for the context. | public ParsedURLData | parseURL(ParsedURL base, String uri) The build the relative URL. | final public static void | setContext(Context newContext) Set the ServletContext for this protocol. |
ParsedContextURLProtocolHandler | public ParsedContextURLProtocolHandler()(Code) | | Create a new instance, this doesn't do much beyond register the type of
protocol we handle.
|
parseURL | public ParsedURLData parseURL(String uri)(Code) | | Getbase.getPath() the ParsedURLData for the context. Absolute URIs are specified like
"context://".
|
parseURL | public ParsedURLData parseURL(ParsedURL base, String uri)(Code) | | The build the relative URL. Relative URIs are specified like "context:".
|
setContext | final public static void setContext(Context newContext)(Code) | | Set the ServletContext for this protocol. If it does not exist, you will
get NullPointerExceptions!
|
|
|