Package org.restheart.plugins
Interface JsonService
-
- All Superinterfaces:
ConfigurablePlugin,ExchangeTypeResolver<JsonRequest,JsonResponse>,HandlingPlugin<JsonRequest,JsonResponse>,Plugin,Service<JsonRequest,JsonResponse>
public interface JsonService extends Service<JsonRequest,JsonResponse>
Specialized Service interface that uses JsonRequest and JsonResponse- Author:
- Andrea Di Cesare
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Function<io.undertow.server.HttpServerExchange,JsonRequest>request()default Consumer<io.undertow.server.HttpServerExchange>requestInitializer()default Function<io.undertow.server.HttpServerExchange,JsonResponse>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<JsonRequest,JsonResponse>- Returns:
- the function used to instantiate the request object
-
responseInitializer
default Consumer<io.undertow.server.HttpServerExchange> responseInitializer()
- Specified by:
responseInitializerin interfaceService<JsonRequest,JsonResponse>- Returns:
- the function used to instantiate the response object
-
request
default Function<io.undertow.server.HttpServerExchange,JsonRequest> request()
- Specified by:
requestin interfaceService<JsonRequest,JsonResponse>- Returns:
- the function used to retrieve the request object
-
response
default Function<io.undertow.server.HttpServerExchange,JsonResponse> response()
- Specified by:
responsein interfaceService<JsonRequest,JsonResponse>- Returns:
- the function used to retrieve the response object
-
-