Class ProxyInterceptor
- All Implemented Interfaces:
MutinyDelegate
HttpProxy interceptor.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- See Also:
-
ProxyInterceptor
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProxyInterceptor(io.vertx.httpproxy.ProxyInterceptor delegate) Create a new instance ofProxyInterceptordelegating to the given (non-null) instance ofProxyInterceptor.ProxyInterceptor(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic ProxyInterceptorBuilderbuilder()Create a builder for implementing common HTTP interception hooks such as modifying headers or transforming the HTTP entity stream.booleanio.vertx.httpproxy.ProxyInterceptorGet the delegate instance.io.smallrye.mutiny.Uni<ProxyResponse>handleProxyRequest(ProxyContext context) Handle the proxy request at the stage of this interceptor.handleProxyRequestAndAwait(ProxyContext context) Handle the proxy request at the stage of this interceptor.handleProxyRequestAndForget(ProxyContext context) Handle the proxy request at the stage of this interceptor.io.smallrye.mutiny.Uni<Void>handleProxyResponse(ProxyContext context) Handle the proxy response at the stage of this interceptor.voidhandleProxyResponseAndAwait(ProxyContext context) Handle the proxy response at the stage of this interceptor.handleProxyResponseAndForget(ProxyContext context) Handle the proxy response at the stage of this interceptor.inthashCode()static ProxyInterceptornewInstance(io.vertx.httpproxy.ProxyInterceptor delegate) Creates a new instance of theProxyInterceptor.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
ProxyInterceptor
public ProxyInterceptor(io.vertx.httpproxy.ProxyInterceptor delegate) Create a new instance ofProxyInterceptordelegating to the given (non-null) instance ofProxyInterceptor. -
ProxyInterceptor
-
-
Method Details
-
getDelegate
public io.vertx.httpproxy.ProxyInterceptor getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
handleProxyRequest
@CheckReturnValue public io.smallrye.mutiny.Uni<ProxyResponse> handleProxyRequest(ProxyContext context) Handle the proxy request at the stage of this interceptor.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
context- the proxy context- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
io.vertx.httpproxy.ProxyInterceptor#handleProxyRequest(ProxyContext)
-
handleProxyRequestAndAwait
Handle the proxy request at the stage of this interceptor.Unlike the bare Vert.x variant, this method returns a
ProxyResponse. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
context- the proxy context- Returns:
- The operation result
- See Also:
-
io.vertx.httpproxy.ProxyInterceptor#handleProxyRequest(ProxyContext)
-
handleProxyRequestAndForget
Handle the proxy request at the stage of this interceptor.Unlike the bare Vert.x variant, this method ignores the
ProxyResponseresult or any failure.- Parameters:
context- the proxy context- Returns:
- The current instance to chain operations if needed.
- See Also:
-
io.vertx.httpproxy.ProxyInterceptor#handleProxyRequest(ProxyContext)
-
handleProxyResponse
Handle the proxy response at the stage of this interceptor.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
context- the proxy context- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
io.vertx.httpproxy.ProxyInterceptor#handleProxyResponse(ProxyContext)
-
handleProxyResponseAndAwait
Handle the proxy response at the stage of this interceptor.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
context- the proxy context- See Also:
-
io.vertx.httpproxy.ProxyInterceptor#handleProxyResponse(ProxyContext)
-
handleProxyResponseAndForget
Handle the proxy response at the stage of this interceptor.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
context- the proxy context- Returns:
- The current instance to chain operations if needed.
- See Also:
-
io.vertx.httpproxy.ProxyInterceptor#handleProxyResponse(ProxyContext)
-
builder
Create a builder for implementing common HTTP interception hooks such as modifying headers or transforming the HTTP entity stream.- Returns:
- a builder for common interception
-
newInstance
Creates a new instance of theProxyInterceptor. -
hashCode
public int hashCode() -
equals
-
toString
-