| org.zkoss.web.util.resource.ExtendletContext
Method Summary | |
public String | encodeRedirectURL(HttpServletRequest request, HttpServletResponse response, String uri, Map params, int mode) Returns the encoded URL for send redirect. | public String | encodeURL(ServletRequest request, ServletResponse response, String uri) Returns the encoded URL.
The returned URL is also encoded with HttpServletResponse.encodeURL.
It resolves "*" contained in URI, if any, to the proper Locale,
and the browser code.
Refer to
org.zkoss.web.servlet.Servlets.locate(javax.servlet.ServletContextServletRequestStringorg.zkoss.util.resource.Locator) for details. | public Locator | getLocator() Returns the locator of this context used to locate resorces. | public RequestDispatcher | getRequestDispatcher(String uri) | public URL | getResource(String uri) Returns the URL of the specified URI, or null if not found. | public InputStream | getResourceAsStream(String uri) Returns the resource of the specified URI as input stream,
or null if not found. | public ServletContext | getServletContext() Returns the servlet context. | public boolean | shallCompress(ServletRequest request, String ext) Tests whether to compress the specified extension, e.g, "js" and
"css". |
getLocator | public Locator getLocator()(Code) | | Returns the locator of this context used to locate resorces.
|
getResource | public URL getResource(String uri)(Code) | | Returns the URL of the specified URI, or null if not found.
|
getResourceAsStream | public InputStream getResourceAsStream(String uri)(Code) | | Returns the resource of the specified URI as input stream,
or null if not found.
|
shallCompress | public boolean shallCompress(ServletRequest request, String ext)(Code) | | Tests whether to compress the specified extension, e.g, "js" and
"css".
It returns false if the request is included by other Serlets.
|
|
|