org.apache.cocoon.components.url
Class SourceProtocolHandler
java.lang.Object
org.apache.batik.util.AbstractParsedURLProtocolHandler
org.apache.cocoon.components.url.SourceProtocolHandler
- All Implemented Interfaces:
- org.apache.batik.util.ParsedURLProtocolHandler
public class SourceProtocolHandler
- extends org.apache.batik.util.AbstractParsedURLProtocolHandler
A Batik protocol handler that handles all Cocoon sources. This allows
<svg:image xlink:href="..."/> to use any of the protocols handled by Cocoon.
- Version:
- CVS $Id: SourceProtocolHandler.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Sylvain Wallez
Fields inherited from class org.apache.batik.util.AbstractParsedURLProtocolHandler |
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 |
localResolver
protected static final InheritableThreadLocal localResolver
- Thread-local source resolver
defaultHandler
protected static final org.apache.batik.util.ParsedURLProtocolHandler defaultHandler
- Batik's original default handler
SourceProtocolHandler
public SourceProtocolHandler(String protocol)
setup
public static void setup(SourceResolver resolver)
- Set the resolver to be used within the current thread.
getSourceResolver
public static SourceResolver getSourceResolver()
- Get the thread-local resolver.
parseURL
public org.apache.batik.util.ParsedURLData parseURL(org.apache.batik.util.ParsedURL baseURL,
String urlStr)
parseURL
public org.apache.batik.util.ParsedURLData parseURL(String urlStr)
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.