Class ProxyContext
- All Implemented Interfaces:
MutinyDelegate
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProxyContext
(io.vertx.httpproxy.ProxyContext delegate) ProxyContext
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
<T> T
io.vertx.httpproxy.ProxyContext
int
hashCode()
static ProxyContext
newInstance
(io.vertx.httpproxy.ProxyContext arg) request()
response()
io.smallrye.mutiny.Uni<ProxyResponse>
Unlike the bare Vert.x variant, this method returns aUni
.Blocking variant ofsendRequest()
.void
Variant ofsendRequest()
that ignores the result of the operation.io.smallrye.mutiny.Uni<Void>
Unlike the bare Vert.x variant, this method returns aUni
.Blocking variant ofsendResponse()
.void
Variant ofsendResponse()
that ignores the result of the operation.void
toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
ProxyContext
public ProxyContext(io.vertx.httpproxy.ProxyContext delegate) -
ProxyContext
-
-
Method Details
-
getDelegate
public io.vertx.httpproxy.ProxyContext getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
request
- Returns:
- the proxy request
-
response
- Returns:
- the proxy response, it might be
null
if the response has not been sent
-
sendRequest
Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
sendRequestAndAwait
Blocking variant ofsendRequest()
.This method waits 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 a RuntimeException).
- Returns:
- the ProxyResponse instance produced by the operation.
-
sendRequestAndForget
public void sendRequestAndForget()Variant ofsendRequest()
that ignores the result of the operation.This method subscribes on the result of
sendRequest()
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromsendRequest()
but you don't need to compose it with other operations. -
sendResponse
Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
sendResponseAndAwait
Blocking variant ofsendResponse()
.This method waits 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 a RuntimeException).
- Returns:
- the Void instance produced by the operation.
-
sendResponseAndForget
public void sendResponseAndForget()Variant ofsendResponse()
that ignores the result of the operation.This method subscribes on the result of
sendResponse()
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromsendResponse()
but you don't need to compose it with other operations. -
set
- Parameters:
name
- the payload namevalue
- any payload value
-
get
- Parameters:
name
- the payload nametype
- the expected payload type- Returns:
- the attached payload
-
newInstance
-