Class HeaderValue

java.lang.Object
software.amazon.awssdk.eventstream.HeaderValue

@SdkProtectedApi public abstract class HeaderValue extends Object
A typed header value. The underlying value can be obtained by calling the appropriate getter.
  • Method Details

    • fromBoolean

      public static HeaderValue fromBoolean(boolean value)
    • fromByte

      public static HeaderValue fromByte(byte value)
    • fromShort

      public static HeaderValue fromShort(short value)
    • fromInteger

      public static HeaderValue fromInteger(int value)
    • fromLong

      public static HeaderValue fromLong(long value)
    • fromByteArray

      public static HeaderValue fromByteArray(byte[] bytes)
    • fromByteBuffer

      public static HeaderValue fromByteBuffer(ByteBuffer buf)
    • fromString

      public static HeaderValue fromString(String string)
    • fromTimestamp

      public static HeaderValue fromTimestamp(Instant value)
    • fromDate

      public static HeaderValue fromDate(Date value)
    • fromUuid

      public static HeaderValue fromUuid(UUID value)
    • getType

      public abstract HeaderType getType()
    • getBoolean

      public boolean getBoolean()
    • getByte

      public byte getByte()
    • getShort

      public short getShort()
    • getInteger

      public int getInteger()
    • getLong

      public long getLong()
    • getByteArray

      public byte[] getByteArray()
    • getByteBuffer

      public final ByteBuffer getByteBuffer()
    • getString

      public String getString()
    • getTimestamp

      public Instant getTimestamp()
    • getDate

      public Date getDate()
    • getUuid

      public UUID getUuid()
    • encode

      public void encode(DataOutputStream dos) throws IOException
      Throws:
      IOException
    • decode

      public static HeaderValue decode(ByteBuffer buf)