public abstract class RequestHandler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
APPLICATION_OCTET_STREAM_TYPE |
static java.lang.String |
CSRF_TOKEN_HEADER |
static java.lang.String |
CSRF_TOKEN_PARAMETER |
static java.lang.String |
EXPIRES |
protected com.mendix.logging.ILogNode |
logger |
| Constructor and Description |
|---|
RequestHandler() |
RequestHandler(java.lang.Object component) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
buildUserInfo(IContext context) |
void |
doProcessRequest(com.mendix.m2ee.api.IMxRuntimeRequest request,
com.mendix.m2ee.api.IMxRuntimeResponse response,
java.lang.String path) |
protected java.lang.String |
formatDate(java.util.Date date) |
protected long |
getExpiresTimeStamp(int addYears) |
protected java.lang.String |
getSessionCookieName() |
protected ISession |
getSessionFromRequest(com.mendix.m2ee.api.IMxRuntimeRequest request)
Get the session using the cookie.
|
protected ISession |
getSessionFromRequest(com.mendix.m2ee.api.IMxRuntimeRequest request,
boolean performCSRFCheck)
Get the session using the cookie.
|
protected boolean |
isSessionKilledByNewLogin(com.mendix.m2ee.api.IMxRuntimeRequest request) |
protected java.util.Date |
parseDate(java.lang.String date) |
protected abstract void |
processRequest(com.mendix.m2ee.api.IMxRuntimeRequest request,
com.mendix.m2ee.api.IMxRuntimeResponse response,
java.lang.String path)
Process the request
|
public static final java.lang.String CSRF_TOKEN_HEADER
public static final java.lang.String CSRF_TOKEN_PARAMETER
public static final java.lang.String EXPIRES
protected static final java.lang.String APPLICATION_OCTET_STREAM_TYPE
protected com.mendix.logging.ILogNode logger
public RequestHandler()
public RequestHandler(java.lang.Object component)
public void doProcessRequest(com.mendix.m2ee.api.IMxRuntimeRequest request,
com.mendix.m2ee.api.IMxRuntimeResponse response,
java.lang.String path)
throws java.lang.Exception
java.lang.Exceptionprotected abstract void processRequest(com.mendix.m2ee.api.IMxRuntimeRequest request,
com.mendix.m2ee.api.IMxRuntimeResponse response,
java.lang.String path)
throws java.lang.Exception
request - response - path - java.lang.Exceptionprotected ISession getSessionFromRequest(com.mendix.m2ee.api.IMxRuntimeRequest request) throws CoreException
request - the request from which to get the sessionCoreExceptionprotected ISession getSessionFromRequest(com.mendix.m2ee.api.IMxRuntimeRequest request, boolean performCSRFCheck) throws CoreException
request - the request from which to get the sessionperformCSRFCheck - whether a csrf check will be performed using the request headers.CoreExceptionprotected boolean isSessionKilledByNewLogin(com.mendix.m2ee.api.IMxRuntimeRequest request)
request - the request from which to get the sessionprotected java.lang.String buildUserInfo(IContext context)
protected long getExpiresTimeStamp(int addYears)
protected java.lang.String formatDate(java.util.Date date)
protected java.util.Date parseDate(java.lang.String date)
throws java.text.ParseException
java.text.ParseExceptionprotected java.lang.String getSessionCookieName()