org.apache.cocoon.components.url
Class ParsedResourceURLProtocolHandler

java.lang.Object
  extended by org.apache.batik.util.AbstractParsedURLProtocolHandler
      extended by org.apache.cocoon.components.url.ParsedResourceURLProtocolHandler
All Implemented Interfaces:
org.apache.batik.util.ParsedURLProtocolHandler

public class ParsedResourceURLProtocolHandler
extends org.apache.batik.util.AbstractParsedURLProtocolHandler

Provide an extension to Batik to handle the "resource:" protocol. This class uses the Thread.getContextClassLoader() classloader to get resources. It is safe to use this URL with multiple Cocoon webapps running.

Version:
CVS $Id: ParsedResourceURLProtocolHandler.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Berin Loritsch

Field Summary
 
Fields inherited from class org.apache.batik.util.AbstractParsedURLProtocolHandler
protocol
 
Constructor Summary
ParsedResourceURLProtocolHandler()
          Create a new instance, this doesn't do much beyond register the type of protocol we handle.
 
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.
 
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
 

Constructor Detail

ParsedResourceURLProtocolHandler

public ParsedResourceURLProtocolHandler()
Create a new instance, this doesn't do much beyond register the type of protocol we handle.

Method Detail

parseURL

public org.apache.batik.util.ParsedURLData parseURL(String uri)
Getbase.getPath() the ParsedURLData for the context. Absolute URIs are specified like "resource://".


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 "resource:".



Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.