public final class HttpFrameworkServlet
extends javax.servlet.http.HttpServlet
An HTTP servlet implementation which provides integration between the Servlet API and the common HTTP Framework.
A HttpApplication
implementation must be registered in the
ServiceLoader
framework
HttpApplication
,
Serialized FormModifier and Type | Field and Description |
---|---|
DescribableHandler |
handler |
static String |
ROUTING_BASE_INIT_PARAM_NAME
Servlet init-param for configuring the routing base for the
HttpApplication . |
Constructor and Description |
---|
HttpFrameworkServlet()
Default constructor for use via web.xml declaration.
|
HttpFrameworkServlet(HttpApplication application)
Creates a new
HttpFrameworkServlet programmatically using the
specified HttpApplication . |
Modifier and Type | Method and Description |
---|---|
static ClientContext |
createClientContext(Context parent,
javax.servlet.http.HttpServletRequest req) |
Request |
createRequest(javax.servlet.http.HttpServletRequest req) |
UriRouterContext |
createRouterContext(Context parent,
javax.servlet.http.HttpServletRequest req,
Request request) |
void |
destroy() |
static HttpFrameworkServlet |
getGatewayHttpFrameworkServlet() |
static DescribableHandler |
getRootHandler() |
void |
init() |
protected void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public static final String ROUTING_BASE_INIT_PARAM_NAME
HttpApplication
.ServletRoutingBase
,
Constant Field Valuespublic DescribableHandler handler
public HttpFrameworkServlet()
public HttpFrameworkServlet(HttpApplication application)
HttpFrameworkServlet
programmatically using the
specified HttpApplication
.application
- The HttpApplication
instance.public static HttpFrameworkServlet getGatewayHttpFrameworkServlet()
public static DescribableHandler getRootHandler()
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public Request createRequest(javax.servlet.http.HttpServletRequest req) throws IOException, URISyntaxException
IOException
URISyntaxException
public static ClientContext createClientContext(Context parent, javax.servlet.http.HttpServletRequest req)
public UriRouterContext createRouterContext(Context parent, javax.servlet.http.HttpServletRequest req, Request request) throws URISyntaxException
URISyntaxException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
Copyright © 2025 Open Identity Platform Community. All rights reserved.