com.acsinet_solutions.cetia4.controller.rest
Class WebServletRequestContext

java.lang.Object
  extended by com.acsinet_solutions.cetia4.controller.rest.AbstractServletRequestContext
      extended by com.acsinet_solutions.cetia4.controller.rest.WebServletRequestContext
All Implemented Interfaces:
ActionContext, AttributeKeys, ControllerConstants, MultipartContext, ParameterAccessor, RenderContext, RequestContext, ServletRequestContext

public final class WebServletRequestContext
extends AbstractServletRequestContext

Web implementation of a servlet request context.

Author:
Santiago Arriaga

Field Summary
 
Fields inherited from interface com.acsinet_solutions.cetia4.controller.ControllerConstants
_METHOD_PARAM, _PAGE_PARAM, _ROOT_PARAM, DEFAULT_VIEW, ERROR_URL, ERROR_VIEW, LOAD_CANCEL, LOAD_CURRENT, LOAD_DEFAULT, LOAD_ERROR, LOAD_PREVIOUS
 
Fields inherited from interface com.acsinet_solutions.cetia4.controller.AttributeKeys
_BUNDLE_KEY, _CONFIGURATION_KEY, _DEFAULT_CONTROLLER_KEY, _FORM_ACTION_KEY, _FORM_ATTRIBUTE_KEY, _LOCALE_KEY, _MESSAGE_KEY, _NAVIGATION_FLOW_KEY, _PORTAL_PATH_KEY, _RENDER_PARAMETERS_KEY, _SERVICE_LOCATOR_KEY, _SESSION_KEY, _SYSTEM_EXCEPTION_KEY, _VALIDATION_EXCEPTION_KEY
 
Constructor Summary
WebServletRequestContext(javax.servlet.ServletConfig config, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Configuration configuration)
          Package-visible constructor, for use by the RestServlet
 
Method Summary
 java.lang.Object getComponentAttribute(java.lang.String key)
          Get a component session attribute.
 java.lang.Object getSessionAttribute(java.lang.String key)
          Get a session attribute
 boolean isNewForm()
          Checks the presence of FORM_ATTRIBUTE entry, and the bean referred by the value stored in that entry.
 void removeComponentAttribute(java.lang.String key)
          Set a component session attribute.
 void removeSessionAttribute(java.lang.String key)
          Set a session attribute
 void setComponentAttribute(java.lang.String key, java.lang.Object attribute)
          Set a component session attribute.
 void setRequestAttribute(java.lang.String key, java.lang.Object attribute)
          Set a request attribute
 void setSessionAttribute(java.lang.String key, java.lang.Object attribute)
          Set a session attribute
 
Methods inherited from class com.acsinet_solutions.cetia4.controller.rest.AbstractServletRequestContext
display, getAttribute, getConfiguration, getContextAttribute, getContextPath, getItems, getMethod, getNavigationLink, getParameter, getParameterMap, getPathInfo, getRequestAttribute, getRequestedController, getRequestedPage, getRequestedURI, getRequestType, getSecurityContext, getServletConfig, getServletContext, getServletRequest, getServletResponse, getServletSession, invalidateSession, isMultipart, redirectTo, removeAttribute, removeContextAttribute, removeRequestAttribute, sessionExists, setAttribute, setContextAttribute, setFormAttribute, setMessage, setRenderParameter, setSystemException, setValidationException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServletRequestContext

public WebServletRequestContext(javax.servlet.ServletConfig config,
                                javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response,
                                Configuration configuration)
Package-visible constructor, for use by the RestServlet

Method Detail

setRequestAttribute

public final void setRequestAttribute(java.lang.String key,
                                      java.lang.Object attribute)
Description copied from interface: RequestContext
Set a request attribute

Specified by:
setRequestAttribute in interface RequestContext
Overrides:
setRequestAttribute in class AbstractServletRequestContext

setComponentAttribute

public final void setComponentAttribute(java.lang.String key,
                                        java.lang.Object attribute)
Description copied from interface: RequestContext
Set a component session attribute. In web applications, this is similar to working at session level; in portlet applications this sets a portlet session attribute

See Also:
Scope.COMPONENT_SCOPE

setSessionAttribute

public final void setSessionAttribute(java.lang.String key,
                                      java.lang.Object attribute)
Description copied from interface: RequestContext
Set a session attribute


removeComponentAttribute

public final void removeComponentAttribute(java.lang.String key)
Description copied from interface: RequestContext
Set a component session attribute. In web applications, this is similar to working at session level; in portlet applications this removes a portlet session attribute

See Also:
Scope.COMPONENT_SCOPE

removeSessionAttribute

public final void removeSessionAttribute(java.lang.String key)
Description copied from interface: RequestContext
Set a session attribute


getComponentAttribute

public final java.lang.Object getComponentAttribute(java.lang.String key)
Description copied from interface: RequestContext
Get a component session attribute. In web applications, this is similar to working at session level; in portlet applications this gets a portlet session attribute.

See Also:
Scope.COMPONENT_SCOPE

getSessionAttribute

public final java.lang.Object getSessionAttribute(java.lang.String key)
Description copied from interface: RequestContext
Get a session attribute


isNewForm

public final boolean isNewForm()
Description copied from interface: RenderContext
Checks the presence of FORM_ATTRIBUTE entry, and the bean referred by the value stored in that entry.