This project has retired. For details please refer to its
Attic page .
ParsedContextURLProtocolHandler (Cocoon API 2.1.12-dev [March 20 2012])
org.apache.cocoon.components.url
Class ParsedContextURLProtocolHandler
java.lang.Object
org.apache.batik.util.AbstractParsedURLProtocolHandler
org.apache.cocoon.components.url.ParsedContextURLProtocolHandler
All Implemented Interfaces: org.apache.batik.util.ParsedURLProtocolHandler
public class ParsedContextURLProtocolHandler extends org.apache.batik.util.AbstractParsedURLProtocolHandler
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).
Version:
CVS $Id: ParsedContextURLProtocolHandler.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Berin Loritsch
Fields inherited from class org.apache.batik.util.AbstractParsedURLProtocolHandler
protocol
Method Summary
org.apache.batik.util.ParsedURLData
parseURL (org.apache.batik.util.ParsedURL base,
String uri)
The build the relative URL.
org.apache.batik.util.ParsedURLData
parseURL (String uri)
Getbase.getPath() the ParsedURLData for the context.
static void
setContext (Context newContext)
Set the ServletContext for this protocol.
Methods inherited from class org.apache.batik.util.AbstractParsedURLProtocolHandler
getProtocolHandled
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
ParsedContextURLProtocolHandler
public ParsedContextURLProtocolHandler ()
Create a new instance, this doesn't do much beyond register the type of
protocol we handle.
setContext
public static final void setContext (Context newContext)
Set the ServletContext for this protocol. If it does not exist, you will
get NullPointerExceptions!
parseURL
public org.apache.batik.util.ParsedURLData parseURL (String uri)
Getbase.getPath() the ParsedURLData for the context. Absolute URIs are specified like
"context://".
parseURL
public org.apache.batik.util.ParsedURLData parseURL (org.apache.batik.util.ParsedURL base,
String uri)
The build the relative URL. Relative URIs are specified like "context:".
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.