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