public class ComponentServlet
extends javax.servlet.http.HttpServlet
The servlet listens for requests in the form /components/[componentName]/[JSP File] (e.g. /components/foo/example.jsp). It also listens for image requests in the the form /components/[componentName]/images/*.png|gif (e.g. /components/foo/images/example.gif).
JSP files must be compiled and available via the component's class loader. The mapping between JSP name and servlet class files is defined in [componentName]/web/web.xml. Typically, this file is auto-generated by the JSP compiler when packaging the component.
| Constructor and Description |
|---|
ComponentServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(javax.servlet.ServletConfig config) |
static void |
registerServlets(ComponentFinder finder,
org.xmpp.component.Component component,
File webXML)
Registers all JSP page servlets for a component.
|
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static void |
unregisterServlets(File webXML)
Unregisters all JSP page servlets for a component.
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicepublic void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionpublic static void registerServlets(ComponentFinder finder, org.xmpp.component.Component component, File webXML)
finder - the component finder.component - the component.webXML - the web.xml file containing JSP page names to servlet class file
mappings.public static void unregisterServlets(File webXML)
webXML - the web.xml file containing JSP page names to servlet class file
mappings.Copyright © 2004–2016 Ignite Realtime. All rights reserved.