public abstract class ClientServlet extends AbstractServlet
ClientEnvironment
and making the OA4MPService
instance. It also includes a utility call for getting a cookie with
the identifier (stored with the key "oa4mp_client_req_id" in
the users browser). SimpleStartRequest
and SimpleReadyServlet
to see how to extend and use it.
Created by Jeff Gaynor
on 2/10/12 at 12:51 PM
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_KEY |
static String |
ACTION_REDIRECT_VALUE |
static Cleanup<Identifier,Asset> |
assetCleanup |
static String |
OA4MP_CLIENT_REQUEST_ID
If a client specifically requests a response with debugging information then this will
be returned ONLY in cases of an error on the server.
|
static String |
REDIR |
environment, initialization, PING_PARAMETER
Constructor and Description |
---|
ClientServlet() |
Modifier and Type | Method and Description |
---|---|
protected String |
clearCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Clear the CILogon client cookie.
|
void |
destroy() |
protected HashMap<String,Asset> |
getAssetCache() |
ClientEnvironment |
getCE()
Convenience for client servlets.
|
OA4MPService |
getOA4MPService() |
void |
loadEnvironment()
Loads the current environment.
|
protected void |
shutdownCleanup(Cleanup c) |
CONST, debug, doGet, doIt, doPing, doPost, error, getConfigurationLoader, getEnvironment, getExceptionHandler, getFirstParameterValue, getInitialization, getMyLogger, handleException, info, init, isDebugOn, printAllParameters, resetState, setConfigurationLoader, setDebugOn, setEnvironment, setExceptionHandler, setInitialization, warn
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public static final String ACTION_KEY
public static final String ACTION_REDIRECT_VALUE
public static final String REDIR
public static final String OA4MP_CLIENT_REQUEST_ID
public static Cleanup<Identifier,Asset> assetCleanup
public ClientEnvironment getCE()
public void loadEnvironment() throws IOException
AbstractServlet
loadEnvironment
in class AbstractServlet
IOException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
protected void shutdownCleanup(Cleanup c)
public OA4MPService getOA4MPService() throws IOException
IOException
protected String clearCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- response
- Copyright © 2019. All Rights Reserved.