|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RequestContext
Base interface for request contexts. All servlet and portlet request contexts in both render and action phases inherit from this basic generic interface.
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(Scope scope,
java.lang.String key)
Get an attribute from the given scope. |
java.lang.Object |
getComponentAttribute(java.lang.String key)
Get a component session attribute. |
Configuration |
getConfiguration()
Get a reference to the not-null configuration of the current module |
java.lang.Object |
getContextAttribute(java.lang.String key)
Get an application attribute |
java.lang.String |
getContextPath()
Convenience method for obtaining the context path. |
java.lang.String |
getMethod()
Get the not null String method to be executed by the current call. |
java.util.List<java.lang.String> |
getPathInfo()
Get the path info as a list of Strings. |
java.lang.Object |
getRequestAttribute(java.lang.String key)
Get a request attribute |
java.lang.String |
getRequestedController()
Get the requested controller with path info, not containing context path nor query String. |
java.lang.String |
getRequestedPage()
Get the requested page, containing all request string with path info and query string. |
java.lang.String |
getRequestedURI()
Get the requested page, containing all request string with path info but no query string. |
java.lang.String |
getRequestType()
Get the request type; it may be any constant of the RequestType interface or a custom request type ( although extensibility mechanisms are still not provided in this version ). |
SecurityContext |
getSecurityContext()
Get the security context associated to the current request. |
java.lang.Object |
getSessionAttribute(java.lang.String key)
Get a session attribute |
void |
invalidateSession()
Invalidate the current session. |
void |
redirectTo(java.lang.String url)
Perform a redirection. |
void |
removeAttribute(Scope scope,
java.lang.String key)
Remove an attribute on the given scope. |
void |
removeComponentAttribute(java.lang.String key)
Set a component session attribute. |
void |
removeContextAttribute(java.lang.String key)
Remove an application attribute |
void |
removeRequestAttribute(java.lang.String key)
Remove a request attribute |
void |
removeSessionAttribute(java.lang.String key)
Set a session attribute |
boolean |
sessionExists()
Check if the session exists or not. |
void |
setAttribute(Scope scope,
java.lang.String key,
java.lang.Object value)
Set an attribute on the given scope. |
void |
setComponentAttribute(java.lang.String key,
java.lang.Object attribute)
Set a component session attribute. |
void |
setContextAttribute(java.lang.String key,
java.lang.Object attribute)
Set an application attribute |
void |
setFormAttribute(java.lang.Object bean)
Sets the FORM_ATTRIBUTE object. |
void |
setMessage(java.lang.String message)
Set a message in portlet or session level. |
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 |
void |
setSystemException(java.lang.Exception exception)
Set a system exception in portlet or session level. |
void |
setValidationException(java.lang.Exception exception)
Set a validation exception in portlet or session level. |
| Methods inherited from interface com.acsinet_solutions.cetia4.controller.ParameterAccessor |
|---|
getParameter, getParameterMap |
| Method Detail |
|---|
Configuration getConfiguration()
java.lang.String getRequestType()
RequestTypejava.lang.String getContextPath()
java.util.List<java.lang.String> getPathInfo()
java.lang.String getRequestedPage()
ControllerTools.getRequestedPage(HttpServletRequest)java.lang.String getRequestedURI()
HttpServletRequest.getRequestURI()java.lang.String getRequestedController()
ControllerTools.getRequestedController(HttpServletRequest)
void setContextAttribute(java.lang.String key,
java.lang.Object attribute)
void setRequestAttribute(java.lang.String key,
java.lang.Object attribute)
void setComponentAttribute(java.lang.String key,
java.lang.Object attribute)
Scope.COMPONENT_SCOPE
void setSessionAttribute(java.lang.String key,
java.lang.Object attribute)
void removeContextAttribute(java.lang.String key)
void removeRequestAttribute(java.lang.String key)
void removeComponentAttribute(java.lang.String key)
Scope.COMPONENT_SCOPEvoid removeSessionAttribute(java.lang.String key)
java.lang.Object getContextAttribute(java.lang.String key)
java.lang.Object getRequestAttribute(java.lang.String key)
java.lang.Object getComponentAttribute(java.lang.String key)
Scope.COMPONENT_SCOPEjava.lang.Object getSessionAttribute(java.lang.String key)
void setSystemException(java.lang.Exception exception)
AttributeKeys._SYSTEM_EXCEPTION_KEYvoid setValidationException(java.lang.Exception exception)
AttributeKeys._VALIDATION_EXCEPTION_KEYvoid setMessage(java.lang.String message)
AttributeKeys._MESSAGE_KEY,
CompoundMessagejava.lang.String getMethod()
ControllerConstants._METHOD_PARAM,
AbstractServletRequestContext.METHOD_PREFIXvoid setFormAttribute(java.lang.Object bean)
AttributeKeys._FORM_ATTRIBUTE_KEY,
FormAttribute
java.lang.Object getAttribute(Scope scope,
java.lang.String key)
void setAttribute(Scope scope,
java.lang.String key,
java.lang.Object value)
void removeAttribute(Scope scope,
java.lang.String key)
boolean sessionExists()
void invalidateSession()
void redirectTo(java.lang.String url)
throws java.io.IOException
java.io.IOExceptionSecurityContext getSecurityContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||