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