com.liferay.faces.bridge.context
Class IncongruityContextWrapper
java.lang.Object
javax.faces.context.ExternalContext
com.liferay.faces.bridge.context.IncongruityContext
com.liferay.faces.bridge.context.IncongruityContextWrapper
- All Implemented Interfaces:
- javax.faces.FacesWrapper<IncongruityContext>
public abstract class IncongruityContextWrapper
- extends IncongruityContext
- implements javax.faces.FacesWrapper<IncongruityContext>
- Author:
- Neil Griffin
| Fields inherited from class javax.faces.context.ExternalContext |
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
|
Method Summary |
void |
dispatch(String path)
|
String |
encodeActionURL(String url)
|
String |
encodeNamespace(String name)
|
String |
encodeResourceURL(String url)
|
Map<String,Object> |
getApplicationMap()
|
Map<String,Object> |
getAttributes()
Returns a mutable map of attributes. |
String |
getAuthType()
|
Object |
getContext()
|
String |
getInitParameter(String name)
|
Map |
getInitParameterMap()
|
String |
getRemoteUser()
|
Object |
getRequest()
|
String |
getRequestContextPath()
|
Map<String,Object> |
getRequestCookieMap()
|
Map<String,String> |
getRequestHeaderMap()
|
Map<String,String[]> |
getRequestHeaderValuesMap()
|
Locale |
getRequestLocale()
|
Iterator<Locale> |
getRequestLocales()
|
Map<String,Object> |
getRequestMap()
|
Map<String,String> |
getRequestParameterMap()
|
Iterator<String> |
getRequestParameterNames()
|
Map<String,String[]> |
getRequestParameterValuesMap()
|
String |
getRequestPathInfo()
|
String |
getRequestServletPath()
|
URL |
getResource(String path)
|
InputStream |
getResourceAsStream(String path)
|
Set<String> |
getResourcePaths(String path)
|
Object |
getResponse()
|
int |
getResponseContentLength()
|
Object |
getSession(boolean create)
|
Map<String,Object> |
getSessionMap()
|
Principal |
getUserPrincipal()
|
abstract IncongruityContext |
getWrapped()
|
boolean |
isUserInRole(String role)
|
void |
log(String message)
|
void |
log(String message,
Throwable exception)
|
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. |
void |
redirect(String url)
|
void |
setRequestContentLength(int length)
|
void |
setRequestContentType(String contentType)
|
void |
setResponseCommitted(boolean committed)
|
| Methods inherited from class javax.faces.context.ExternalContext |
addResponseCookie, addResponseHeader, encodeBookmarkableURL, encodePartialActionURL, encodeRedirectURL, getContextName, getFlash, getMimeType, getRealPath, getRequestCharacterEncoding, getRequestContentLength, getRequestContentType, getRequestScheme, getRequestServerName, getRequestServerPort, getResponseBufferSize, getResponseCharacterEncoding, getResponseContentType, getResponseOutputStream, getResponseOutputWriter, getSessionMaxInactiveInterval, invalidateSession, isResponseCommitted, isSecure, 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 |
IncongruityContextWrapper
public IncongruityContextWrapper()
dispatch
public void dispatch(String path)
throws IOException
- Specified by:
dispatch in class javax.faces.context.ExternalContext
- Throws:
IOException
encodeActionURL
public String encodeActionURL(String url)
- Specified by:
encodeActionURL in class javax.faces.context.ExternalContext
encodeNamespace
public String encodeNamespace(String name)
- Specified by:
encodeNamespace in class javax.faces.context.ExternalContext
encodeResourceURL
public String encodeResourceURL(String url)
- Specified by:
encodeResourceURL in class javax.faces.context.ExternalContext
log
public void log(String message)
- Specified by:
log in class javax.faces.context.ExternalContext
log
public void log(String message,
Throwable exception)
- Specified by:
log in class javax.faces.context.ExternalContext
makeCongruous
public void makeCongruous(javax.faces.context.FacesContext facesContext)
throws IOException
- Description copied from class:
IncongruityContext
- 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.
- Specified by:
makeCongruous in class IncongruityContext
- Parameters:
facesContext - The current FacesContext.
- Throws:
IOException - If an error occurs.
redirect
public void redirect(String url)
throws IOException
- Specified by:
redirect in class javax.faces.context.ExternalContext
- Throws:
IOException
getApplicationMap
public Map<String,Object> getApplicationMap()
- Specified by:
getApplicationMap in class javax.faces.context.ExternalContext
getAttributes
public Map<String,Object> getAttributes()
- Description copied from class:
IncongruityContext
- Returns a mutable map of attributes.
- Specified by:
getAttributes in class IncongruityContext
- Returns:
- The attribute map.
getAuthType
public String getAuthType()
- Specified by:
getAuthType in class javax.faces.context.ExternalContext
getContext
public Object getContext()
- Specified by:
getContext in class javax.faces.context.ExternalContext
isUserInRole
public boolean isUserInRole(String role)
- Specified by:
isUserInRole in class javax.faces.context.ExternalContext
getInitParameter
public String getInitParameter(String name)
- Specified by:
getInitParameter in class javax.faces.context.ExternalContext
getInitParameterMap
public Map getInitParameterMap()
- Specified by:
getInitParameterMap in class javax.faces.context.ExternalContext
getRemoteUser
public String getRemoteUser()
- Specified by:
getRemoteUser in class javax.faces.context.ExternalContext
getRequest
public Object getRequest()
- Specified by:
getRequest in class javax.faces.context.ExternalContext
setRequestContentLength
public void setRequestContentLength(int length)
- Specified by:
setRequestContentLength in class IncongruityContext
setRequestContentType
public void setRequestContentType(String contentType)
- Specified by:
setRequestContentType in class IncongruityContext
getRequestContextPath
public String getRequestContextPath()
- Specified by:
getRequestContextPath in class javax.faces.context.ExternalContext
getRequestCookieMap
public Map<String,Object> getRequestCookieMap()
- Specified by:
getRequestCookieMap in class javax.faces.context.ExternalContext
getRequestHeaderMap
public Map<String,String> getRequestHeaderMap()
- Specified by:
getRequestHeaderMap in class javax.faces.context.ExternalContext
getRequestHeaderValuesMap
public Map<String,String[]> getRequestHeaderValuesMap()
- Specified by:
getRequestHeaderValuesMap in class javax.faces.context.ExternalContext
getRequestLocale
public Locale getRequestLocale()
- Specified by:
getRequestLocale in class javax.faces.context.ExternalContext
getRequestLocales
public Iterator<Locale> getRequestLocales()
- Specified by:
getRequestLocales in class javax.faces.context.ExternalContext
getRequestMap
public Map<String,Object> getRequestMap()
- Specified by:
getRequestMap in class javax.faces.context.ExternalContext
getRequestParameterMap
public Map<String,String> getRequestParameterMap()
- Specified by:
getRequestParameterMap in class javax.faces.context.ExternalContext
getRequestParameterNames
public Iterator<String> getRequestParameterNames()
- Specified by:
getRequestParameterNames in class javax.faces.context.ExternalContext
getRequestParameterValuesMap
public Map<String,String[]> getRequestParameterValuesMap()
- Specified by:
getRequestParameterValuesMap in class javax.faces.context.ExternalContext
getRequestPathInfo
public String getRequestPathInfo()
- Specified by:
getRequestPathInfo in class javax.faces.context.ExternalContext
getRequestServletPath
public String getRequestServletPath()
- Specified by:
getRequestServletPath in class javax.faces.context.ExternalContext
getResource
public URL getResource(String path)
throws MalformedURLException
- Specified by:
getResource in class javax.faces.context.ExternalContext
- Throws:
MalformedURLException
getResourceAsStream
public InputStream getResourceAsStream(String path)
- Specified by:
getResourceAsStream in class javax.faces.context.ExternalContext
getResourcePaths
public Set<String> getResourcePaths(String path)
- Specified by:
getResourcePaths in class javax.faces.context.ExternalContext
getResponse
public Object getResponse()
- Specified by:
getResponse in class javax.faces.context.ExternalContext
setResponseCommitted
public void setResponseCommitted(boolean committed)
- Specified by:
setResponseCommitted in class IncongruityContext
getResponseContentLength
public int getResponseContentLength()
- Specified by:
getResponseContentLength in class IncongruityContext
getSession
public Object getSession(boolean create)
- Specified by:
getSession in class javax.faces.context.ExternalContext
getSessionMap
public Map<String,Object> getSessionMap()
- Specified by:
getSessionMap in class javax.faces.context.ExternalContext
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipal in class javax.faces.context.ExternalContext
getWrapped
public abstract IncongruityContext getWrapped()
- Specified by:
getWrapped in interface javax.faces.FacesWrapper<IncongruityContext>
Copyright © 2015 Liferay, Inc.. All rights reserved.