Context.HTTP_STATUS, Context.ImplCONTENT_TYPE| Constructor and Description |
|---|
FakeContext() |
public FakeContext setRequestContentType(String requestContentType)
public String getRequestContentType()
getRequestContentType in interface Context@Deprecated public FakeContext setRequestUri(String requestUri)
requestUri - @Deprecated public String getRequestUri()
getRequestUri in interface ContextrequestUri - public FakeContext setFlashCookie(FlashScope flashCookie)
public FakeContext setSessionCookie(Session sessionCookie)
public Session getSessionCookie()
getSessionCookie in interface Contextpublic FlashScope getFlashCookie()
getFlashCookie in interface Contextpublic Session getSession()
getSession in interface Contextpublic FlashScope getFlashScope()
getFlashScope in interface Contextpublic FakeContext addParameter(String key, String value)
public String getParameter(String key)
getParameter in interface Contextpublic List<String> getParameterValues(String name)
getParameterValues in interface Contextpublic String getParameter(String key, String defaultValue)
getParameter in interface Contextpublic Integer getParameterAsInteger(String key)
getParameterAsInteger in interface Contextpublic Integer getParameterAsInteger(String key, Integer defaultValue)
getParameterAsInteger in interface Contextpublic <T> T getParameterAs(String key, Class<T> clazz)
getParameterAs in interface Contextpublic <T> T getParameterAs(String key, Class<T> clazz, T defaultValue)
getParameterAs in interface Contextpublic FakeContext addPathParameter(String key, String value)
public String getPathParameter(String key)
getPathParameter in interface Contextpublic Integer getPathParameterAsInteger(String key)
getPathParameterAsInteger in interface Contextpublic Map<String,String[]> getParameters()
getParameters in interface Contextpublic FakeContext addHeader(String name, String value)
public List<String> getHeaders(String name)
getHeaders in interface Contextpublic Map<String,List<String>> getHeaders()
getHeaders in interface Contextpublic FakeContext addCookieValue(String name, String value)
public String getCookieValue(String name)
getCookieValue in interface Contextpublic FakeContext setBody(Object body)
public boolean isMultipart()
isMultipart in interface Contextpublic org.apache.commons.fileupload.FileItemIterator getFileItemIterator()
getFileItemIterator in interface Contextpublic void handleAsync()
handleAsync in interface Contextpublic void returnResultAsync(Result result)
returnResultAsync in interface Contextpublic void asyncRequestComplete()
asyncRequestComplete in interface Contextpublic Result controllerReturned()
controllerReturned in interface Contextpublic ResponseStreams finalizeHeaders(Result result)
finalizeHeaders in interface Contextpublic ResponseStreams finalizeHeadersWithoutFlashAndSessionCookie(Result result)
finalizeHeadersWithoutFlashAndSessionCookie in interface Contextpublic InputStream getInputStream() throws IOException
getInputStream in interface ContextIOExceptionpublic BufferedReader getReader() throws IOException
getReader in interface ContextIOExceptionpublic FakeContext setRequestPath(String path)
public String getRequestPath()
getRequestPath in interface Contextpublic Validation getValidation()
getValidation in interface Contextpublic String getPathParameterEncoded(String name)
getPathParameterEncoded in interface Contextpublic void setAcceptContentType(String acceptContentType)
public String getAcceptContentType()
getAcceptContentType in interface Contextpublic void setAcceptEncoding(String acceptEncoding)
public String getAcceptEncoding()
getAcceptEncoding in interface Contextpublic void setAcceptLanguage(String acceptLanguage)
public String getAcceptLanguage()
getAcceptLanguage in interface Contextpublic void setAcceptCharset(String acceptCharset)
public String getAcceptCharset()
getAcceptCharset in interface Contextpublic List<Cookie> getCookies()
getCookies in interface Contextpublic Object getAttribute(String name)
getAttribute in interface Contextpublic <T> T getAttribute(String name, Class<T> clazz)
getAttribute in interface Contextpublic void setAttribute(String name, Object value)
setAttribute in interface Contextpublic String getContextPath()
getContextPath in interface Contextpublic void setContextPath(String contextPath)
Copyright © 2014. All Rights Reserved.