Class ServletNameAttribute

  • All Implemented Interfaces:
    io.undertow.attribute.ExchangeAttribute

    public class ServletNameAttribute
    extends java.lang.Object
    implements io.undertow.attribute.ExchangeAttribute
    The current servlet name
    Author:
    Stuart Douglas
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static io.undertow.attribute.ExchangeAttribute INSTANCE  
      static java.lang.String NAME  
      static java.lang.String SERVLET_NAME  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String readAttribute​(io.undertow.server.HttpServerExchange exchange)  
      java.lang.String toString()  
      void writeAttribute​(io.undertow.server.HttpServerExchange exchange, java.lang.String newValue)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • INSTANCE

        public static final io.undertow.attribute.ExchangeAttribute INSTANCE
    • Method Detail

      • readAttribute

        public java.lang.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,
                                   java.lang.String newValue)
                            throws io.undertow.attribute.ReadOnlyAttributeException
        Specified by:
        writeAttribute in interface io.undertow.attribute.ExchangeAttribute
        Throws:
        io.undertow.attribute.ReadOnlyAttributeException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object