Class B2HeadersImpl

  • All Implemented Interfaces:
    B2Headers

    public class B2HeadersImpl
    extends java.lang.Object
    implements B2Headers
    B2HeadersImpl implements the B2Headers interface.
    • Method Detail

      • getNames

        public java.util.Collection<java.lang.String> getNames()
        Specified by:
        getNames in interface B2Headers
        Returns:
        a collection with the names of all the headers in this object. never null.
      • getValueOrNull

        public java.lang.String getValueOrNull​(java.lang.String name)
        Specified by:
        getValueOrNull in interface B2Headers
        Returns:
        the value for the given header name, or null if none.
      • builder

        public static B2HeadersImpl.Builder builder()
        Returns:
        a new builder with no headers set yet.
      • builder

        public static B2HeadersImpl.Builder builder​(B2Headers headersOrNull)
        Parameters:
        headersOrNull - if non-null, the headers to prepopulate in the builder.
        Returns:
        a new builder. if headersOrNull != null, the values from those headers will have already been set on the returned builder.
      • toString

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