public class ServletContextResolver extends Object implements PathResolver
PathResolver
Constructor and Description |
---|
ServletContextResolver(javax.servlet.ServletContext ctx)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PathResolver |
getResolver(String ctxPath)
Retrieve the PathResolver rooted at the given path.
|
String |
resolvePath(String ctxPath)
Delegates to the underlying ServletContext's getRealPath(String).
|
public ServletContextResolver(javax.servlet.ServletContext ctx)
ctx
- The ServletContext instance for this web application.public String resolvePath(String ctxPath)
resolvePath
in interface PathResolver
ctxPath
- context sensitive path, can be a relative URLnull
PathResolver.resolvePath(java.lang.String)
public PathResolver getResolver(String ctxPath)
getResolver
in interface PathResolver
ctxPath
- context sensitive path, can be a relative URLPathResolver.getResolver(java.lang.String)
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.