|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.eclipse.jgit.http.server.glue.MetaServlet
public class MetaServlet
Generic container servlet to manage routing to different pipelines.
Callers can create and configure a new processing pipeline by using one of
the serve(String)
or serveRegex(String)
methods to allocate
a binder for a particular URL pattern.
Registered filters and servlets are initialized lazily, usually during the first request. Once initialized the bindings in this servlet cannot be modified without destroying the servlet and thereby destroying all registered filters and servlets.
Constructor Summary | |
---|---|
MetaServlet()
Empty servlet with no bindings. |
Method Summary | |
---|---|
void |
destroy()
|
protected ServletBinder |
register(ServletBinder b)
Configure a newly created binder. |
ServletBinder |
serve(java.lang.String path)
Construct a binding for a specific path. |
ServletBinder |
serveRegex(java.lang.String expression)
Construct a binding for a regular expression. |
protected void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse rsp)
|
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetaServlet()
Method Detail |
---|
public ServletBinder serve(java.lang.String path)
path
- pattern to match.
public ServletBinder serveRegex(java.lang.String expression)
expression
- the regular expression to pattern match the URL against.
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp) throws javax.servlet.ServletException, java.io.IOException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
protected ServletBinder register(ServletBinder b)
b
- the newly created binder.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |