public class GrouperRequestWrapper
extends javax.servlet.http.HttpServletRequestWrapper
| Constructor and Description |
|---|
GrouperRequestWrapper(javax.servlet.http.HttpServletRequest request) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name) |
Map |
getParameter()
param boolean for EL
|
String |
getParameter(String name)
Use this instead of request.getParameter as it will handle file uploads.
|
Boolean |
getParameterBoolean(String name)
Get a boolean from the input.
|
boolean |
getParameterBoolean(String name,
boolean theDefault)
Get a boolean from the input.
|
org.apache.commons.fileupload.FileItem |
getParameterFileItem(String name)
get a param from file request as fileItem
|
Enumeration |
getParameterNames()
Get the parameter names from the fast request
|
String[] |
getParameterValues(String name)
Return an array of strings for an input parameter
|
String |
getRemoteAddr() |
StringBuffer |
getRequestURL()
problem with tomcat and request wrappers, so stash this and
get back later:
http://brian.pontarelli.com/2008/01/16/httpservletrequestwrapper-tomcat-and-forwards/
|
javax.servlet.http.HttpSession |
getSession() |
javax.servlet.http.HttpSession |
getSession(boolean create) |
void |
init()
init
|
boolean |
isMultipart()
if is multipart request
|
Set<String> |
requestParameterNamesByPrefix(String prefix)
find the request parameter names by prefix
|
static GrouperRequestWrapper |
retrieveGrouperRequestWrapper(javax.servlet.ServletRequest servletRequest)
get the grouper request wrapper
|
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getServletPath, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout, upgradegetAsyncContext, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterMap, getProtocol, getReader, getRealPath, 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, toString, wait, wait, waitgetAsyncContext, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterMap, getProtocol, getReader, getRealPath, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsyncpublic GrouperRequestWrapper(javax.servlet.http.HttpServletRequest request)
request - public static GrouperRequestWrapper retrieveGrouperRequestWrapper(javax.servlet.ServletRequest servletRequest)
public String getRemoteAddr()
getRemoteAddr in interface javax.servlet.ServletRequestgetRemoteAddr in class javax.servlet.ServletRequestWrapperpublic boolean isMultipart()
public Object getAttribute(String name)
getAttribute in interface javax.servlet.ServletRequestgetAttribute in class javax.servlet.ServletRequestWrapperServletRequestWrapper.getAttribute(java.lang.String)public org.apache.commons.fileupload.FileItem getParameterFileItem(String name)
name - public void init()
public javax.servlet.http.HttpSession getSession()
getSession in interface javax.servlet.http.HttpServletRequestgetSession in class javax.servlet.http.HttpServletRequestWrapperHttpServletRequestWrapper.getSession()public javax.servlet.http.HttpSession getSession(boolean create)
getSession in interface javax.servlet.http.HttpServletRequestgetSession in class javax.servlet.http.HttpServletRequestWrapperHttpServletRequestWrapper.getSession(boolean)public StringBuffer getRequestURL()
problem with tomcat and request wrappers, so stash this and get back later: http://brian.pontarelli.com/2008/01/16/httpservletrequestwrapper-tomcat-and-forwards/
getRequestURL in interface javax.servlet.http.HttpServletRequestgetRequestURL in class javax.servlet.http.HttpServletRequestWrapperHttpServletRequestWrapper.getRequestURL()public Set<String> requestParameterNamesByPrefix(String prefix)
prefix - public Enumeration getParameterNames()
getParameterNames in interface javax.servlet.ServletRequestgetParameterNames in class javax.servlet.ServletRequestWrapperpublic String[] getParameterValues(String name)
getParameterValues in interface javax.servlet.ServletRequestgetParameterValues in class javax.servlet.ServletRequestWrappername - public Map getParameter()
public String getParameter(String name)
getParameter in interface javax.servlet.ServletRequestgetParameter in class javax.servlet.ServletRequestWrappername - public Boolean getParameterBoolean(String name)
name - public boolean getParameterBoolean(String name, boolean theDefault)
name - theDefault - is what to return if param not there (usually false)Copyright © 2016 Internet2. All rights reserved.