Package org.restheart.exchange
Class JsonRequest
- java.lang.Object
-
- org.restheart.exchange.Exchange<T>
-
- org.restheart.exchange.Request<T>
-
- org.restheart.exchange.ServiceRequest<com.google.gson.JsonElement>
-
- org.restheart.exchange.JsonRequest
-
public class JsonRequest extends ServiceRequest<com.google.gson.JsonElement>
- Author:
- Andrea Di Cesare
-
-
Field Summary
-
Fields inherited from class org.restheart.exchange.ServiceRequest
content
-
Fields inherited from class org.restheart.exchange.Request
FORM_URLENCODED, MULTIPART, PATCH, SLASH, UNDERSCORE
-
Fields inherited from class org.restheart.exchange.Exchange
APP_FORM_URLENCODED_TYPE, APPLICATION_PDF_TYPE, HAL_JSON_MEDIA_TYPE, IN_ERROR_KEY, JSON_MEDIA_TYPE, LOGGER, MAX_BUFFERS, MAX_CONTENT_SIZE, MULTIPART_FORM_DATA_TYPE, wrapped
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonRequestinit(io.undertow.server.HttpServerExchange exchange)voidinjectContent()static JsonRequestof(io.undertow.server.HttpServerExchange exchange)-
Methods inherited from class org.restheart.exchange.ServiceRequest
getContent, isHandledBy, of, setContent
-
Methods inherited from class org.restheart.exchange.Request
addXForwardedHeader, getAuthenticatedAccount, getContentType, getContentType, getMethod, getPath, getPipelineInfo, getStartTime, getXForwardedHeaders, isContentTypeFormOrMultipart, isContentTypeFormOrMultipart, isContentTypeJson, isDelete, isGet, isOptions, isPatch, isPost, isPut, setContentLength, setContentType, setContentTypeAsJson, setPipelineInfo, setStartTime
-
Methods inherited from class org.restheart.exchange.Exchange
getExchange, getWrappedExchange, isAccountInRole, isAuthenticated, isAuthenticated, isContentTypeJson, isContentTypeText, isContentTypeXml, isInError, isInError, responseInterceptorsExecuted, setInError, setInError, setResponseInterceptorsExecuted, updateBufferSize
-
-
-
-
Method Detail
-
init
public static JsonRequest init(io.undertow.server.HttpServerExchange exchange)
-
of
public static JsonRequest of(io.undertow.server.HttpServerExchange exchange)
-
injectContent
public void injectContent() throws IOException- Throws:
IOException
-
-