Class ProxyContext


  • public class ProxyContext
    extends Object
    A controller for proxy interception.

    NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

    • Field Detail

      • __TYPE_ARG

        public static final io.vertx.lang.rx.TypeArg<ProxyContext> __TYPE_ARG
    • Constructor Detail

      • ProxyContext

        public ProxyContext​(ProxyContext delegate)
      • ProxyContext

        public ProxyContext​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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
      • sendResponse

        public Completable sendResponse()
        Returns:
      • rxSendResponse

        public Completable rxSendResponse()
        Returns:
      • isWebSocket

        public boolean isWebSocket()
        Returns:
        if this request or response is the handshake of WebSocket
      • set

        public void set​(String name,
                        Object value)
        Attach a payload to the context
        Parameters:
        name - the payload name
        value - any payload value
      • get

        public <T> T get​(String name,
                         Class<T> type)
        Get a payload attached to this context
        Parameters:
        name - the payload name
        type - the expected payload type
        Returns:
        the attached payload