Class RequestURLAttribute
- java.lang.Object
-
- io.quarkus.vertx.http.runtime.attribute.RequestURLAttribute
-
- All Implemented Interfaces:
ExchangeAttribute
public class RequestURLAttribute extends Object implements ExchangeAttribute
The request URL
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRequestURLAttribute.Builder
-
Field Summary
Fields Modifier and Type Field Description static ExchangeAttributeINSTANCEstatic StringREQUEST_URLstatic StringREQUEST_URL_SHORT
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringreadAttribute(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 Detail
-
REQUEST_URL_SHORT
public static final String REQUEST_URL_SHORT
- See Also:
- Constant Field Values
-
REQUEST_URL
public static final String REQUEST_URL
- See Also:
- Constant Field Values
-
INSTANCE
public static final ExchangeAttribute INSTANCE
-
-
Method Detail
-
readAttribute
public String readAttribute(io.vertx.ext.web.RoutingContext 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(io.vertx.ext.web.RoutingContext exchange, String newValue) throws ReadOnlyAttributeExceptionDescription 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
-
-