Package io.undertow.attribute
Class TransportProtocolAttribute
- java.lang.Object
-
- io.undertow.attribute.TransportProtocolAttribute
-
- All Implemented Interfaces:
ExchangeAttribute
@Deprecated public class TransportProtocolAttribute extends Object implements ExchangeAttribute
Deprecated.Please useRequestProtocolAttributeThe request method- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransportProtocolAttribute.BuilderDeprecated.
-
Field Summary
Fields Modifier and Type Field Description static ExchangeAttributeINSTANCEDeprecated.static StringTRANSPORT_PROTOCOLDeprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringreadAttribute(HttpServerExchange exchange)Deprecated.Resolve the attribute from the HTTP server exchange.StringtoString()Deprecated.voidwriteAttribute(HttpServerExchange exchange, String newValue)Deprecated.Sets a new value for the attribute.
-
-
-
Field Detail
-
TRANSPORT_PROTOCOL
public static final String TRANSPORT_PROTOCOL
Deprecated.- See Also:
- Constant Field Values
-
INSTANCE
public static final ExchangeAttribute INSTANCE
Deprecated.
-
-
Method Detail
-
readAttribute
public String readAttribute(HttpServerExchange exchange)
Deprecated.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
Deprecated.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
-
-