public class MockExternalContext extends ExternalContext
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH| Constructor and Description |
|---|
MockExternalContext() |
getRequestCharacterEncoding, getRequestContentType, getResponseCharacterEncoding, getResponseContentType, setRequest, setRequestCharacterEncoding, setResponse, setResponseCharacterEncodingpublic void dispatch(String path) throws IOException
dispatch in class ExternalContextIOExceptionpublic String encodeActionURL(String url)
encodeActionURL in class ExternalContextpublic String encodeNamespace(String name)
encodeNamespace in class ExternalContextpublic String encodeResourceURL(String url)
encodeResourceURL in class ExternalContextpublic Map<String,Object> getApplicationMap()
getApplicationMap in class ExternalContextpublic String getAuthType()
getAuthType in class ExternalContextpublic Object getContext()
getContext in class ExternalContextpublic String getInitParameter(String name)
getInitParameter in class ExternalContextpublic Map getInitParameterMap()
getInitParameterMap in class ExternalContextpublic String getRemoteUser()
getRemoteUser in class ExternalContextpublic Object getRequest()
getRequest in class ExternalContextpublic String getRequestContextPath()
getRequestContextPath in class ExternalContextpublic Map<String,Object> getRequestCookieMap()
getRequestCookieMap in class ExternalContextpublic Map<String,String> getRequestHeaderMap()
getRequestHeaderMap in class ExternalContextpublic Map<String,String[]> getRequestHeaderValuesMap()
getRequestHeaderValuesMap in class ExternalContextpublic Locale getRequestLocale()
getRequestLocale in class ExternalContextpublic Iterator<Locale> getRequestLocales()
getRequestLocales in class ExternalContextpublic Map<String,Object> getRequestMap()
getRequestMap in class ExternalContextpublic Map<String,String> getRequestParameterMap()
getRequestParameterMap in class ExternalContextpublic Iterator<String> getRequestParameterNames()
getRequestParameterNames in class ExternalContextpublic Map<String,String[]> getRequestParameterValuesMap()
getRequestParameterValuesMap in class ExternalContextpublic String getRequestPathInfo()
getRequestPathInfo in class ExternalContextpublic String getRequestServletPath()
getRequestServletPath in class ExternalContextpublic URL getResource(String path) throws MalformedURLException
getResource in class ExternalContextMalformedURLExceptionpublic InputStream getResourceAsStream(String path)
getResourceAsStream in class ExternalContextpublic Set<String> getResourcePaths(String path)
getResourcePaths in class ExternalContextpublic Object getResponse()
getResponse in class ExternalContextpublic Object getSession(boolean create)
getSession in class ExternalContextpublic Map<String,Object> getSessionMap()
getSessionMap in class ExternalContextpublic Principal getUserPrincipal()
getUserPrincipal in class ExternalContextpublic boolean isUserInRole(String role)
isUserInRole in class ExternalContextpublic void log(String message)
log in class ExternalContextpublic void log(String message, Throwable exception)
log in class ExternalContextpublic void redirect(String url) throws IOException
redirect in class ExternalContextIOExceptionCopyright © 2013 Nuxeo SA. All Rights Reserved.