Class EmbeddedFileBody
java.lang.Object
org.sentrysoftware.metricshub.engine.client.http.EmbeddedFileBody
- All Implemented Interfaces:
Serializable,Body
Represents the body of an HTTP request containing an embedded file.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Performs a deep copy of the body.Gets a string description of the HTTP body.getContent(String username, char[] password, String authenticationToken, @NonNull String hostname) Gets the HTTP body content as a string and performs macro replacements.voidupdate(UnaryOperator<String> updater) Updates the actual body attributes using the provided updater function.
-
Constructor Details
-
EmbeddedFileBody
public EmbeddedFileBody()
-
-
Method Details
-
getContent
public String getContent(String username, char[] password, String authenticationToken, @NonNull @NonNull String hostname) Description copied from interface:BodyGets the HTTP body content as a string and performs macro replacements.- Specified by:
getContentin interfaceBody- Parameters:
username- The HTTP usernamepassword- The HTTP password as a character arrayauthenticationToken- The HTTP authentication tokenhostname- The remote hostname- Returns:
- The HTTP body content with resolved and parsed HTTP macros
-
copy
Description copied from interface:BodyPerforms a deep copy of the body. -
description
Description copied from interface:BodyGets a string description of the HTTP body.- Specified by:
descriptionin interfaceBody- Returns:
- The content of the HTTP body as a string
-
update
Description copied from interface:BodyUpdates the actual body attributes using the provided updater function.
-