Package org.restheart.exchange
Class BsonRequest
- java.lang.Object
-
- org.restheart.exchange.Exchange<T>
-
- org.restheart.exchange.Request<T>
-
- org.restheart.exchange.ServiceRequest<org.bson.BsonValue>
-
- org.restheart.exchange.BsonRequest
-
- Direct Known Subclasses:
MongoRequest
public class BsonRequest extends ServiceRequest<org.bson.BsonValue>
ServiceRequest implementation backed by BsonValue- 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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBsonRequest(io.undertow.server.HttpServerExchange exchange)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BsonRequestinit(io.undertow.server.HttpServerExchange exchange)voidinjectContent()static BsonRequestof(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 BsonRequest init(io.undertow.server.HttpServerExchange exchange)
-
of
public static BsonRequest of(io.undertow.server.HttpServerExchange exchange)
-
injectContent
public void injectContent() throws IOException- Throws:
IOException
-
-