Package org.restheart.plugins
Interface BsonService
- All Superinterfaces:
ConfigurablePlugin,CORSHeaders,ExchangeTypeResolver<BsonRequest,,BsonResponse> HandlingPlugin<BsonRequest,,BsonResponse> Plugin,Service<BsonRequest,BsonResponse>
Specialized Service interface that uses BsonRequest and BsonResponse
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Field Summary
Fields inherited from interface org.restheart.exchange.CORSHeaders
ACCESS_CONTROL_ALLOW_CREDENTIAL, ACCESS_CONTROL_ALLOW_HEADERS, ACCESS_CONTROL_ALLOW_METHODS, ACCESS_CONTROL_ALLOW_ORIGIN, ACCESS_CONTROL_EXPOSE_HEADERS, DEFAULT_ACCESS_CONTROL_ALLOW_CREDENTIALS, DEFAULT_ACCESS_CONTROL_ALLOW_HEADERS, DEFAULT_ACCESS_CONTROL_ALLOW_METHODS, DEFAULT_ACCESS_CONTROL_ALLOW_ORIGIN, DEFAULT_ACCESS_CONTROL_EXPOSE_HEADERS -
Method Summary
Modifier and TypeMethodDescriptiondefault Function<io.undertow.server.HttpServerExchange, BsonRequest> request()default Consumer<io.undertow.server.HttpServerExchange> default Function<io.undertow.server.HttpServerExchange, BsonResponse> response()default Consumer<io.undertow.server.HttpServerExchange> Methods inherited from interface org.restheart.plugins.ConfigurablePlugin
arg, argOrDefaultMethods inherited from interface org.restheart.exchange.CORSHeaders
accessControlAllowCredentials, accessControlAllowHeaders, accessControlAllowMethods, accessControlAllowOrigin, accessControlExposeHeadersMethods inherited from interface org.restheart.plugins.ExchangeTypeResolver
requestType, responseTypeMethods inherited from interface org.restheart.plugins.Service
handle, handle, handleOptions, handleOptions
-
Method Details
-
requestInitializer
- Specified by:
requestInitializerin interfaceService<BsonRequest,BsonResponse> - Returns:
- the Consumer used to instantiate the request object
-
responseInitializer
- Specified by:
responseInitializerin interfaceService<BsonRequest,BsonResponse> - Returns:
- the Consumer used to instantiate the response object
-
request
- Specified by:
requestin interfaceService<BsonRequest,BsonResponse> - Returns:
- the Function used to retrieve the request object
-
response
- Specified by:
responsein interfaceService<BsonRequest,BsonResponse> - Returns:
- the Function used to retrieve the response object
-