public abstract class AbstractDove extends Object
put failed due to locking or invalid data.| Constructor and Description |
|---|
AbstractDove(Document doc)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected Element |
addContentElement(String tagname,
String content,
Element out)
Creates a DOM element which contains a Text Node, and adds it to the
specified node as a child.
|
void |
doRequest(Element in,
Element out)
Handles a request running one or more RPCs.
|
abstract void |
doRequest(Element in,
Element out,
Cloud cloud,
Map<String,byte[]> repository)
Handles a request running one or more RPCs.
|
Element |
executeRequest(Element in)
This method executes the request from the editors, it can be invoked directly
|
Element |
executeRequest(Element in,
Cloud cloud,
Map<String,byte[]> repository)
This method executes the request from the editors, it can be invoked directly
|
protected Element |
getFirstElement(Node item)
Retrieves the first child node of an element that is itself an element.
|
protected Element |
getFirstElement(Node item,
String tagname)
Retrieves the first child node of an element that is itself an element, and has the specified tagname.
|
protected Element |
getNextElement(Node item)
Retrieves the next sibling of an element that is itself an element.
|
protected Element |
getNextElement(Node item,
String tagname)
Retrieves the the next sibling of an element that is itself an element, and has the specified tagname.
|
protected String |
getTypeDescription(int type) |
public static final String DOCTYPE_REQUEST
public static final String DOCTYPE_RESPONSE
public static final String REQUEST
public static final String RESPONSE
public static final String SECURITY
public static final String GETDATA
public static final String GETNEW
public static final String GETNEWRELATION
public static final String GETRELATIONS
public static final String GETCONSTRAINTS
public static final String GETLIST
public static final String PUT
public static final String SECURITY_NAME
public static final String SECURITY_PASSWORD
public static final String SECURITY_CLOUD
public static final String SECURITY_METHOD
public static final String OBJECT
public static final String FIELD
public static final String ORIGINAL
public static final String NEW
public static final String RELATIONS
public static final String RELATION
public static final String ERROR
public static final String QUERY
public static final String PARENT
public static final String DESCENDANTS
public static final String DESCENDANT
public static final String SINGULARNAME
public static final String PLURALNAME
public static final String DESCRIPTION
public static final String FIELDS
public static final String GUINAME
public static final String GUITYPE
public static final String MAXLENGTH
public static final String REQUIRED
public static final String ELM_ID
public static final String ELM_NUMBER
public static final String ELM_OLDNUMBER
public static final String ELM_TYPE
public static final String ELM_SEARCHTYPE
public static final String ELM_STATUS
public static final String ELM_NAME
public static final String ELM_ROLE
public static final String ELM_DESTINATION
public static final String ELM_DESTINATIONTYPE
public static final String ELM_SOURCETYPE
public static final String ELM_SEARCHDIR
public static final String ELM_CREATEDIR
public static final String ELM_LANG
public static final String ELM_XPATH
public static final String ELM_WHERE
public static final String ELM_ORDERBY
public static final String ELM_DIRECTIONS
public static final String ELM_SOURCE
public static final String ELM_HREF
public static final String ELM_MAYWRITE
public static final String ELM_MAYDELETE
public static final String ELM_CONTEXT
public static final String ELM_SIZE
public static final String ELM_ENCODING
public static final String IS_PARSER
public static final String IS_SERVER
public static final String IS_CLIENT
public static final String IS_TRUE
public static final String IS_FALSE
protected static final String[] TYPE_DESCRIPTIONS
protected final Document doc
public AbstractDove(Document doc)
doc - the Document that is constructed. This should only be used to
construct new DOM elements. New (child) nodes should not be added
to this document, but to the out element.protected String getTypeDescription(int type)
protected Element addContentElement(String tagname, String content, Element out)
tagname - name of the new elementcontent - content of the new element as a stringout - the element to which to add the new Element.protected Element getFirstElement(Node item)
null.item - the element to find the first child element ofnull.protected Element getFirstElement(Node item, String tagname)
null.item - the element to find the first child element oftagname - the tagname of the element desirednull.protected Element getNextElement(Node item)
null.item - the element to find the sibling element ofnull.protected Element getNextElement(Node item, String tagname)
null.item - the element to find the sibling element oftagname - the tagname of the element desirednull.public abstract void doRequest(Element in, Element out, Cloud cloud, Map<String,byte[]> repository)
in - the element that described the request (or input).
The childnodes should describe the calls to perform.out - the element that described the response (or return value).
Results of calls should be added as childs to this element.cloud - the MMCI cloud to use, if applicable.repository - Repository that contains the blobspublic void doRequest(Element in, Element out)
in - the element that described the request (or input).
The childnodes should describe the calls to perform.out - the element that described the response (or return value).
Results of calls should be added as childs to this element.public Element executeRequest(Element in, Cloud cloud, Map<String,byte[]> repository)
in - the element that described the request (or input).
The childnodes should describe the calls to perform.cloud - the MMCI cloud to use, if applicable.repository - Repository that contains the blobspublic Element executeRequest(Element in)
in - the element that described the request (or input).
The childnodes should describe the calls to perform.MMBase 1.9-SNAPSHOT - ${javadoctimestamp}