org.hippoecm.hst.core.component
Interface HstRequest

All Superinterfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest
All Known Implementing Classes:
HstRequestImpl, MockHstRequest

public interface HstRequest
extends javax.servlet.http.HttpServletRequest

The HstRequest defines the interface to provide client request information to a HstComponent. The HstComponent container creates these objects and passes them as arguments to the HstComponent's doAction, doBeforeRender and doBeforeServeResource methods.

Version:
$Id: HstRequest.java 19144 2009-08-03 15:42:40Z aschrijvers $

Field Summary
static String ACTION_PHASE
          String identifier for the HST action lifecycle phase.
static String RENDER_PHASE
          String identifier for the HST render lifecycle phase.
static String RESOURCE_PHASE
          String identifier for the HST resource serving lifecycle phase.
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Method Summary
 Map<String,Object> getAttributeMap()
          Returns the attribute map of this component window.
 Map<String,Object> getAttributeMap(String referenceNamespace)
          Returns the attribute map of the specified reference namespace component window.
 String getLifecyclePhase()
          Returns the lifecycle phase of the current HST request.
 Map<String,String[]> getParameterMap()
          Returns the parameter map of this component window.
 Map<String,String[]> getParameterMap(String referenceNamespace)
          Returns the parameter map of the specified reference namespace component window.
 String getReferenceNamespace()
          The reference namespace of the component window.
 HstRequestContext getRequestContext()
          Returns the current request context
 String getResourceID()
          Returns the resource ID which was set by the resource HST URL.
 
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
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Field Detail

ACTION_PHASE

static final String ACTION_PHASE
String identifier for the HST action lifecycle phase.

See Also:
Constant Field Values

RENDER_PHASE

static final String RENDER_PHASE
String identifier for the HST render lifecycle phase.

See Also:
Constant Field Values

RESOURCE_PHASE

static final String RESOURCE_PHASE
String identifier for the HST resource serving lifecycle phase.

See Also:
Constant Field Values
Method Detail

getRequestContext

HstRequestContext getRequestContext()
Returns the current request context

Returns:

getParameterMap

Map<String,String[]> getParameterMap()
Returns the parameter map of this component window. If the request is in the action lifecycle, then only action parameters can be accessible. Otherwise, then only render parameters can be accessible.

Specified by:
getParameterMap in interface javax.servlet.ServletRequest
Returns:
an immutable java.util.Map containing parameter names as keys and parameter values as map values. The keys in the parameter map are of type String. The values in the parameter map are of type String array.

getReferenceNamespace

String getReferenceNamespace()
The reference namespace of the component window.

Returns:
the reference namespace of the component window

getParameterMap

Map<String,String[]> getParameterMap(String referenceNamespace)
Returns the parameter map of the specified reference namespace component window. If the request type is in the action lifecycle, the reference namespace parameter will be just ignored and the operation will be equivalent to getParameterMap().

Parameters:
referenceNamespace -
Returns:

getAttributeMap

Map<String,Object> getAttributeMap()
Returns the attribute map of this component window.

Returns:

getAttributeMap

Map<String,Object> getAttributeMap(String referenceNamespace)
Returns the attribute map of the specified reference namespace component window.

Returns:

getResourceID

String getResourceID()
Returns the resource ID which was set by the resource HST URL.

Returns:

getLifecyclePhase

String getLifecyclePhase()
Returns the lifecycle phase of the current HST request.

Returns:
See Also:
#ACTION_PHASE}, {@link #RENDER_PHASE}, and {@link #RESOURCE_PHASE}.


Copyright © 2008-2012 Hippo. All Rights Reserved.