public class OA2UtilServlet extends EnvServlet
Created by Jeff Gaynor
on 1/4/18 at 11:19 AM
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_CHECK_CLAIM |
static String |
ACTION_KEY |
static String |
CLAIM_NAME_KEY |
static String |
CLAIM_VALUE_KEY |
static int |
CODE_ERROR |
static int |
CODE_NO |
static int |
CODE_OK |
static String |
MESSAGE_KEY |
static String |
RESPONSE_ERROR |
static String |
RESPONSE_FAIL |
static String |
RESPONSE_OK |
static String |
STATUS_KEY |
static String |
TOKEN_KEY |
storeUpdatesDone
environment, initialization, PING_PARAMETER
Constructor and Description |
---|
OA2UtilServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doIt(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
protected String |
getParameter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String paramName) |
protected void |
spitOutMessage(javax.servlet.http.HttpServletResponse resp,
int code,
String infoMessage)
Prints a message to info (unless the message is null) and the returnedMessage is written to the response and closed.
|
void |
storeUpdates()
This will be invoked at init before anything else and should include code to seamlessly upgrade stores from earlier versions.
|
loadEnvironment, loadProperties2, processStoreCheck
CONST, debug, doGet, 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 String ACTION_KEY
public static String ACTION_CHECK_CLAIM
public static String TOKEN_KEY
public static String CLAIM_NAME_KEY
public static String CLAIM_VALUE_KEY
public static final int CODE_OK
public static String RESPONSE_OK
public static String RESPONSE_FAIL
public static String RESPONSE_ERROR
public static final int CODE_NO
public static final int CODE_ERROR
public static String STATUS_KEY
public static String MESSAGE_KEY
protected void doIt(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws Throwable
doIt
in class AbstractServlet
Throwable
protected void spitOutMessage(javax.servlet.http.HttpServletResponse resp, int code, String infoMessage) throws Throwable
resp
- code
- infoMessage
- Throwable
protected String getParameter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String paramName) throws Throwable
Throwable
public void storeUpdates() throws IOException, SQLException
EnvServlet
EnvServlet.storeUpdatesDone
which should be
checks in overrides. If you override this method and call super, let super manage this flag. If it is true, do not
execute your method.storeUpdates
in class EnvServlet
IOException
SQLException
Copyright © 2019. All Rights Reserved.