|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Attachment
Messages may contain attachments that do not appear in the main payload body.
For example, binary document formats, zip files etc.
Handles both 'named' attachment and a list of 'unnamed' attachments
Eventually attachments will be allowed to have difference encoding properties
as they can in the SOAP/Attachments standard.
Method Summary | |
---|---|
void |
addItem(java.lang.Object value)
Appends the specified element to the end of the list of unnamed objects null values are allowed |
void |
addItemAt(int index,
java.lang.Object value)
Replaces the element at the specified position in the list of unnamed objects allows null values |
java.lang.Object |
get(java.lang.String name)
Returns the attachment to which this object maps the specified key. |
int |
getNamedCount()
getNamedCount() |
java.lang.String[] |
getNames()
|
int |
getUnnamedCount()
getUnnamedCount() |
java.lang.Object |
itemAt(int index)
get the item at the specified position in the list of unnamed objects |
java.lang.Object |
put(java.lang.String name,
java.lang.Object value)
Associates the specified value with the specified name If there was already a mapping for this name, the old value is replaced by arg1 |
java.lang.Object |
remove(java.lang.String name)
Removes the mapping for this name if it was present |
java.lang.Object |
removeItemAt(int index)
Removes the element at the specified position in the list of unnamed objects Shifts any subsequent elements to the left |
java.lang.Object |
replaceItemAt(int index,
java.lang.Object value)
Replaces the element at the specified position in the list of unnamed objects with the value supplied |
Method Detail |
---|
java.lang.Object get(java.lang.String name)
name
- String - The name of the attachment to get
java.lang.Object put(java.lang.String name, java.lang.Object value)
name
- String - the name for the object to be storedvalue
- Object - the object to be associated with the name (arg0)
java.lang.Object remove(java.lang.String name)
name
- String - the name of the object to be removed
java.lang.String[] getNames()
java.lang.Object itemAt(int index) throws java.lang.IndexOutOfBoundsException
index
- int - index of element to return
java.lang.IndexOutOfBoundsException
- - if the index is out of rangejava.lang.Object removeItemAt(int index) throws java.lang.IndexOutOfBoundsException
index
- int - index of element to remove
java.lang.IndexOutOfBoundsException
- - if the index is out of rangejava.lang.Object replaceItemAt(int index, java.lang.Object value) throws java.lang.IndexOutOfBoundsException
index
- int - index of element to be replacedvalue
- Object - the object to replace the one previously stored at that index
java.lang.IndexOutOfBoundsException
- - if the index is out of rangevoid addItem(java.lang.Object value)
value
- Object - the object to be appendedvoid addItemAt(int index, java.lang.Object value) throws java.lang.IndexOutOfBoundsException
index
- int - index where to insert the value - Shifts any subsequent elements to the rightvalue
- Object - value to be stored at the specified position
java.lang.IndexOutOfBoundsException
int getUnnamedCount()
int getNamedCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |