saker.nest Documentation TaskDoc JavaDoc Packages
public static final class ExternalAttachmentInformation.Builder
Methods
public Builder
Adds an entry wildcard.
public Builder
addMetaData(String name, String content)
Adda a meta-data entry.
public Builder
Adds a target entry wildcard.
public ExternalAttachmentInformation
Builds the external attachment information.
public String
Gets the MD5 hash previously set using setMd5Hash(String).
public String
Gets the SHA-1 hash previously set using setSha1Hash(String).
public String
Gets the SHA-256 hash previously set using setSha256Hash(String).
public boolean
Checks if a meta-data with the given name is already present.
public Builder
setIncludesMainArchive(boolean includesMainArchive)
Sets if the main archive is included or not.
public Builder
Sets the MD5 hash.
public Builder
Sets the SHA-1 hash.
public Builder
setSha256Hash(String sha256Hash)
Sets the SHA-256 hash.
public Builder
setTargetsMainArchive(boolean targetsMainArchive)
Sets if the main archive is targeted or not.
Adds an entry wildcard.
wildcardThe wildcard.
this
NullPointerExceptionIf the argument is null.
Adda a meta-data entry.
nameThe name of the meta-data.
contentThe value of the meta-data.
this
NullPointerExceptionIf any of the arguments are null.
IllegalArgumentExceptionIf the format of the meta-data name is inappropriate. See BundleDependency.isValidMetaDataName(String).
Adds a target entry wildcard.
wildcardThe wildcard.
this
NullPointerExceptionIf the argument is null.
Builds the external attachment information.

The builder can be reused after this call.

Gets the MD5 hash previously set using setMd5Hash(String).
The hash or null if none.
Gets the SHA-1 hash previously set using setSha1Hash(String).
The hash or null if none.
Gets the SHA-256 hash previously set using setSha256Hash(String).
The hash or null if none.
public boolean hasMetaData(String name)
Checks if a meta-data with the given name is already present.
nameThe meta-data name.
true if the meta-data with the given name is already set.
public Builder setIncludesMainArchive(boolean includesMainArchive)
Sets if the main archive is included or not.

Note that the actual value of this property in the built object will be set to true if there are no entries.

includesMainArchivetrue to include the main archive.
this
Sets the MD5 hash.

The argument will be converted to lowercase hexa representation.

md5HashThe hash or null to unset.
this
IllegalArgumentExceptionIf the argument is not a valid MD5 hash in hexa format.
Sets the SHA-1 hash.

The argument will be converted to lowercase hexa representation.

sha1HashThe hash or null to unset.
this
IllegalArgumentExceptionIf the argument is not a valid SHA-1 hash in hexa format.
Sets the SHA-256 hash.

The argument will be converted to lowercase hexa representation.

sha256HashThe hash or null to unset.
this
IllegalArgumentExceptionIf the argument is not a valid SHA-256 hash in hexa format.
public Builder setTargetsMainArchive(boolean targetsMainArchive)
Sets if the main archive is targeted or not.

Note that the actual value of this property in the built object will be set to true if there are no target entries.

targetsMainArchivetrue to target the main archive.
this