|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.context.ExternalContext
com.liferay.faces.bridge.context.IncongruityContext
public abstract class IncongruityContext
Occasionally there is an incongruity (a mismatch) between the Portlet lifecycle and the JSF lifecycle with regard
to execution of methods on the ExternalContext. This class is designed to compensate for these incongruous
actions as much as possible.
Example: Sometimes the JSF implementation or a JSF ActionListener will call methods like ExternalContext.setResponseStatus(int) during the Portlet PortletRequest.ACTION_PHASE. In this
case, the Portlet lifecycle is working with a ActionResponse but there is no corresponding
method. Technically the only time such a method could be called would be during the PortletRequest.RESOURCE_PHASE because the ResourceResponse class has a
setReponseStatus(int) method.
| Field Summary |
|---|
| Fields inherited from class javax.faces.context.ExternalContext |
|---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
| Constructor Summary | |
|---|---|
IncongruityContext()
|
|
| Method Summary | |
|---|---|
abstract Map<String,Object> |
getAttributes()
Returns a mutable map of attributes. |
abstract int |
getResponseContentLength()
|
abstract void |
makeCongruous(javax.faces.context.FacesContext facesContext)
This method is designed to be called during the RENDER_PHASE of the portlet lifecycle, and will execute ExternalContext methods that were inappropriately called during the ACTION_PHASE or EVENT_PHASE. |
abstract void |
setRequestContentLength(int length)
|
abstract void |
setRequestContentType(String contentType)
|
abstract void |
setResponseCommitted(boolean committed)
|
| Methods inherited from class javax.faces.context.ExternalContext |
|---|
addResponseCookie, addResponseHeader, dispatch, encodeActionURL, encodeBookmarkableURL, encodeNamespace, encodePartialActionURL, encodeRedirectURL, encodeResourceURL, getApplicationMap, getAuthType, getContext, getContextName, getFlash, getInitParameter, getInitParameterMap, getMimeType, getRealPath, getRemoteUser, getRequest, getRequestCharacterEncoding, getRequestContentLength, getRequestContentType, getRequestContextPath, getRequestCookieMap, getRequestHeaderMap, getRequestHeaderValuesMap, getRequestLocale, getRequestLocales, getRequestMap, getRequestParameterMap, getRequestParameterNames, getRequestParameterValuesMap, getRequestPathInfo, getRequestScheme, getRequestServerName, getRequestServerPort, getRequestServletPath, getResource, getResourceAsStream, getResourcePaths, getResponse, getResponseBufferSize, getResponseCharacterEncoding, getResponseContentType, getResponseOutputStream, getResponseOutputWriter, getSession, getSessionMap, getSessionMaxInactiveInterval, getUserPrincipal, invalidateSession, isResponseCommitted, isSecure, isUserInRole, log, log, redirect, responseFlushBuffer, responseReset, responseSendError, setRequest, setRequestCharacterEncoding, setResponse, setResponseBufferSize, setResponseCharacterEncoding, setResponseContentLength, setResponseContentType, setResponseHeader, setResponseStatus, setSessionMaxInactiveInterval |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IncongruityContext()
| Method Detail |
|---|
public abstract void makeCongruous(javax.faces.context.FacesContext facesContext)
throws IOException
ExternalContext methods that were inappropriately called during the ACTION_PHASE or EVENT_PHASE.
facesContext - The current FacesContext.
IOException - If an error occurs.public abstract Map<String,Object> getAttributes()
public abstract void setRequestContentLength(int length)
public abstract void setRequestContentType(String contentType)
public abstract void setResponseCommitted(boolean committed)
public abstract int getResponseContentLength()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||