|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openspml.message.SpmlRequest | +--org.openspml.message.AddRequest
A class used to represent an addRequest
element.
An add request essentially just provides a list of arbitrary attribute
values for the new object. The objectclass
attribute is however special in that it may specify the class
of the object being created. If not specified, the provider may
use a default object class, but this is not required.
Fields inherited from class org.openspml.message.SpmlRequest |
EXEC_ASYNCHRONOUS,
EXEC_SYNCHRONOUS |
Constructor Summary | |
AddRequest()
Construct an object representing an SPML addRequest
message. |
Method Summary | |
SpmlResponse |
createResponse()
Build an empty SpmlRequest object that corresponds to this request. |
Attribute |
getAttribute(java.lang.String name)
Retrieve an attribute by name. |
java.util.List |
getAttributes()
Retrieve the list of attributes. |
java.lang.Object |
getAttributeValue(java.lang.String name)
Retrieve the value of an attribute. |
java.lang.String |
getElementName()
Return the tag name for the request element. |
java.lang.String |
getObjectClass()
Retrieve the value of the "objectclass" attribute. |
void |
setAttribute(Attribute a)
Sets one attribute. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets one attribute as a name/value pair. |
void |
setAttributes(java.util.List l)
Sets the list of attributes. |
void |
setAttributes(java.util.Map map)
Sets the attributes from a map of name/value pairs. |
void |
setObjectClass(java.lang.String s)
Sets the class of the object being added. |
Methods inherited from class org.openspml.message.SpmlRequest |
dumpFile,
getIdentifier,
getIdentifierString,
getOperationalAttribute,
getOperationalAttributes,
getOperationalAttributeValue,
getRequestId,
isAsynchronous,
parseRequest,
parseRequest,
setAsynchronous,
setIdentifier,
setIdentifier,
setOperationalAttribute,
setOperationalAttribute,
setOperationalAttributes,
setRequestId,
toXml,
toXml |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AddRequest()
addRequest
message.Method Detail |
public SpmlResponse createResponse()
public void setAttributes(java.util.List l)
Attribute
objects.public void setAttributes(java.util.Map map)
public void setAttribute(Attribute a)
public void setAttribute(java.lang.String name, java.lang.Object value)
public void setObjectClass(java.lang.String s)
This is just represented as an Attribute, but since it is has specified semantics, we give it its own method.
public java.util.List getAttributes()
public Attribute getAttribute(java.lang.String name)
public java.lang.Object getAttributeValue(java.lang.String name)
public java.lang.String getObjectClass()
public java.lang.String getElementName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |