public class ContactUpdateRequest extends Request
Modifier and Type | Field and Description |
---|---|
private ContactData |
contact
the contact data
|
Constructor and Description |
---|
ContactUpdateRequest()
constructor
|
ContactUpdateRequest(ContactData theContact)
constructor
|
Modifier and Type | Method and Description |
---|---|
ContactUpdateResponse |
execute(Port port)
execute 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
|
getClientTxnID, getProtocolVersion, setClientTxnID, toList, toXml
private ContactData contact
public ContactUpdateRequest()
public ContactUpdateRequest(ContactData theContact)
theContact
- the contactpublic ContactUpdateResponse execute(Port port) throws java.io.IOException
protected 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 toorg.w3c.dom.DOMException
- on DOM exceptionsEncodeException
- 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 filledEncodeException
- if the encoding fails for some reasonpublic java.lang.String toString()
public void setContact(ContactData theContact)
theContact
- the contactpublic ContactData getContact()
null
if it
hasn't been set yetCopyright © 2005-2013 Knipp Medien und Kommunikation GmbH