public class IlxWResourceManager
extends javax.servlet.http.HttpServlet
implements ilog.webui.dhtml.IlxWConstants
service method of this
servlet.
A resource manager servlet can be registered in your web application
in order to optimize the resource loading. Actually, if no resource
manager is registered in your Web application, the framework will
automatically generate a URL calling the controller servlet with a set
of parameters which will be forwarded to the resource manager servlet.
To avoid this forward and reduce the size of the generated URLs, you
can register your own resource manager in the deployment descriptor
(WEB-INF/web.xml) of your application.
For example, you may define a resource manager servlet and put it
in the /classes of your web application.
package mypackage;
public class MyResourceManager extends IlxWResourceManager {
// do nothing, simply redefine the servlet so that it is loaded
// by the class loader of the Web Application.
// Actually with some web servers, a servlet must always be a part of
// the classes of the web application.
}
And then, you will add the following lines to your web.xml
file:
<context-param> <param-name>ilog.webui.dhtml.resource_manager_path</param-name> <param-value>/_res</param-value> </context-param> ... <servlet> <servlet-name>MyResourceManager</servlet-name> <display-name>MyResourceManager</display-name> <description>Resource manager servlet</description> <servlet-class>mypackage.MyResourceManager</servlet-class> </servlet> ... <servlet-mapping> <servlet-name>MyResourceManager</servlet-name> <url-pattern>/_res/*</url-pattern> </servlet-mapping>
IlxWController,
Serialized Form| Constructor and Description |
|---|
IlxWResourceManager() |
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.ServletContext |
getServletContext() |
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
setServletContext(javax.servlet.ServletContext context) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicepublic javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.ServletConfiggetServletContext in class javax.servlet.GenericServletpublic void setServletContext(javax.servlet.ServletContext context)
public void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException,
javax.servlet.ServletException
service in class javax.servlet.http.HttpServletjava.io.IOExceptionjavax.servlet.ServletException© Copyright IBM Corp. 1987, 2017