Package io.undertow.attribute
Class RequestLineAttribute
- java.lang.Object
-
- io.undertow.attribute.RequestLineAttribute
-
- All Implemented Interfaces:
ExchangeAttribute
public class RequestLineAttribute extends java.lang.Object implements ExchangeAttribute
The request line- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRequestLineAttribute.Builder
-
Field Summary
Fields Modifier and Type Field Description static ExchangeAttributeINSTANCEstatic java.lang.StringREQUEST_LINEstatic java.lang.StringREQUEST_LINE_SHORT
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringreadAttribute(HttpServerExchange exchange)Resolve the attribute from the HTTP server exchange.java.lang.StringtoString()voidwriteAttribute(HttpServerExchange exchange, java.lang.String newValue)Sets a new value for the attribute.
-
-
-
Field Detail
-
REQUEST_LINE_SHORT
public static final java.lang.String REQUEST_LINE_SHORT
- See Also:
- Constant Field Values
-
REQUEST_LINE
public static final java.lang.String REQUEST_LINE
- See Also:
- Constant Field Values
-
INSTANCE
public static final ExchangeAttribute INSTANCE
-
-
Method Detail
-
readAttribute
public java.lang.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, java.lang.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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-