Class BytesSentAttribute
- java.lang.Object
-
- io.quarkus.vertx.http.runtime.attribute.BytesSentAttribute
-
- All Implemented Interfaces:
ExchangeAttribute
public class BytesSentAttribute extends Object implements ExchangeAttribute
The bytes sent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BytesSentAttribute.Builder
-
Field Summary
Fields Modifier and Type Field Description static String
BYTES_SENT
static String
BYTES_SENT_SHORT_LOWER
static String
BYTES_SENT_SHORT_UPPER
-
Constructor Summary
Constructors Constructor Description BytesSentAttribute(boolean dashIfZero)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
readAttribute(io.vertx.ext.web.RoutingContext exchange)
Resolve the attribute from the HTTP server exchange.void
writeAttribute(io.vertx.ext.web.RoutingContext exchange, String newValue)
Sets a new value for the attribute.
-
-
-
Field Detail
-
BYTES_SENT_SHORT_UPPER
public static final String BYTES_SENT_SHORT_UPPER
- See Also:
- Constant Field Values
-
BYTES_SENT_SHORT_LOWER
public static final String BYTES_SENT_SHORT_LOWER
- See Also:
- Constant Field Values
-
BYTES_SENT
public static final String BYTES_SENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
readAttribute
public String readAttribute(io.vertx.ext.web.RoutingContext exchange)
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(io.vertx.ext.web.RoutingContext exchange, String newValue) throws ReadOnlyAttributeException
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
-
-