Package io.undertow.attribute
Class TransportProtocolAttribute
- java.lang.Object
-
- io.undertow.attribute.TransportProtocolAttribute
-
- All Implemented Interfaces:
ExchangeAttribute
@Deprecated public class TransportProtocolAttribute extends java.lang.Object implements ExchangeAttribute
Deprecated.Please useRequestProtocolAttribute
The request method- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TransportProtocolAttribute.Builder
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description static ExchangeAttribute
INSTANCE
Deprecated.static java.lang.String
TRANSPORT_PROTOCOL
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
readAttribute(HttpServerExchange exchange)
Deprecated.Resolve the attribute from the HTTP server exchange.java.lang.String
toString()
Deprecated.void
writeAttribute(HttpServerExchange exchange, java.lang.String newValue)
Deprecated.Sets a new value for the attribute.
-
-
-
Field Detail
-
TRANSPORT_PROTOCOL
public static final java.lang.String TRANSPORT_PROTOCOL
Deprecated.- See Also:
- Constant Field Values
-
INSTANCE
public static final ExchangeAttribute INSTANCE
Deprecated.
-
-
Method Detail
-
readAttribute
public java.lang.String readAttribute(HttpServerExchange exchange)
Deprecated.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, java.lang.String newValue) throws ReadOnlyAttributeException
Deprecated.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
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-