public class ExtensionsServlet extends HttpServlet
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 |
---|---|
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
protected void |
doPost(HttpServletRequest req,
HttpServletResponse resp) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
private static final long serialVersionUID
private static final Pattern PATH_MATCH
private static final Pattern ALTERNATE_PATH_MATCH
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