Package io.undertow.servlet.attribute
Class ServletRequestCharacterEncodingAttribute
java.lang.Object
io.undertow.servlet.attribute.ServletRequestCharacterEncodingAttribute
- All Implemented Interfaces:
ExchangeAttribute
The request session ID
- Author:
- Stuart Douglas
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ServletRequestCharacterEncodingAttributestatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadAttribute(HttpServerExchange exchange) Resolve the attribute from the HTTP server exchange.toString()voidwriteAttribute(HttpServerExchange exchange, String newValue) Sets a new value for the attribute.
-
Field Details
-
REQUEST_CHARACTER_ENCODING
- See Also:
-
INSTANCE
-
-
Constructor Details
-
ServletRequestCharacterEncodingAttribute
public ServletRequestCharacterEncodingAttribute()
-
-
Method Details
-
readAttribute
Description copied from interface:ExchangeAttributeResolve the attribute from the HTTP server exchange. This may return null if the attribute is not present.- Specified by:
readAttributein interfaceExchangeAttribute- Parameters:
exchange- The exchange- Returns:
- The attribute
-
writeAttribute
public void writeAttribute(HttpServerExchange exchange, String newValue) throws ReadOnlyAttributeException Description copied from interface:ExchangeAttributeSets a new value for the attribute. Not all attributes are writable.- Specified by:
writeAttributein interfaceExchangeAttribute- Parameters:
exchange- The exchangenewValue- The new value for the attribute- Throws:
ReadOnlyAttributeException- when attribute cannot be written
-
toString
-