public class SpincastRequestRequestContextAddon<R extends IRequestContext<?>> extends Object implements IRequestRequestContextAddon<R>
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
SpincastRequestRequestContextAddon(R requestContext,
IServer server,
IJsonManager jsonManager,
IXmlManager xmlManager,
ISpincastUtils spincastUtils,
ISpincastConfig spincastConfig,
IETagFactory etagFactory) |
@Inject public SpincastRequestRequestContextAddon(R requestContext, IServer server, IJsonManager jsonManager, IXmlManager xmlManager, ISpincastUtils spincastUtils, ISpincastConfig spincastConfig, IETagFactory etagFactory)
protected R getRequestContext()
protected IServer getServer()
protected IJsonManager getJsonManager()
protected IXmlManager getXmlManager()
protected ISpincastUtils getSpincastUtils()
protected ISpincastConfig getSpincastConfig()
protected IETagFactory getEtagFactory()
protected Object getExchange()
public HttpMethod getHttpMethod()
getHttpMethod in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public ContentTypeDefaults getContentTypeBestMatch()
getContentTypeBestMatch in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public boolean isJsonShouldBeReturn()
isJsonShouldBeReturn in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public boolean isHTMLShouldBeReturn()
isHTMLShouldBeReturn in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public boolean isXMLShouldBeReturn()
isXMLShouldBeReturn in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public boolean isPlainTextShouldBeReturn()
isPlainTextShouldBeReturn in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public Map<String,List<String>> getHeaders()
getHeaders in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public List<String> getHeader(String name)
getHeader in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public String getHeaderFirst(String name)
getHeaderFirst in interface IRequestRequestContextAddon<R extends IRequestContext<?>>protected String getFullUrlOriginalNoCacheBustersNonDecoded()
protected String getFullUrlOriginalWithCacheBustersNonDecoded()
protected String getFullUrlProxiedNoCacheBustersNonDecoded()
protected String getFullUrlProxiedWithCacheBustersNonDecoded()
public String getFullUrlOriginal()
getFullUrlOriginal in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public String getFullUrlOriginal(boolean keepCacheBusters)
getFullUrlOriginal in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public String getFullUrlProxied()
getFullUrlProxied in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public String getFullUrlProxied(boolean keepCacheBusters)
getFullUrlProxied in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public String getFullUrl()
getFullUrl in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public String getFullUrl(boolean keepCacheBusters)
getFullUrl in interface IRequestRequestContextAddon<R extends IRequestContext<?>>protected void validateFullUrlInfoCache()
protected void parseUrl()
protected void parseRequestPath()
protected void parseQueryString()
public void parseQueryStringParams()
public String getRequestPath()
getRequestPath in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public String getRequestPath(boolean keepCacheBusters)
getRequestPath in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public String getQueryString(boolean withQuestionMark)
getQueryString in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public Map<String,List<String>> getQueryStringParams()
getQueryStringParams in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public List<String> getQueryStringParam(String name)
getQueryStringParam in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public String getQueryStringParamFirst(String name)
getQueryStringParamFirst in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public Map<String,String> getPathParams()
getPathParams in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public String getPathParam(String name)
getPathParam in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public InputStream getBodyAsInputStream()
getBodyAsInputStream in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public String getBodyAsString()
getBodyAsString in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public String getBodyAsString(String encoding)
getBodyAsString in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public byte[] getBodyAsByteArray()
getBodyAsByteArray in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public IJsonObject getJsonBodyAsJsonObject()
getJsonBodyAsJsonObject in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public Map<String,Object> getJsonBodyAsMap()
getJsonBodyAsMap in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public <T> T getJsonBody(Class<T> clazz)
getJsonBody in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public IJsonObject getXmlBodyAsJsonObject()
getXmlBodyAsJsonObject in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public Map<String,Object> getXmlBodyAsMap()
getXmlBodyAsMap in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public <T> T getXmlBody(Class<T> clazz)
getXmlBody in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public Map<String,List<String>> getFormDatas()
getFormDatas in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public List<String> getFormData(String name)
getFormData in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public String getFormDataFirst(String name)
getFormDataFirst in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public Map<String,List<File>> getUploadedFiles()
getUploadedFiles in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public List<File> getUploadedFiles(String name)
getUploadedFiles in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public File getUploadedFileFirst(String name)
getUploadedFileFirst in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public Locale getLocaleBestMatch()
getLocaleBestMatch in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public String getContentType()
getContentType in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public boolean isHttps()
isHttps in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public List<IETag> getEtagsFromIfMatchHeader()
getEtagsFromIfMatchHeader in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public List<IETag> getEtagsFromIfNoneMatchHeader()
getEtagsFromIfNoneMatchHeader in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public Date getDateFromIfModifiedSinceHeader()
getDateFromIfModifiedSinceHeader in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public Date getDateFromIfUnmodifiedSinceHeader()
getDateFromIfUnmodifiedSinceHeader in interface IRequestRequestContextAddon<R extends IRequestContext<?>>Copyright © 2016. All rights reserved.