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.
| Modifier and Type | Field and Description |
|---|---|
| private final MetaFilter | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| protected | MetaServlet(MetaFilter
the filter being wrapped by the servlet. delegateFilter)Initialize a servlet wrapping a filter. |
| Modifier and Type | Method and Description |
|---|---|
| public void | destroy()
Overrides jakarta. Implements jakarta. Called by the servlet container to indicate to a servlet that the servlet is being taken out of service. |
| protected MetaFilter | |
| public void | init(ServletConfig
the config)ServletConfig object that contains configuration information for this servletOverrides jakarta. Implements jakarta. Called by the servlet container to indicate to a servlet that the servlet is being placed into service. |
| protected ServletBinder | Returns: binder for the caller, potentially after adding one or more filters into the pipeline.the newly created binder. b)Configure a newly created binder. |
| public ServletBinder | |
| public ServletBinder | Returns: binder for the passed expression.the regular expression to pattern match the URL against. expression)Construct a binding for a regular expression. |
| protected void | service(HttpServletRequest
the req, HttpServletResponse HttpServletRequest object that contains the request the client made of the servletthe res)HttpServletResponse object that contains the response the servlet returns to the clientOverrides jakarta. Receives standard HTTP requests from the public |
| filter | back to summary |
|---|---|
| private final MetaFilter filter | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| MetaServlet | back to summary |
|---|---|
| public MetaServlet() Empty servlet with no bindings. | |
| MetaServlet | back to summary |
|---|---|
| protected MetaServlet(MetaFilter delegateFilter) Initialize a servlet wrapping a filter.
| |
| destroy | back to summary |
|---|---|
| public void destroy() Overrides jakarta. Implements jakarta. Doc from jakarta. Called by the servlet container to indicate to a servlet that the servlet is being taken out of service. See
| |
| getDelegateFilter | back to summary |
|---|---|
| protected MetaFilter getDelegateFilter() Get delegate filter
| |
| init | back to summary |
|---|---|
| public void init(ServletConfig config) throws ServletException Overrides jakarta. Implements jakarta. Doc from jakarta. Called by the servlet container to indicate to a servlet that the servlet is being placed into service. See
This implementation stores the
| |
| register | back to summary |
|---|---|
| protected ServletBinder register(ServletBinder b) Configure a newly created binder.
| |
| serve | back to summary |
|---|---|
| public ServletBinder serve(String path) Construct a binding for a specific path.
| |
| serveRegex | back to summary |
|---|---|
| public ServletBinder serveRegex(String expression) Construct a binding for a regular expression.
| |
| service | back to summary |
|---|---|
| protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException Overrides jakarta. Doc from jakarta. Receives standard HTTP requests from the public
| |