public interface RebelServletContext
RebelServletContext consists of the resource providing methods
defined in javax.servlet.ServletContext.
Separate interface is required as the javax.servlet.ServletContext
interface is not loaded by the boot class loader.
All Servlet context instances must implement this interface in order to be integrated with JavaRebel.
In practice a bytecode processor makes javax.servlet.ServletContext
to extend the given interface. So no particular Servlet context implementation
has to implement it explicitly.
ServletIntegration| Modifier and Type | Method and Description |
|---|---|
String |
getRealPath(String path)
Returns a String containing the real path for a given virtual path.
|
URL |
getResource(String path)
Returns a URL to the resource that is mapped to a specified path.
|
InputStream |
getResourceAsStream(String name)
Returns the resource located at the named path as an InputStream object.
|
Set<String> |
getResourcePaths(String path)
Returns a directory-like listing of all the paths to resources within the web
application whose longest sub-path matches the supplied path argument.
|
Set<String> getResourcePaths(String path)
path - partial path used to match the resources, which must start with a /URL getResource(String path) throws MalformedURLException
path - a String specifying the path to the resourceMalformedURLException - if the pathname is not given in the correct formInputStream getResourceAsStream(String name)
name - a String specifying the path to the resourceString getRealPath(String path)
path - a String specifying a virtual pathCopyright © 2016. All rights reserved.