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, upgrade
getAsyncContext, 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, startAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAsyncContext, 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, startAsync
public GrouperRequestWrapper(javax.servlet.http.HttpServletRequest request)
request
- public static GrouperRequestWrapper retrieveGrouperRequestWrapper(javax.servlet.ServletRequest servletRequest)
public String getRemoteAddr()
getRemoteAddr
in interface javax.servlet.ServletRequest
getRemoteAddr
in class javax.servlet.ServletRequestWrapper
public boolean isMultipart()
public Object getAttribute(String name)
getAttribute
in interface javax.servlet.ServletRequest
getAttribute
in class javax.servlet.ServletRequestWrapper
ServletRequestWrapper.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.HttpServletRequest
getSession
in class javax.servlet.http.HttpServletRequestWrapper
HttpServletRequestWrapper.getSession()
public javax.servlet.http.HttpSession getSession(boolean create)
getSession
in interface javax.servlet.http.HttpServletRequest
getSession
in class javax.servlet.http.HttpServletRequestWrapper
HttpServletRequestWrapper.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.HttpServletRequest
getRequestURL
in class javax.servlet.http.HttpServletRequestWrapper
HttpServletRequestWrapper.getRequestURL()
public Set<String> requestParameterNamesByPrefix(String prefix)
prefix
- public Enumeration getParameterNames()
getParameterNames
in interface javax.servlet.ServletRequest
getParameterNames
in class javax.servlet.ServletRequestWrapper
public String[] getParameterValues(String name)
getParameterValues
in interface javax.servlet.ServletRequest
getParameterValues
in class javax.servlet.ServletRequestWrapper
name
- public Map getParameter()
public String getParameter(String name)
getParameter
in interface javax.servlet.ServletRequest
getParameter
in class javax.servlet.ServletRequestWrapper
name
- 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.