Package com.sun.identity.setup
Class HttpServletRequestWrapper
- java.lang.Object
-
- com.sun.identity.setup.HttpServletRequestWrapper
-
- All Implemented Interfaces:
IHttpServletRequest
public class HttpServletRequestWrapper extends Object implements IHttpServletRequest
-
-
Constructor Summary
Constructors Constructor Description HttpServletRequestWrapper(jakarta.servlet.http.HttpServletRequest req)HttpServletRequestWrapper(Map data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParameter(String parameterName, Object parameterValue)Adds parmeter.StringgetContextPath()Returns the context path.StringgetHeader(String key)Returns header.LocalegetLocale()Returns the locale of the request.ObjectgetParameter(String parameterName)Returns values of a parameter.MapgetParameterMap()Returns all parameters values.
-
-
-
Constructor Detail
-
HttpServletRequestWrapper
public HttpServletRequestWrapper(jakarta.servlet.http.HttpServletRequest req)
-
HttpServletRequestWrapper
public HttpServletRequestWrapper(Map data)
-
-
Method Detail
-
getLocale
public Locale getLocale()
Returns the locale of the request.- Specified by:
getLocalein interfaceIHttpServletRequest- Returns:
- the locale of the request.
-
getParameterMap
public Map getParameterMap()
Returns all parameters values.- Specified by:
getParameterMapin interfaceIHttpServletRequest- Returns:
- all parameters values
-
addParameter
public void addParameter(String parameterName, Object parameterValue)
Adds parmeter.- Specified by:
addParameterin interfaceIHttpServletRequest- Parameters:
parameterName- Name of Parameter.parameterValue- Value of Parameter.
-
getParameter
public Object getParameter(String parameterName)
Returns values of a parameter.- Parameters:
parameterName- Name of Parameter.- Returns:
- values of a parameter.
-
getContextPath
public String getContextPath()
Returns the context path.- Specified by:
getContextPathin interfaceIHttpServletRequest- Returns:
- the context path.
-
getHeader
public String getHeader(String key)
Returns header.- Specified by:
getHeaderin interfaceIHttpServletRequest- Parameters:
key- Key to header value.- Returns:
- header.
-
-