Package io.undertow.servlet.attribute
Class ServletNameAttribute
- java.lang.Object
-
- io.undertow.servlet.attribute.ServletNameAttribute
-
- All Implemented Interfaces:
ExchangeAttribute
public class ServletNameAttribute extends Object implements ExchangeAttribute
The current servlet name- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServletNameAttribute.Builder
-
Field Summary
Fields Modifier and Type Field Description static ExchangeAttributeINSTANCEstatic StringNAMEstatic StringSERVLET_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringreadAttribute(HttpServerExchange exchange)StringtoString()voidwriteAttribute(HttpServerExchange exchange, String newValue)
-
-
-
Field Detail
-
SERVLET_NAME
public static final String SERVLET_NAME
- See Also:
- Constant Field Values
-
INSTANCE
public static final ExchangeAttribute INSTANCE
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
readAttribute
public String readAttribute(HttpServerExchange exchange)
- Specified by:
readAttributein interfaceExchangeAttribute
-
writeAttribute
public void writeAttribute(HttpServerExchange exchange, String newValue) throws ReadOnlyAttributeException
- Specified by:
writeAttributein interfaceExchangeAttribute- Throws:
ReadOnlyAttributeException
-
-