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, setResponseCharacterEncoding
public void dispatch(String path) throws IOException
dispatch
in class ExternalContext
IOException
public String encodeActionURL(String url)
encodeActionURL
in class ExternalContext
public String encodeNamespace(String name)
encodeNamespace
in class ExternalContext
public String encodeResourceURL(String url)
encodeResourceURL
in class ExternalContext
public Map<String,Object> getApplicationMap()
getApplicationMap
in class ExternalContext
public String getAuthType()
getAuthType
in class ExternalContext
public Object getContext()
getContext
in class ExternalContext
public String getInitParameter(String name)
getInitParameter
in class ExternalContext
public Map getInitParameterMap()
getInitParameterMap
in class ExternalContext
public String getRemoteUser()
getRemoteUser
in class ExternalContext
public Object getRequest()
getRequest
in class ExternalContext
public String getRequestContextPath()
getRequestContextPath
in class ExternalContext
public Map<String,Object> getRequestCookieMap()
getRequestCookieMap
in class ExternalContext
public Map<String,String> getRequestHeaderMap()
getRequestHeaderMap
in class ExternalContext
public Map<String,String[]> getRequestHeaderValuesMap()
getRequestHeaderValuesMap
in class ExternalContext
public Locale getRequestLocale()
getRequestLocale
in class ExternalContext
public Iterator<Locale> getRequestLocales()
getRequestLocales
in class ExternalContext
public Map<String,Object> getRequestMap()
getRequestMap
in class ExternalContext
public Map<String,String> getRequestParameterMap()
getRequestParameterMap
in class ExternalContext
public Iterator<String> getRequestParameterNames()
getRequestParameterNames
in class ExternalContext
public Map<String,String[]> getRequestParameterValuesMap()
getRequestParameterValuesMap
in class ExternalContext
public String getRequestPathInfo()
getRequestPathInfo
in class ExternalContext
public String getRequestServletPath()
getRequestServletPath
in class ExternalContext
public URL getResource(String path) throws MalformedURLException
getResource
in class ExternalContext
MalformedURLException
public InputStream getResourceAsStream(String path)
getResourceAsStream
in class ExternalContext
public Set<String> getResourcePaths(String path)
getResourcePaths
in class ExternalContext
public Object getResponse()
getResponse
in class ExternalContext
public Object getSession(boolean create)
getSession
in class ExternalContext
public Map<String,Object> getSessionMap()
getSessionMap
in class ExternalContext
public Principal getUserPrincipal()
getUserPrincipal
in class ExternalContext
public boolean isUserInRole(String role)
isUserInRole
in class ExternalContext
public void log(String message)
log
in class ExternalContext
public void log(String message, Throwable exception)
log
in class ExternalContext
public void redirect(String url) throws IOException
redirect
in class ExternalContext
IOException
Copyright © 2013 Nuxeo SA. All Rights Reserved.