Class BytesSentAttribute

  • All Implemented Interfaces:
    ExchangeAttribute

    public class BytesSentAttribute
    extends java.lang.Object
    implements ExchangeAttribute
    The bytes sent
    Author:
    Filipe Ferraz
    • Field Detail

      • BYTES_SENT_SHORT_UPPER

        public static final java.lang.String BYTES_SENT_SHORT_UPPER
        See Also:
        Constant Field Values
      • BYTES_SENT_SHORT_LOWER

        public static final java.lang.String BYTES_SENT_SHORT_LOWER
        See Also:
        Constant Field Values
    • Constructor Detail

      • BytesSentAttribute

        public BytesSentAttribute​(boolean dashIfZero)
    • Method Detail

      • readAttribute

        public java.lang.String readAttribute​(HttpServerExchange 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 interface ExchangeAttribute
        Parameters:
        exchange - The exchange
        Returns:
        The attribute
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object