public class SpincastRequestRequestContextAddon<R extends IRequestContext<?>> extends Object implements IRequestRequestContextAddon<R>
| Constructor and Description |
|---|
SpincastRequestRequestContextAddon(R requestContext,
IServer server,
IJsonManager jsonManager,
IXmlManager xmlManager,
ISpincastUtils spincastUtils,
ISpincastConfig spincastConfig) |
@Inject public SpincastRequestRequestContextAddon(R requestContext, IServer server, IJsonManager jsonManager, IXmlManager xmlManager, ISpincastUtils spincastUtils, ISpincastConfig spincastConfig)
protected R getRequestContext()
protected IServer getServer()
protected IJsonManager getJsonManager()
protected IXmlManager getXmlManager()
protected ISpincastUtils getSpincastUtils()
protected ISpincastConfig getSpincastConfig()
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 isJsonRequest()
isJsonRequest 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 void validateUrlInfoCache()
protected void parseUrl()
protected void parseRequestPath()
protected void parseQueryString()
public void parseQueryStringParams()
public String getFullUrl()
getFullUrl in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public String getOriginalFullUrl()
getOriginalFullUrl in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public String getRequestPath()
getRequestPath in interface IRequestRequestContextAddon<R extends IRequestContext<?>>public String getQueryString()
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<?>>Copyright © 2016. All rights reserved.