public class ExtensionsServlet extends HttpServlet
<load-on-startup>1</load-on-startup>
option in the web.xml file. When the servlet is loaded it will initialise the
ExtensionsControl
class.
This servlet is also acting as a proxy for requests to extension defined
servlets. Such servlets are defined in META-INF/servlets.xml
in the extension JAR file. A request to a servlet must have the following
URL pattern:
/extensions/[jar-name]/[servlet-name].servlet
Modifier and Type | Field and Description |
---|---|
private static Pattern |
ALTERNATE_PATH_MATCH
Alternatively the servlet is: /extensions/servlet
and pathInfo is: /[jar-file-name]/[servlet-name]/optional/path/info
|
private static Pattern |
PATH_MATCH
Path to servlet must match:
/extensions/[jar-file-name]/[servlet-name]/optional/path/info.servlet
group(1) = Servlet path; group(2) = JAR name, group(3) = Servlet name
group(4) = Path info (not including .servlet)
|
private static long |
serialVersionUID |
Constructor and Description |
---|
ExtensionsServlet() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
protected void |
doPost(HttpServletRequest req,
HttpServletResponse resp) |
void |
init() |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
private static final long serialVersionUID
private static final Pattern PATH_MATCH
private static final Pattern ALTERNATE_PATH_MATCH
public void init() throws ServletException
init
in class GenericServlet
ServletException
public void destroy()
destroy
in interface Servlet
destroy
in class GenericServlet
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doGet
in class HttpServlet
ServletException
IOException
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
doPost
in class HttpServlet
ServletException
IOException