public interface AttachmentHolder
Attachment
s.Modifier and Type | Method and Description |
---|---|
Object |
getAttachment(String name)
Retrieves the attachment with the specified name.
|
Set<String> |
getAttachmentNames()
Retrieves the set of attachment names defined for this holder, as a
mapping between the attachment name and the associated object.
|
Object |
removeAttachment(String name)
Removes the attachment with the specified name.
|
Object |
setAttachment(String name,
Object value)
Sets the value of the specified attachment.
|
Object getAttachment(String name)
name
- The name for the attachment to retrieve. It will be treated in
a case-sensitive manner.null
if it does not
exist.Set<String> getAttachmentNames()
Object removeAttachment(String name)
name
- The name for the attachment to remove. It will be treated in a
case-sensitive manner.null
if it does not
exist.Object setAttachment(String name, Object value)
name
- The name to use for the attachment.value
- The value to use for the attachment.null
if there was previously no such attachment.Copyright 2010-2017 ForgeRock AS.