public class PortletExternalContextImpl
extends javax.faces.context.ExternalContext
ExternalContext
for use with Portlet requests.Constructor and Description |
---|
PortletExternalContextImpl(javax.portlet.PortletContext portletContext,
javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse) |
Modifier and Type | Method and Description |
---|---|
void |
dispatch(java.lang.String path) |
java.lang.String |
encodeActionURL(java.lang.String url) |
java.lang.String |
encodeNamespace(java.lang.String name) |
java.lang.String |
encodeResourceURL(java.lang.String url) |
java.util.Map<java.lang.String,java.lang.Object> |
getApplicationMap() |
java.lang.String |
getAuthType() |
java.lang.Object |
getContext() |
java.lang.String |
getInitParameter(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.String> |
getInitParameterMap() |
java.lang.String |
getRemoteUser() |
java.lang.Object |
getRequest() |
java.lang.String |
getRequestCharacterEncoding() |
java.lang.String |
getRequestContentType() |
java.lang.String |
getRequestContextPath() |
java.util.Map<java.lang.String,java.lang.Object> |
getRequestCookieMap() |
java.util.Map<java.lang.String,java.lang.String> |
getRequestHeaderMap() |
java.util.Map<java.lang.String,java.lang.String[]> |
getRequestHeaderValuesMap() |
java.util.Locale |
getRequestLocale() |
java.util.Iterator<java.util.Locale> |
getRequestLocales() |
java.util.Map<java.lang.String,java.lang.Object> |
getRequestMap() |
java.util.Map<java.lang.String,java.lang.String> |
getRequestParameterMap() |
java.util.Iterator<java.lang.String> |
getRequestParameterNames() |
java.util.Map<java.lang.String,java.lang.String[]> |
getRequestParameterValuesMap() |
java.lang.String |
getRequestPathInfo() |
java.lang.String |
getRequestServletPath() |
java.net.URL |
getResource(java.lang.String path) |
java.io.InputStream |
getResourceAsStream(java.lang.String path) |
java.util.Set<java.lang.String> |
getResourcePaths(java.lang.String path) |
java.lang.Object |
getResponse() |
java.lang.String |
getResponseCharacterEncoding() |
java.lang.String |
getResponseContentType() |
java.lang.Object |
getSession(boolean create) |
java.util.Map<java.lang.String,java.lang.Object> |
getSessionMap() |
java.security.Principal |
getUserPrincipal() |
boolean |
isUserInRole(java.lang.String role) |
void |
log(java.lang.String message) |
void |
log(java.lang.String message,
java.lang.Throwable exception) |
void |
redirect(java.lang.String url) |
void |
release() |
void |
setRequest(java.lang.Object request) |
void |
setRequestCharacterEncoding(java.lang.String encoding) |
void |
setResponse(java.lang.Object response) |
void |
setResponseCharacterEncoding(java.lang.String encoding) |
addResponseCookie, addResponseHeader, encodeBookmarkableURL, encodePartialActionURL, encodeRedirectURL, getApplicationContextPath, getClientWindow, getContextName, getFlash, getMimeType, getRealPath, getRequestContentLength, getRequestScheme, getRequestServerName, getRequestServerPort, getResponseBufferSize, getResponseOutputStream, getResponseOutputWriter, getSessionId, getSessionMaxInactiveInterval, invalidateSession, isResponseCommitted, isSecure, responseFlushBuffer, responseReset, responseSendError, setClientWindow, setResponseBufferSize, setResponseContentLength, setResponseContentType, setResponseHeader, setResponseStatus, setSessionMaxInactiveInterval
public PortletExternalContextImpl(javax.portlet.PortletContext portletContext, javax.portlet.PortletRequest portletRequest, javax.portlet.PortletResponse portletResponse)
public void dispatch(java.lang.String path) throws java.io.IOException
dispatch
in class javax.faces.context.ExternalContext
java.io.IOException
public java.lang.String encodeActionURL(java.lang.String url)
encodeActionURL
in class javax.faces.context.ExternalContext
public java.lang.String encodeNamespace(java.lang.String name)
encodeNamespace
in class javax.faces.context.ExternalContext
public java.lang.String encodeResourceURL(java.lang.String url)
encodeResourceURL
in class javax.faces.context.ExternalContext
public java.util.Map<java.lang.String,java.lang.Object> getApplicationMap()
getApplicationMap
in class javax.faces.context.ExternalContext
public java.lang.String getAuthType()
getAuthType
in class javax.faces.context.ExternalContext
public java.lang.Object getContext()
getContext
in class javax.faces.context.ExternalContext
public java.lang.String getInitParameter(java.lang.String name)
getInitParameter
in class javax.faces.context.ExternalContext
public java.util.Map<java.lang.String,java.lang.String> getInitParameterMap()
getInitParameterMap
in class javax.faces.context.ExternalContext
public java.lang.String getRemoteUser()
getRemoteUser
in class javax.faces.context.ExternalContext
public java.lang.Object getRequest()
getRequest
in class javax.faces.context.ExternalContext
public java.lang.String getRequestContentType()
getRequestContentType
in class javax.faces.context.ExternalContext
public java.lang.String getRequestContextPath()
getRequestContextPath
in class javax.faces.context.ExternalContext
public java.util.Map<java.lang.String,java.lang.Object> getRequestCookieMap()
getRequestCookieMap
in class javax.faces.context.ExternalContext
public java.util.Map<java.lang.String,java.lang.String> getRequestHeaderMap()
getRequestHeaderMap
in class javax.faces.context.ExternalContext
public java.util.Map<java.lang.String,java.lang.String[]> getRequestHeaderValuesMap()
getRequestHeaderValuesMap
in class javax.faces.context.ExternalContext
public java.util.Locale getRequestLocale()
getRequestLocale
in class javax.faces.context.ExternalContext
public java.util.Iterator<java.util.Locale> getRequestLocales()
getRequestLocales
in class javax.faces.context.ExternalContext
public java.util.Map<java.lang.String,java.lang.Object> getRequestMap()
getRequestMap
in class javax.faces.context.ExternalContext
public java.util.Map<java.lang.String,java.lang.String> getRequestParameterMap()
getRequestParameterMap
in class javax.faces.context.ExternalContext
public java.util.Iterator<java.lang.String> getRequestParameterNames()
getRequestParameterNames
in class javax.faces.context.ExternalContext
public java.util.Map<java.lang.String,java.lang.String[]> getRequestParameterValuesMap()
getRequestParameterValuesMap
in class javax.faces.context.ExternalContext
public java.lang.String getRequestPathInfo()
getRequestPathInfo
in class javax.faces.context.ExternalContext
public java.lang.String getRequestServletPath()
getRequestServletPath
in class javax.faces.context.ExternalContext
public java.net.URL getResource(java.lang.String path) throws java.net.MalformedURLException
getResource
in class javax.faces.context.ExternalContext
java.net.MalformedURLException
public java.io.InputStream getResourceAsStream(java.lang.String path)
getResourceAsStream
in class javax.faces.context.ExternalContext
public java.util.Set<java.lang.String> getResourcePaths(java.lang.String path)
getResourcePaths
in class javax.faces.context.ExternalContext
public java.lang.Object getResponse()
getResponse
in class javax.faces.context.ExternalContext
public java.lang.String getResponseContentType()
getResponseContentType
in class javax.faces.context.ExternalContext
public java.lang.Object getSession(boolean create)
getSession
in class javax.faces.context.ExternalContext
public java.util.Map<java.lang.String,java.lang.Object> getSessionMap()
getSessionMap
in class javax.faces.context.ExternalContext
public java.security.Principal getUserPrincipal()
getUserPrincipal
in class javax.faces.context.ExternalContext
public boolean isUserInRole(java.lang.String role)
isUserInRole
in class javax.faces.context.ExternalContext
public void log(java.lang.String message)
log
in class javax.faces.context.ExternalContext
public void log(java.lang.String message, java.lang.Throwable exception)
log
in class javax.faces.context.ExternalContext
public void redirect(java.lang.String url) throws java.io.IOException
redirect
in class javax.faces.context.ExternalContext
java.io.IOException
public void release()
public void setRequest(java.lang.Object request)
setRequest
in class javax.faces.context.ExternalContext
public void setRequestCharacterEncoding(java.lang.String encoding) throws java.io.UnsupportedEncodingException
setRequestCharacterEncoding
in class javax.faces.context.ExternalContext
java.io.UnsupportedEncodingException
public java.lang.String getRequestCharacterEncoding()
getRequestCharacterEncoding
in class javax.faces.context.ExternalContext
public java.lang.String getResponseCharacterEncoding()
getResponseCharacterEncoding
in class javax.faces.context.ExternalContext
public void setResponseCharacterEncoding(java.lang.String encoding)
setResponseCharacterEncoding
in class javax.faces.context.ExternalContext
public void setResponse(java.lang.Object response)
setResponse
in class javax.faces.context.ExternalContext