Class ServletContextAttribute

java.lang.Object
io.undertow.servlet.attribute.ServletContextAttribute
All Implemented Interfaces:
io.undertow.attribute.ExchangeAttribute

public class ServletContextAttribute extends Object implements io.undertow.attribute.ExchangeAttribute
An attribute in the servlet request
Author:
Stuart Douglas
  • Constructor Details

    • ServletContextAttribute

      public ServletContextAttribute(String attributeName)
  • Method Details

    • readAttribute

      public String readAttribute(io.undertow.server.HttpServerExchange exchange)
      Specified by:
      readAttribute in interface io.undertow.attribute.ExchangeAttribute
    • writeAttribute

      public void writeAttribute(io.undertow.server.HttpServerExchange exchange, String newValue) throws io.undertow.attribute.ReadOnlyAttributeException
      Specified by:
      writeAttribute in interface io.undertow.attribute.ExchangeAttribute
      Throws:
      io.undertow.attribute.ReadOnlyAttributeException
    • toString

      public String toString()
      Overrides:
      toString in class Object