Class ExtensionsServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
net.sf.basedb.clients.web.servlet.ExtensionsServlet
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
This servlet is 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
- Version:
- 2.7
- Author:
- nicklas
- See Also:
- Last modified
- $Date: 2008-03-17 14:40:46 +0100 (Mon, 17 Mar 2008) $
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Pattern
Alternatively the servlet is: /extensions/servlet and pathInfo is: /[jar-file-name]/[servlet-name]/optional/path/infoprivate static final Pattern
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 final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doGet
(HttpServletRequest request, HttpServletResponse response) protected void
doPost
(HttpServletRequest req, HttpServletResponse resp) Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
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) -
ALTERNATE_PATH_MATCH
Alternatively the servlet is: /extensions/servlet and pathInfo is: /[jar-file-name]/[servlet-name]/optional/path/info
-
-
Constructor Details
-
ExtensionsServlet
public ExtensionsServlet()
-
-
Method Details
-
doGet
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException - Overrides:
doGet
in classHttpServlet
- Throws:
ServletException
IOException
-
doPost
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException - Overrides:
doPost
in classHttpServlet
- Throws:
ServletException
IOException
-