Package io.vertx.rxjava3.httpproxy
Class ProxyContext
- java.lang.Object
-
- io.vertx.rxjava3.httpproxy.ProxyContext
-
- All Implemented Interfaces:
RxDelegate
public class ProxyContext extends Object implements RxDelegate
A controller for proxy interception. NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<ProxyContext>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description ProxyContext(ProxyContext delegate)
ProxyContext(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
<T> T
get(String name, Class<T> type)
Get a payload attached to this contextProxyContext
getDelegate()
int
hashCode()
static ProxyContext
newInstance(ProxyContext arg)
ProxyRequest
request()
ProxyResponse
response()
io.reactivex.rxjava3.core.Single<ProxyResponse>
rxSendRequest()
io.reactivex.rxjava3.core.Completable
rxSendResponse()
io.reactivex.rxjava3.core.Single<ProxyResponse>
sendRequest()
io.reactivex.rxjava3.core.Completable
sendResponse()
void
set(String name, Object value)
Attach a payload to the contextString
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<ProxyContext> __TYPE_ARG
-
-
Constructor Detail
-
ProxyContext
public ProxyContext(ProxyContext delegate)
-
ProxyContext
public ProxyContext(Object delegate)
-
-
Method Detail
-
getDelegate
public ProxyContext getDelegate()
- Specified by:
getDelegate
in interfaceRxDelegate
-
request
public ProxyRequest request()
- Returns:
- the proxy request
-
response
public ProxyResponse response()
- Returns:
- the proxy response, it might be
null
if the response has not been sent
-
sendRequest
public io.reactivex.rxjava3.core.Single<ProxyResponse> sendRequest()
- Returns:
-
rxSendRequest
public io.reactivex.rxjava3.core.Single<ProxyResponse> rxSendRequest()
- Returns:
-
sendResponse
public io.reactivex.rxjava3.core.Completable sendResponse()
- Returns:
-
rxSendResponse
public io.reactivex.rxjava3.core.Completable rxSendResponse()
- Returns:
-
set
public void set(String name, Object value)
Attach a payload to the context- Parameters:
name
- the payload namevalue
- any payload value
-
get
public <T> T get(String name, Class<T> type)
Get a payload attached to this context- Parameters:
name
- the payload nametype
- the expected payload type- Returns:
- the attached payload
-
newInstance
public static ProxyContext newInstance(ProxyContext arg)
-
-