Class EmbeddedFileHeader
java.lang.Object
org.sentrysoftware.metricshub.engine.client.http.EmbeddedFileHeader
- All Implemented Interfaces:
Serializable,Header
Represents the header of an HTTP request containing an embedded file.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Performs a deep copyGets the HTTP header string descriptiongetContent(String username, char[] password, String authenticationToken, @NonNull String hostname) Gets the HTTP header content asMapand performs macro replacementsvoidupdate(UnaryOperator<String> updater) Updates the actual header attributes
-
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:HeaderGets the HTTP header content asMapand performs macro replacements- Specified by:
getContentin interfaceHeader- Parameters:
username- HTTP usernamepassword- HTTP passwordauthenticationToken- HTTP authentication tokenhostname- HTTP server's hostname- Returns:
- header entries as
Map
-
copy
Description copied from interface:HeaderPerforms a deep copy -
description
Description copied from interface:HeaderGets the HTTP header string description- Specified by:
descriptionin interfaceHeader- Returns:
- string value
-
update
Description copied from interface:HeaderUpdates the actual header attributes
-