public class RequestAccessor
extends javax.servlet.http.HttpServletRequestWrapper
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_ACTION_TYPE |
| Constructor and Description |
|---|
RequestAccessor(javax.servlet.http.HttpServletRequest request) |
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getHttpServletMapping, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getTrailerFields, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isTrailerFieldsReady, isUserInRole, login, logout, newPushBuilder, upgradegetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsyncpublic static final String PARAM_ACTION_TYPE
public RequestAccessor(javax.servlet.http.HttpServletRequest request)
public <T> T findParam(String name, Class<T> targetType) throws IllegalArgumentException, com.appslandia.common.formatters.FormatterException
IllegalArgumentExceptioncom.appslandia.common.formatters.FormatterExceptionpublic <T> T getParamValue(String name, Class<T> targetType) throws IllegalArgumentException, com.appslandia.common.formatters.FormatterException
IllegalArgumentExceptioncom.appslandia.common.formatters.FormatterExceptionpublic boolean isGetOrHead()
public boolean isAjaxRequest()
public PrefCookie getPrefCookie()
public String getActionType()
public boolean isSaveAction()
public boolean isSaveContAction()
public boolean isRemoveAction()
public void storeModel(Object model)
public void storePagerModel(PagerModel pagerModel)
public void storeSortBag(SortBag sortBag)
public boolean isModuleAuthenticated()
public UserPrincipal getUserPrincipal()
getUserPrincipal in interface javax.servlet.http.HttpServletRequestgetUserPrincipal in class javax.servlet.http.HttpServletRequestWrapperpublic UserPrincipal getRequiredPrincipal()
public int getUserId()
public boolean isUserInRoles(String... roles)
public RequestContext getRequestContext()
public ModelState getModelState()
public TempData getTempData()
public Messages getMessages()
public Resources getResources()
public void assertTrue(boolean expr)
throws BadRequestException
BadRequestExceptionpublic <T> T assertNotNull(T value)
throws BadRequestException
BadRequestExceptionpublic void assertPositive(int value)
throws BadRequestException
BadRequestExceptionpublic void assertValidFields(String... fieldNames) throws BadRequestException
BadRequestExceptionpublic void assertValidModel()
throws BadRequestException
BadRequestExceptionpublic void assertInRoles(String[] roles) throws ForbiddenException
ForbiddenExceptionpublic void assertForbidden(boolean expr)
throws ForbiddenException
ForbiddenExceptionpublic void assertNotFound(boolean expr)
throws ForbiddenException
ForbiddenExceptionCopyright © 2021. All rights reserved.