Class EmbeddedFileHeader

java.lang.Object
org.sentrysoftware.metricshub.engine.client.http.EmbeddedFileHeader
All Implemented Interfaces:
Serializable, Header

public class EmbeddedFileHeader extends Object implements Header
Represents the header of an HTTP request containing an embedded file.
See Also:
  • Constructor Details

    • EmbeddedFileHeader

      public EmbeddedFileHeader()
  • Method Details

    • getContent

      public Map<String,String> getContent(String username, char[] password, String authenticationToken, @NonNull @NonNull String hostname)
      Description copied from interface: Header
      Gets the HTTP header content as Map and performs macro replacements
      Specified by:
      getContent in interface Header
      Parameters:
      username - HTTP username
      password - HTTP password
      authenticationToken - HTTP authentication token
      hostname - HTTP server's hostname
      Returns:
      header entries as Map
    • copy

      public Header copy()
      Description copied from interface: Header
      Performs a deep copy
      Specified by:
      copy in interface Header
      Returns:
      new Header instance
    • description

      public String description()
      Description copied from interface: Header
      Gets the HTTP header string description
      Specified by:
      description in interface Header
      Returns:
      string value
    • update

      public void update(UnaryOperator<String> updater)
      Description copied from interface: Header
      Updates the actual header attributes
      Specified by:
      update in interface Header
      Parameters:
      updater - updater function