|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.ServletRequestWrapper
javax.servlet.http.HttpServletRequestWrapper
org.hippoecm.hst.core.component.HstRequestImpl
public class HstRequestImpl
HstRequestImpl
Field Summary | |
---|---|
protected HstComponentWindow |
componentWindow
|
static String |
CONTAINER_ATTR_NAME_PREFIXES_PROP_KEY
|
static String |
CONTAINER_ROLE_PRINCIPAL_CLASSNAME_PROP_KEY
|
static String |
CONTAINER_USER_PRINCIPAL_CLASSNAME_PROP_KEY
|
protected String |
lifecyclePhase
|
protected Map<String,Map<String,Object>> |
namespaceAttributesMap
|
protected Map<String,Map<String,String[]>> |
namespaceParametersMap
|
protected String |
parameterNameComponentSeparator
|
protected boolean |
referenceNamespaceIgnored
|
protected HstRequestContext |
requestContext
|
Fields inherited from interface org.hippoecm.hst.core.component.HstRequest |
---|
ACTION_PHASE, RENDER_PHASE, RESOURCE_PHASE |
Fields inherited from interface javax.servlet.http.HttpServletRequest |
---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
Constructor Summary | |
---|---|
HstRequestImpl(javax.servlet.http.HttpServletRequest servletRequest,
HstRequestContext requestContext,
HstComponentWindow componentWindow,
String lifecyclePhase)
|
Method Summary | |
---|---|
Object |
getAttribute(String name)
|
Map<String,Object> |
getAttributeMap()
Returns the attribute map of this component window. |
Map<String,Object> |
getAttributeMap(String referencePath)
Returns the attribute map of the specified reference namespace component window. |
Enumeration |
getAttributeNames()
|
HstComponentWindow |
getComponentWindow()
|
protected String |
getFullNamespacePrefix(String referenceNamespace)
|
protected String |
getFullNamespacePrefix(String referenceNamespace,
boolean noSeparatorForEmpty)
|
String |
getLifecyclePhase()
Returns the lifecycle phase of the current HST request. |
Locale |
getLocale()
|
Enumeration |
getLocales()
|
String |
getParameter(String name)
|
Map<String,String[]> |
getParameterMap()
Returns the parameter map of this component window. |
Map<String,String[]> |
getParameterMap(String referencePath)
Returns the parameter map of the specified reference namespace component window. |
Enumeration |
getParameterNames()
|
String[] |
getParameterValues(String name)
|
String |
getReferenceNamespace()
The reference namespace of the component window. |
protected String |
getReferenceNamespacePath(String referencePath)
|
HstRequestContext |
getRequestContext()
Returns the current request context |
String |
getResourceID()
Returns the resource ID which was set by the resource HST URL. |
protected boolean |
isContainerAttributeName(String attrName)
|
void |
removeAttribute(String name)
|
void |
setAttribute(String name,
Object value)
|
void |
setRequest(javax.servlet.http.HttpServletRequest servletRequest)
|
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper |
---|
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole |
Methods inherited from class javax.servlet.ServletRequestWrapper |
---|
getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, setCharacterEncoding, setRequest |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.http.HttpServletRequest |
---|
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole |
Methods inherited from interface javax.servlet.ServletRequest |
---|
getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, setCharacterEncoding |
Field Detail |
---|
public static final String CONTAINER_ATTR_NAME_PREFIXES_PROP_KEY
public static final String CONTAINER_USER_PRINCIPAL_CLASSNAME_PROP_KEY
public static final String CONTAINER_ROLE_PRINCIPAL_CLASSNAME_PROP_KEY
protected String lifecyclePhase
protected HstRequestContext requestContext
protected Map<String,Map<String,String[]>> namespaceParametersMap
protected Map<String,Map<String,Object>> namespaceAttributesMap
protected HstComponentWindow componentWindow
protected String parameterNameComponentSeparator
protected boolean referenceNamespaceIgnored
Constructor Detail |
---|
public HstRequestImpl(javax.servlet.http.HttpServletRequest servletRequest, HstRequestContext requestContext, HstComponentWindow componentWindow, String lifecyclePhase)
Method Detail |
---|
public void setRequest(javax.servlet.http.HttpServletRequest servletRequest)
public Map<String,String[]> getParameterMap()
HstRequest
getParameterMap
in interface javax.servlet.ServletRequest
getParameterMap
in interface HstRequest
getParameterMap
in class javax.servlet.ServletRequestWrapper
public Map<String,String[]> getParameterMap(String referencePath)
HstRequest
HstRequest.getParameterMap()
.
getParameterMap
in interface HstRequest
public Map<String,Object> getAttributeMap()
HstRequest
getAttributeMap
in interface HstRequest
public String getReferenceNamespace()
HstRequest
getReferenceNamespace
in interface HstRequest
public Map<String,Object> getAttributeMap(String referencePath)
HstRequest
getAttributeMap
in interface HstRequest
public String getParameter(String name)
getParameter
in interface javax.servlet.ServletRequest
getParameter
in class javax.servlet.ServletRequestWrapper
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
public Enumeration getAttributeNames()
getAttributeNames
in interface javax.servlet.ServletRequest
getAttributeNames
in class javax.servlet.ServletRequestWrapper
public Object getAttribute(String name)
getAttribute
in interface javax.servlet.ServletRequest
getAttribute
in class javax.servlet.ServletRequestWrapper
public void setAttribute(String name, Object value)
setAttribute
in interface javax.servlet.ServletRequest
setAttribute
in class javax.servlet.ServletRequestWrapper
public void removeAttribute(String name)
removeAttribute
in interface javax.servlet.ServletRequest
removeAttribute
in class javax.servlet.ServletRequestWrapper
public Locale getLocale()
getLocale
in interface javax.servlet.ServletRequest
getLocale
in class javax.servlet.ServletRequestWrapper
public Enumeration getLocales()
getLocales
in interface javax.servlet.ServletRequest
getLocales
in class javax.servlet.ServletRequestWrapper
public HstRequestContext getRequestContext()
HstRequest
getRequestContext
in interface HstRequest
public HstComponentWindow getComponentWindow()
public String getResourceID()
HstRequest
getResourceID
in interface HstRequest
protected String getReferenceNamespacePath(String referencePath)
protected String getFullNamespacePrefix(String referenceNamespace)
protected String getFullNamespacePrefix(String referenceNamespace, boolean noSeparatorForEmpty)
protected boolean isContainerAttributeName(String attrName)
public String getLifecyclePhase()
HstRequest
getLifecyclePhase
in interface HstRequest
#ACTION_PHASE}, {@link #RENDER_PHASE}, and {@link #RESOURCE_PHASE}.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |