Interface ExchangeAttribute

    • Method Detail

      • readAttribute

        String readAttribute​(io.vertx.ext.web.RoutingContext exchange)
        Resolve the attribute from the HTTP server exchange. This may return null if the attribute is not present.
        Parameters:
        exchange - The exchange
        Returns:
        The attribute
      • writeAttribute

        void writeAttribute​(io.vertx.ext.web.RoutingContext exchange,
                            String newValue)
                     throws ReadOnlyAttributeException
        Sets a new value for the attribute. Not all attributes are writable.
        Parameters:
        exchange - The exchange
        newValue - The new value for the attribute
        Throws:
        ReadOnlyAttributeException - when attribute cannot be written