public class MockExternalContext extends javax.faces.context.ExternalContext
| Constructor and Description |
|---|
MockExternalContext() |
addResponseCookie, addResponseHeader, encodeBookmarkableURL, encodePartialActionURL, encodeRedirectURL, getApplicationContextPath, getClientWindow, getContextName, getFlash, getMimeType, getRealPath, getRequestCharacterEncoding, getRequestContentLength, getRequestContentType, getRequestScheme, getRequestServerName, getRequestServerPort, getResponseBufferSize, getResponseCharacterEncoding, getResponseContentType, getResponseOutputStream, getResponseOutputWriter, getSessionId, getSessionMaxInactiveInterval, invalidateSession, isResponseCommitted, isSecure, responseFlushBuffer, responseReset, responseSendError, setClientWindow, setRequest, setRequestCharacterEncoding, setResponse, setResponseBufferSize, setResponseCharacterEncoding, setResponseContentLength, setResponseContentType, setResponseHeader, setResponseStatus, setSessionMaxInactiveIntervalpublic MockExternalContext()
public void dispatch(String path) throws IOException
dispatch in class javax.faces.context.ExternalContextIOExceptionpublic String encodeActionURL(String url)
encodeActionURL in class javax.faces.context.ExternalContextpublic String encodeNamespace(String name)
encodeNamespace in class javax.faces.context.ExternalContextpublic String encodeResourceURL(String url)
encodeResourceURL in class javax.faces.context.ExternalContextpublic Map<String,Object> getApplicationMap()
getApplicationMap in class javax.faces.context.ExternalContextpublic String getAuthType()
getAuthType in class javax.faces.context.ExternalContextpublic Object getContext()
getContext in class javax.faces.context.ExternalContextpublic String getInitParameter(String name)
getInitParameter in class javax.faces.context.ExternalContextpublic Map getInitParameterMap()
getInitParameterMap in class javax.faces.context.ExternalContextpublic String getRemoteUser()
getRemoteUser in class javax.faces.context.ExternalContextpublic Object getRequest()
getRequest in class javax.faces.context.ExternalContextpublic String getRequestContextPath()
getRequestContextPath in class javax.faces.context.ExternalContextpublic Map<String,Object> getRequestCookieMap()
getRequestCookieMap in class javax.faces.context.ExternalContextpublic Map<String,String> getRequestHeaderMap()
getRequestHeaderMap in class javax.faces.context.ExternalContextpublic Map<String,String[]> getRequestHeaderValuesMap()
getRequestHeaderValuesMap in class javax.faces.context.ExternalContextpublic Locale getRequestLocale()
getRequestLocale in class javax.faces.context.ExternalContextpublic Iterator<Locale> getRequestLocales()
getRequestLocales in class javax.faces.context.ExternalContextpublic Map<String,Object> getRequestMap()
getRequestMap in class javax.faces.context.ExternalContextpublic Map<String,String> getRequestParameterMap()
getRequestParameterMap in class javax.faces.context.ExternalContextpublic Iterator<String> getRequestParameterNames()
getRequestParameterNames in class javax.faces.context.ExternalContextpublic Map<String,String[]> getRequestParameterValuesMap()
getRequestParameterValuesMap in class javax.faces.context.ExternalContextpublic String getRequestPathInfo()
getRequestPathInfo in class javax.faces.context.ExternalContextpublic String getRequestServletPath()
getRequestServletPath in class javax.faces.context.ExternalContextpublic URL getResource(String path) throws MalformedURLException
getResource in class javax.faces.context.ExternalContextMalformedURLExceptionpublic InputStream getResourceAsStream(String path)
getResourceAsStream in class javax.faces.context.ExternalContextpublic Set<String> getResourcePaths(String path)
getResourcePaths in class javax.faces.context.ExternalContextpublic Object getResponse()
getResponse in class javax.faces.context.ExternalContextpublic Object getSession(boolean create)
getSession in class javax.faces.context.ExternalContextpublic Map<String,Object> getSessionMap()
getSessionMap in class javax.faces.context.ExternalContextpublic Principal getUserPrincipal()
getUserPrincipal in class javax.faces.context.ExternalContextpublic boolean isUserInRole(String role)
isUserInRole in class javax.faces.context.ExternalContextpublic void log(String message, Throwable exception)
log in class javax.faces.context.ExternalContextpublic void redirect(String url) throws IOException
redirect in class javax.faces.context.ExternalContextIOExceptionCopyright © 2019 Nuxeo. All rights reserved.