Package io.undertow.servlet.attribute
Class ServletSessionIdAttribute
java.lang.Object
io.undertow.servlet.attribute.ServletSessionIdAttribute
- All Implemented Interfaces:
ExchangeAttribute
The request session ID
- Author:
- Stuart Douglas
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ServletSessionIdAttributestatic final Stringstatic 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
-
SESSION_ID_SHORT
- See Also:
-
SESSION_ID
- See Also:
-
INSTANCE
-
-
Constructor Details
-
ServletSessionIdAttribute
public ServletSessionIdAttribute()
-
-
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
-