Package io.vrap.rmf.base.client.http
Class HandlerStack
java.lang.Object
io.vrap.rmf.base.client.AutoCloseableService
io.vrap.rmf.base.client.http.HandlerStack
- All Implemented Interfaces:
VrapHttpClient
,AutoCloseable
The HandlerStack is used to execute the middlewares in order and transfer the request using the specified
HttpHandler
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMiddleware
(Middleware middleware) void
addMiddlewares
(Middleware... middlewares) void
addMiddlewares
(List<Middleware> middlewares) static HandlerStack
create
(HttpHandler handler) static HandlerStack
create
(HttpHandler handler, List<Middleware> middlewares) CompletableFuture<ApiHttpResponse<byte[]>>
execute
(ApiHttpRequest request) CompletableFuture<ApiHttpResponse<byte[]>>
invoke
(ApiHttpRequest request) int
toString()
Methods inherited from class io.vrap.rmf.base.client.AutoCloseableService
close, closeQuietly, equals, hashCode
-
Field Details
-
CLOSED_MESSAGE
-
-
Method Details
-
create
-
create
-
addMiddleware
-
addMiddlewares
-
addMiddlewares
-
execute
- Specified by:
execute
in interfaceVrapHttpClient
-
invoke
-
toString
-
reflectionHashCode
public int reflectionHashCode()
-