Class RequestProtocolAttribute
java.lang.Object
io.quarkus.vertx.http.runtime.attribute.RequestProtocolAttribute
- All Implemented Interfaces:
ExchangeAttribute
The request getProtocol
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExchangeAttributestatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionreadAttribute(io.vertx.ext.web.RoutingContext exchange) Resolve the attribute from the HTTP server exchange.voidwriteAttribute(io.vertx.ext.web.RoutingContext exchange, String newValue) Sets a new value for the attribute.
-
Field Details
-
REQUEST_PROTOCOL_SHORT
- See Also:
-
REQUEST_PROTOCOL
- See Also:
-
INSTANCE
-
-
Method Details
-
readAttribute
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(io.vertx.ext.web.RoutingContext 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
-