public class SpincastRequestRequestContextAddon<R extends RequestContext<?>> extends Object implements RequestRequestContextAddon<R>
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
SpincastRequestRequestContextAddon(R requestContext,
Server server,
JsonManager jsonManager,
XmlManager xmlManager,
SpincastUtils spincastUtils,
SpincastConfig spincastConfig,
ETagFactory etagFactory,
FlashMessagesHolder flashMessagesHolder,
FormFactory formFactory,
Dictionary dictionary) |
@Inject public SpincastRequestRequestContextAddon(R requestContext, Server server, JsonManager jsonManager, XmlManager xmlManager, SpincastUtils spincastUtils, SpincastConfig spincastConfig, ETagFactory etagFactory, FlashMessagesHolder flashMessagesHolder, FormFactory formFactory, Dictionary dictionary)
protected R getRequestContext()
protected Server getServer()
protected JsonManager getJsonManager()
protected XmlManager getXmlManager()
protected SpincastUtils getSpincastUtils()
protected SpincastConfig getSpincastConfig()
protected ETagFactory getEtagFactory()
protected FlashMessagesHolder getFlashMessagesHolder()
protected FormFactory getFormFactory()
protected Dictionary getDictionary()
protected Object getExchange()
public HttpMethod getHttpMethod()
getHttpMethod in interface RequestRequestContextAddon<R extends RequestContext<?>>public ContentTypeDefaults getContentTypeBestMatch()
getContentTypeBestMatch in interface RequestRequestContextAddon<R extends RequestContext<?>>public boolean isJsonShouldBeReturn()
isJsonShouldBeReturn in interface RequestRequestContextAddon<R extends RequestContext<?>>public boolean isHTMLShouldBeReturn()
isHTMLShouldBeReturn in interface RequestRequestContextAddon<R extends RequestContext<?>>public boolean isXMLShouldBeReturn()
isXMLShouldBeReturn in interface RequestRequestContextAddon<R extends RequestContext<?>>public boolean isPlainTextShouldBeReturn()
isPlainTextShouldBeReturn in interface RequestRequestContextAddon<R extends RequestContext<?>>protected Pattern getFormDataArrayPattern()
public String getCookieValue(String name)
getCookieValue in interface RequestRequestContextAddon<R extends RequestContext<?>>public Map<String,String> getCookiesValues()
getCookiesValues in interface RequestRequestContextAddon<R extends RequestContext<?>>public boolean isCookiesEnabledValidated()
isCookiesEnabledValidated in interface RequestRequestContextAddon<R extends RequestContext<?>>public Map<String,List<String>> getHeaders()
getHeaders in interface RequestRequestContextAddon<R extends RequestContext<?>>public List<String> getHeader(String name)
getHeader in interface RequestRequestContextAddon<R extends RequestContext<?>>public String getHeaderFirst(String name)
getHeaderFirst in interface RequestRequestContextAddon<R extends RequestContext<?>>protected String getFullUrlOriginalNoCacheBustersNonDecoded()
protected String getFullUrlOriginalWithCacheBustersNonDecoded()
protected String getFullUrlProxiedNoCacheBustersNonDecoded()
protected String getFullUrlProxiedWithCacheBustersNonDecoded()
public String getFullUrlOriginal()
getFullUrlOriginal in interface RequestRequestContextAddon<R extends RequestContext<?>>public String getFullUrlOriginal(boolean keepCacheBusters)
getFullUrlOriginal in interface RequestRequestContextAddon<R extends RequestContext<?>>public String getFullUrlProxied()
getFullUrlProxied in interface RequestRequestContextAddon<R extends RequestContext<?>>public String getFullUrlProxied(boolean keepCacheBusters)
getFullUrlProxied in interface RequestRequestContextAddon<R extends RequestContext<?>>public String getFullUrl()
getFullUrl in interface RequestRequestContextAddon<R extends RequestContext<?>>public String getFullUrl(boolean keepCacheBusters)
getFullUrl in interface RequestRequestContextAddon<R extends RequestContext<?>>protected void validateFullUrlInfoCache()
protected void parseUrl()
protected void parseRequestPath()
protected void parseQueryString()
public void parseQueryStringParams()
public String getRequestPath()
getRequestPath in interface RequestRequestContextAddon<R extends RequestContext<?>>public String getRequestPath(boolean keepCacheBusters)
getRequestPath in interface RequestRequestContextAddon<R extends RequestContext<?>>public String getQueryString(boolean withQuestionMark)
getQueryString in interface RequestRequestContextAddon<R extends RequestContext<?>>public Map<String,List<String>> getQueryStringParams()
getQueryStringParams in interface RequestRequestContextAddon<R extends RequestContext<?>>public List<String> getQueryStringParam(String name)
getQueryStringParam in interface RequestRequestContextAddon<R extends RequestContext<?>>public String getQueryStringParamFirst(String name)
getQueryStringParamFirst in interface RequestRequestContextAddon<R extends RequestContext<?>>public Map<String,String> getPathParams()
getPathParams in interface RequestRequestContextAddon<R extends RequestContext<?>>public String getPathParam(String name)
getPathParam in interface RequestRequestContextAddon<R extends RequestContext<?>>public InputStream getBodyAsInputStream()
getBodyAsInputStream in interface RequestRequestContextAddon<R extends RequestContext<?>>public String getBodyAsString()
getBodyAsString in interface RequestRequestContextAddon<R extends RequestContext<?>>public String getStringBody(String encoding)
getStringBody in interface RequestRequestContextAddon<R extends RequestContext<?>>public byte[] getBodyAsByteArray()
getBodyAsByteArray in interface RequestRequestContextAddon<R extends RequestContext<?>>public JsonObject getJsonBody()
getJsonBody in interface RequestRequestContextAddon<R extends RequestContext<?>>public Map<String,Object> getJsonBodyAsMap()
getJsonBodyAsMap in interface RequestRequestContextAddon<R extends RequestContext<?>>public <T> T getJsonBody(Class<T> clazz)
getJsonBody in interface RequestRequestContextAddon<R extends RequestContext<?>>public JsonObject getXmlBodyAsJsonObject()
getXmlBodyAsJsonObject in interface RequestRequestContextAddon<R extends RequestContext<?>>public Map<String,Object> getXmlBodyAsMap()
getXmlBodyAsMap in interface RequestRequestContextAddon<R extends RequestContext<?>>public <T> T getXmlBody(Class<T> clazz)
getXmlBody in interface RequestRequestContextAddon<R extends RequestContext<?>>public Map<String,List<String>> getFormBodyRaw()
getFormBodyRaw in interface RequestRequestContextAddon<R extends RequestContext<?>>public JsonObject getFormBodyAsJsonObject()
getFormBodyAsJsonObject in interface RequestRequestContextAddon<R extends RequestContext<?>>public Form getFormOrCreate(String rootKey)
getFormOrCreate in interface RequestRequestContextAddon<R extends RequestContext<?>>public Form getForm(String rootKey)
getForm in interface RequestRequestContextAddon<R extends RequestContext<?>>public Map<String,List<UploadedFile>> getUploadedFiles()
getUploadedFiles in interface RequestRequestContextAddon<R extends RequestContext<?>>public List<UploadedFile> getUploadedFiles(String name)
getUploadedFiles in interface RequestRequestContextAddon<R extends RequestContext<?>>public UploadedFile getUploadedFileFirst(String name)
getUploadedFileFirst in interface RequestRequestContextAddon<R extends RequestContext<?>>public Locale getLocaleBestMatch()
getLocaleBestMatch in interface RequestRequestContextAddon<R extends RequestContext<?>>public String getContentType()
getContentType in interface RequestRequestContextAddon<R extends RequestContext<?>>public boolean isHttps()
isHttps in interface RequestRequestContextAddon<R extends RequestContext<?>>public List<ETag> getEtagsFromIfMatchHeader()
getEtagsFromIfMatchHeader in interface RequestRequestContextAddon<R extends RequestContext<?>>public List<ETag> getEtagsFromIfNoneMatchHeader()
getEtagsFromIfNoneMatchHeader in interface RequestRequestContextAddon<R extends RequestContext<?>>public Date getDateFromIfModifiedSinceHeader()
getDateFromIfModifiedSinceHeader in interface RequestRequestContextAddon<R extends RequestContext<?>>public Date getDateFromIfUnmodifiedSinceHeader()
getDateFromIfUnmodifiedSinceHeader in interface RequestRequestContextAddon<R extends RequestContext<?>>protected Date parseDateHeader(String headerName)
public boolean isFlashMessageExists()
isFlashMessageExists in interface RequestRequestContextAddon<R extends RequestContext<?>>public FlashMessage getFlashMessage()
getFlashMessage in interface RequestRequestContextAddon<R extends RequestContext<?>>protected FlashMessage getFlashMessage(boolean removeIt)
public String getIp()
getIp in interface RequestRequestContextAddon<R extends RequestContext<?>>Copyright © 2019. All rights reserved.