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
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMiddleware(Middleware middleware) voidaddMiddlewares(Middleware... middlewares) voidaddMiddlewares(List<Middleware> middlewares) static HandlerStackcreate(HttpHandler handler) static HandlerStackcreate(HttpHandler handler, List<Middleware> middlewares) CompletableFuture<ApiHttpResponse<byte[]>>execute(ApiHttpRequest request) CompletableFuture<ApiHttpResponse<byte[]>>invoke(ApiHttpRequest request) inttoString()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:
executein interfaceVrapHttpClient
-
invoke
-
toString
-
reflectionHashCode
public int reflectionHashCode()
-