Context.HTTP_STATUSCONTENT_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(FlashCookie flashCookie)
public FlashCookie getFlashCookie()
getFlashCookie in interface Contextpublic FakeContext setSessionCookie(SessionCookie sessionCookie)
public SessionCookie getSessionCookie()
getSessionCookie in interface Contextpublic javax.servlet.http.HttpServletRequest getHttpServletRequest()
getHttpServletRequest in interface Contextpublic javax.servlet.http.HttpServletResponse getHttpServletResponse()
getHttpServletResponse in interface Contextpublic FakeContext addParameter(String key, String value)
public String getParameter(String key)
getParameter 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 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 Map<String,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 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 ContextCopyright © 2013. All Rights Reserved.