|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.knipp.rritoolkit.request.Request
de.knipp.rritoolkit.request.ContactUpdateRequest
public class ContactUpdateRequest
request to create a given contact
Field Summary | |
---|---|
private ContactData |
contact
the contact data |
Constructor Summary | |
---|---|
ContactUpdateRequest()
constructor |
|
ContactUpdateRequest(ContactData theContact)
constructor |
Method Summary | |
---|---|
ContactUpdateResponse |
execute(Port port)
executes the this request on the given port. |
protected java.lang.String |
getActionCode()
return the action string for this request |
ContactData |
getContact()
return the contact |
protected void |
requestToKVList(KVList list)
method that needs to be implemented by subclasses for the key-value list conversion |
protected void |
requestToXml(org.w3c.dom.Node node)
method that needs to be implemented by subclasses for the XML conversion |
void |
setContact(ContactData theContact)
set the contact that shall be created |
java.lang.String |
toString()
return a string representation for debugging purposes |
Methods inherited from class de.knipp.rritoolkit.request.Request |
---|
getClientTxnID, getProtocolVersion, setClientTxnID, toList, toXml |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private ContactData contact
Constructor Detail |
---|
public ContactUpdateRequest()
public ContactUpdateRequest(ContactData theContact)
theContact
- the contactMethod Detail |
---|
public ContactUpdateResponse execute(Port port) throws java.io.IOException
execute
in class Request
port
- the port on which this request shall
be executed
java.io.IOException
- if the execution failedprotected void requestToXml(org.w3c.dom.Node node) throws org.w3c.dom.DOMException, EncodeException
requestToXml
in class Request
node
- the node where the request shall be added to
org.w3c.dom.DOMException
- on DOM exceptions
EncodeException
- if the encoding fails for some reasonprotected java.lang.String getActionCode()
getActionCode
in class Request
protected void requestToKVList(KVList list) throws EncodeException
requestToKVList
in class Request
list
- the list that has to be filled
EncodeException
- if the encoding fails for some reasonpublic java.lang.String toString()
toString
in class Request
public void setContact(ContactData theContact)
theContact
- the contactpublic ContactData getContact()
null
if it
hasn't been set yet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |