Package org.restheart.plugins
Interface BsonService
-
- All Superinterfaces:
ConfigurablePlugin,ExchangeTypeResolver<BsonRequest,BsonResponse>,HandlingPlugin<BsonRequest,BsonResponse>,Plugin,Service<BsonRequest,BsonResponse>
public interface BsonService extends Service<BsonRequest,BsonResponse>
Specialized Service interface that uses BsonRequest and BsonResponse- Author:
- Andrea Di Cesare
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Function<io.undertow.server.HttpServerExchange,BsonRequest>request()default Consumer<io.undertow.server.HttpServerExchange>requestInitializer()default Function<io.undertow.server.HttpServerExchange,BsonResponse>response()default Consumer<io.undertow.server.HttpServerExchange>responseInitializer()-
Methods inherited from interface org.restheart.plugins.ExchangeTypeResolver
requestType, responseType
-
Methods inherited from interface org.restheart.plugins.Service
handle, handleOptions
-
-
-
-
Method Detail
-
requestInitializer
default Consumer<io.undertow.server.HttpServerExchange> requestInitializer()
- Specified by:
requestInitializerin interfaceService<BsonRequest,BsonResponse>- Returns:
- the function used to instantiate the request object
-
responseInitializer
default Consumer<io.undertow.server.HttpServerExchange> responseInitializer()
- Specified by:
responseInitializerin interfaceService<BsonRequest,BsonResponse>- Returns:
- the function used to instantiate the response object
-
request
default Function<io.undertow.server.HttpServerExchange,BsonRequest> request()
- Specified by:
requestin interfaceService<BsonRequest,BsonResponse>- Returns:
- the function used to retrieve the request object
-
response
default Function<io.undertow.server.HttpServerExchange,BsonResponse> response()
- Specified by:
responsein interfaceService<BsonRequest,BsonResponse>- Returns:
- the function used to retrieve the response object
-
-