public class GatekeeperServlet
extends javax.servlet.http.HttpServlet
This servlet offers an easily configurable and extensible approach, where key steps in the authorization and signature generation process are performed by pluggable interfaces:
TransactionIdProvider
: Generate a transaction ID to uniquely identify a
request/response transactionAuthorizer
: Allow or deny specific requested operationsUrlSigner
: Generate signed URLs for each operation that has been allowed by the
AuthorizerThese pluggable interfaces are configured in the servlet's configuration file, or if left unconfigured the default JetS3t implementations are used.
For more information about this servlet please refer to: JetS3t Gatekeeper
Constructor and Description |
---|
GatekeeperServlet() |
Modifier and Type | Method and Description |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Sends a simple HTML page in response to GET requests, indicating that the servlet is running.
|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles POST requests that contain Gatekeeper messages encoded as POST form properties, and
sends a plain text response document containing the Gatekeeper response message encoded as
a properties file.
|
void |
init(javax.servlet.ServletConfig servletConfig)
Initialises the pluggable implementation classes for
Authorizer ,
TransactionIdProvider , and UrlSigner |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
Authorizer
,
TransactionIdProvider
, and UrlSigner
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException