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, service
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public 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–2015 Ignite Realtime. All rights reserved.