org.apache.commons.scxml.env
Class URLResolver

java.lang.Object
  extended by org.apache.commons.scxml.env.URLResolver
All Implemented Interfaces:
java.io.Serializable, PathResolver

public class URLResolver
extends java.lang.Object
implements PathResolver, java.io.Serializable

A PathResolver implementation that resolves against a base URL.

See Also:
PathResolver, Serialized Form

Constructor Summary
URLResolver(java.net.URL baseURL)
          Constructor.
 
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)
Constructor.

Parameters:
baseURL - The base URL to resolve against
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 © 2005-2008 The Apache Software Foundation. All Rights Reserved.