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 |
---|---|
static String |
PRESERVE_ORIGINAL_QUERY_STRING_INIT_PARAM
Servlet init-param for configuring how strict CHF is in regard to invalid characters in query string.
|
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)
Deprecated.
Replaced by
HttpFrameworkServlet(HttpApplication, boolean) , which explicitly sets the
trustTransactionIdHeader field |
HttpFrameworkServlet(HttpApplication application,
boolean trustTransactionIdHeader)
Creates a new
HttpFrameworkServlet programmatically using the
specified HttpApplication . |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
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 static final String PRESERVE_ORIGINAL_QUERY_STRING_INIT_PARAM
public HttpFrameworkServlet()
@Deprecated public HttpFrameworkServlet(HttpApplication application)
HttpFrameworkServlet(HttpApplication, boolean)
, which explicitly sets the
trustTransactionIdHeader
fieldHttpFrameworkServlet
programmatically using the
specified HttpApplication
.application
- The HttpApplication
instance or null
.public HttpFrameworkServlet(HttpApplication application, boolean trustTransactionIdHeader)
HttpFrameworkServlet
programmatically using the
specified HttpApplication
.application
- The HttpApplication
instance or null
.trustTransactionIdHeader
- true
to trust HTTP request transaction ID headers and false
otherwisepublic 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 void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
Copyright 2011-2017 ForgeRock AS.