Package io.undertow.servlet.attribute
Class ServletRequestedSessionIdFromCookieAttribute
- java.lang.Object
-
- io.undertow.servlet.attribute.ServletRequestedSessionIdFromCookieAttribute
-
- All Implemented Interfaces:
ExchangeAttribute
public class ServletRequestedSessionIdFromCookieAttribute extends Object implements ExchangeAttribute
The request session ID- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServletRequestedSessionIdFromCookieAttribute.Builder
-
Field Summary
Fields Modifier and Type Field Description static ServletRequestedSessionIdFromCookieAttributeINSTANCEstatic StringREQUESTED_SESSION_ID_FROM_COOKIE
-
Constructor Summary
Constructors Constructor Description ServletRequestedSessionIdFromCookieAttribute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringreadAttribute(HttpServerExchange exchange)Resolve the attribute from the HTTP server exchange.voidwriteAttribute(HttpServerExchange exchange, String newValue)Sets a new value for the attribute.
-
-
-
Field Detail
-
REQUESTED_SESSION_ID_FROM_COOKIE
public static final String REQUESTED_SESSION_ID_FROM_COOKIE
- See Also:
- Constant Field Values
-
INSTANCE
public static final ServletRequestedSessionIdFromCookieAttribute INSTANCE
-
-
Method Detail
-
readAttribute
public String readAttribute(HttpServerExchange exchange)
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
-
-