org.apache.myfaces.test.mock
Class MockExternalContext12

java.lang.Object
  extended by javax.faces.context.ExternalContext
      extended by org.apache.myfaces.test.mock.MockExternalContext
          extended by org.apache.myfaces.test.mock.MockExternalContext12
Direct Known Subclasses:
MockExternalContext20

public class MockExternalContext12
extends MockExternalContext

Mock implementation of ExternalContext that includes the semantics added by JavaServer Faces 1.2.

$Id: MockExternalContext12.java 1604204 2014-06-20 16:20:34Z lu4242 $

Since:
1.0.0

Field Summary
 
Fields inherited from class org.apache.myfaces.test.mock.MockExternalContext
context, request, response
 
Fields inherited from class javax.faces.context.ExternalContext
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
MockExternalContext12(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
 String getRequestCharacterEncoding()
          
 String getRequestContentType()
          
 String getResponseCharacterEncoding()
          
 String getResponseContentType()
          
 void setRequest(Object request)
          
 void setRequestCharacterEncoding(String encoding)
          
 void setResponse(Object response)
          
 void setResponseCharacterEncoding(String encoding)
          
 
Methods inherited from class org.apache.myfaces.test.mock.MockExternalContext
addRequestCookieMap, addRequestHeader, addRequestParameterMap, dispatch, encodeActionURL, encodeNamespace, encodeResourceURL, getApplicationMap, getAuthType, getContext, getInitParameter, getInitParameterMap, getRemoteUser, getRequest, getRequestContextPath, getRequestCookieMap, getRequestHeaderMap, getRequestHeaderValuesMap, getRequestLocale, getRequestLocales, getRequestMap, getRequestParameterMap, getRequestParameterNames, getRequestParameterValuesMap, getRequestPathInfo, getRequestServletPath, getResource, getResourceAsStream, getResourcePaths, getResponse, getSession, getSessionMap, getUserPrincipal, isUserInRole, log, log, redirect, setRequestCookieMap, setRequestHeaderMap, setRequestParameterMap
 
Methods inherited from class javax.faces.context.ExternalContext
addResponseCookie, addResponseHeader, encodeBookmarkableURL, encodePartialActionURL, encodeRedirectURL, getContextName, getFlash, getMimeType, getRealPath, getRequestContentLength, getRequestScheme, getRequestServerName, getRequestServerPort, getResponseBufferSize, getResponseOutputStream, getResponseOutputWriter, invalidateSession, isResponseCommitted, responseFlushBuffer, responseReset, responseSendError, setResponseBufferSize, setResponseContentLength, setResponseContentType, setResponseHeader, setResponseStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockExternalContext12

public MockExternalContext12(javax.servlet.ServletContext context,
                             javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
Method Detail

getRequestCharacterEncoding

public String getRequestCharacterEncoding()

Overrides:
getRequestCharacterEncoding in class javax.faces.context.ExternalContext

getRequestContentType

public String getRequestContentType()

Overrides:
getRequestContentType in class javax.faces.context.ExternalContext

getResponseCharacterEncoding

public String getResponseCharacterEncoding()

Overrides:
getResponseCharacterEncoding in class javax.faces.context.ExternalContext

getResponseContentType

public String getResponseContentType()

Overrides:
getResponseContentType in class javax.faces.context.ExternalContext

setRequest

public void setRequest(Object request)

Overrides:
setRequest in class javax.faces.context.ExternalContext

setRequestCharacterEncoding

public void setRequestCharacterEncoding(String encoding)
                                 throws UnsupportedEncodingException

Overrides:
setRequestCharacterEncoding in class javax.faces.context.ExternalContext
Throws:
UnsupportedEncodingException

setResponse

public void setResponse(Object response)

Overrides:
setResponse in class javax.faces.context.ExternalContext

setResponseCharacterEncoding

public void setResponseCharacterEncoding(String encoding)

Overrides:
setResponseCharacterEncoding in class javax.faces.context.ExternalContext


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.