org.apache.taglibs.rdc.scxml.env
Class URLResolver

java.lang.Object
  extended by org.apache.taglibs.rdc.scxml.env.URLResolver
All Implemented Interfaces:
PathResolver

public class URLResolver
extends java.lang.Object
implements PathResolver

A PathResolver implementation that resolves against a base URL.

Author:
Jaroslav Gergic
See Also:
PathResolver

Constructor Summary
URLResolver(java.net.URL baseURL)
           
 
Method Summary
 PathResolver getResolver(java.lang.String ctxPath)
          Get a PathResolver rooted at this context sensitive path.
 java.lang.String resolvePath(java.lang.String ctxPath)
          Uses URL(URL, String) constructor to combine URL's
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLResolver

public URLResolver(java.net.URL baseURL)
Parameters:
baseURL -
Method Detail

resolvePath

public java.lang.String resolvePath(java.lang.String ctxPath)
Uses URL(URL, String) constructor to combine URL's

Specified by:
resolvePath in interface PathResolver
Parameters:
ctxPath - Context sensitive path, can be a relative URL
Returns:
Resolved path (an absolute URL) or null
See Also:
PathResolver.resolvePath(java.lang.String)

getResolver

public PathResolver getResolver(java.lang.String ctxPath)
Description copied from interface: PathResolver
Get a PathResolver rooted at this context sensitive path.

Specified by:
getResolver in interface PathResolver
Parameters:
ctxPath - Context sensitive path, can be a relative URL
Returns:
Returns a new resolver rooted at ctxPath
See Also:
PathResolver.getResolver(java.lang.String)


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.