Class HttpHeader

java.lang.Object
com.luciad.net.http.HttpHeader
All Implemented Interfaces:
AutoCloseable

public final class HttpHeader extends Object implements AutoCloseable
A class representing an HTTP header and its value.

HttpHeader instances are immutable.

Since:
2023.0
  • Constructor Details Link icon

    • HttpHeader Link icon

      public HttpHeader(@NotNull String name, @NotNull String value)
      Creates a HTTP header with the given name and value.
      Parameters:
      name - the HTTP header name.
      value - the HTTP header value.
  • Method Details Link icon

    • finalize Link icon

      protected void finalize()
      Overrides:
      finalize in class Object
    • close Link icon

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getName Link icon

      @NotNull public String getName()
      Returns the name of this HTTP header.
      Returns:
      the name of this HTTP header.
    • getValue Link icon

      @NotNull public String getValue()
      Returns the value of this HTTP header.
      Returns:
      the value of this HTTP header.
    • toString Link icon

      @NotNull public String toString()
      Overrides:
      toString in class Object
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals Link icon

      public boolean equals(@Nullable Object other)
      Overrides:
      equals in class Object