Interface ExchangeAttribute

    • Method Detail

      • readAttribute

        java.lang.String readAttribute​(HttpServerExchange 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​(HttpServerExchange exchange,
                            java.lang.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