Package io.undertow.servlet.attribute
Class ServletRequestAttribute
- java.lang.Object
-
- io.undertow.servlet.attribute.ServletRequestAttribute
-
- All Implemented Interfaces:
ExchangeAttribute
public class ServletRequestAttribute extends Object implements ExchangeAttribute
An attribute in the servlet request- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServletRequestAttribute.Builder
-
Constructor Summary
Constructors Constructor Description ServletRequestAttribute(String attributeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringreadAttribute(HttpServerExchange exchange)StringtoString()voidwriteAttribute(HttpServerExchange exchange, String newValue)
-
-
-
Constructor Detail
-
ServletRequestAttribute
public ServletRequestAttribute(String attributeName)
-
-
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
-
-