public class GatewayServlet extends javax.servlet.http.HttpServlet
{ "heap": { ... }, "handler": "DispatchHandler", "baseURI": "http://localhost:8080", "logSink": "myCustomLogSink", "temporaryStorage": "myCustomStorage" }handler is the only mandatory configuration attribute.
Constructor and Description |
---|
GatewayServlet()
Default constructor invoked from web container.
|
GatewayServlet(Environment environment)
Creates a new servlet using the provided environment.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
init(javax.servlet.ServletConfig servletConfig) |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles a servlet request by dispatching it to a handler.
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public GatewayServlet()
public GatewayServlet(Environment environment)
environment
- The application environment.public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
service
in class javax.servlet.http.HttpServlet
request
- the HttpServletRequest
object that will be used to populate the initial OpenIG's
Request
encapsulated in the Exchange
.response
- the HttpServletResponse
object that contains the response the servlet returns to the client.IOException
- if an input or output error occurs while the servlet is handling the HTTP request.javax.servlet.ServletException
- if the HTTP request cannot be handled.Copyright © 2014 ForgeRock AS. All rights reserved.