public abstract class DomainSimpleRequest extends Request
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
domainName
the domain name
|
private java.lang.String |
encodedDomainName
the encoded domain name
|
Constructor and Description |
---|
DomainSimpleRequest()
constructor
|
DomainSimpleRequest(java.lang.String theDomainName)
constructor
|
DomainSimpleRequest(java.lang.String theDomainName,
java.lang.String theEncodedDomainName)
constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addAttributes(XmlBuilder xb)
allow the addition of attributes to the request.
|
protected void |
addElements(XmlBuilder xb)
allow the addition of elements within the request.
|
java.lang.String |
getDomainName()
return the domain name
|
java.lang.String |
getEncodedDomainName()
return the encoded domain name
|
protected abstract java.lang.String |
getRequestElementName()
return the XML element name
|
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 |
setDomainName(java.lang.String theDomainName)
set the domain name.
|
void |
setDomainName(java.lang.String theDomainName,
java.lang.String theEncodedDomainName)
set the domain name
|
java.lang.String |
toString()
return a string representation for debugging purposes
|
execute, getActionCode, getClientTxnID, getProtocolVersion, setClientTxnID, toList, toXml
private java.lang.String domainName
private java.lang.String encodedDomainName
public DomainSimpleRequest()
public DomainSimpleRequest(java.lang.String theDomainName, java.lang.String theEncodedDomainName)
theDomainName
- the domain nametheEncodedDomainName
- the encoded domain name, may be null
for ASCII-only domainspublic DomainSimpleRequest(java.lang.String theDomainName)
theDomainName
- the domain nameprotected abstract java.lang.String getRequestElementName()
protected void addAttributes(XmlBuilder xb) throws org.w3c.dom.DOMException, EncodeException
xb
- the XML builderorg.w3c.dom.DOMException
- on DOM exceptionsEncodeException
- if the encoding fails for some reasonprotected void addElements(XmlBuilder xb) throws org.w3c.dom.DOMException, EncodeException
xb
- the XML builderorg.w3c.dom.DOMException
- on DOM exceptionsEncodeException
- if the encoding fails for some reasonprotected 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 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 java.lang.String getDomainName()
public java.lang.String getEncodedDomainName()
public void setDomainName(java.lang.String theDomainName)
theDomainName
- the domain namepublic void setDomainName(java.lang.String theDomainName, java.lang.String theEncodedDomainName)
theDomainName
- the domain nametheEncodedDomainName
- the encoded domain name, may be null
for ASCII-only domainsCopyright © 2005-2013 Knipp Medien und Kommunikation GmbH