public class DomainInfoRequest extends DomainSimpleRequest
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
authInfo
the authinfo
|
private boolean |
withRecursion
flag whether recursion is desired
|
Constructor and Description |
---|
DomainInfoRequest()
constructor
|
DomainInfoRequest(java.lang.String theDomainName)
constructor
|
DomainInfoRequest(java.lang.String theDomainName,
java.lang.String theEncodedDomainName)
constructor
|
DomainInfoRequest(java.lang.String theDomainName,
java.lang.String theEncodedDomainName,
boolean recursion)
constructor
|
DomainInfoRequest(java.lang.String theDomainName,
java.lang.String theEncodedDomainName,
boolean recursion,
java.lang.String theAuthInfo)
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.
|
DomainInfoResponse |
execute(Port port)
execute the this request on the given port.
|
protected java.lang.String |
getActionCode()
return the action string for this request
|
java.lang.String |
getAuthInfo()
return the authinfo
|
protected 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
|
void |
setAuthInfo(java.lang.String theAuthInfo)
set the authinfo
|
void |
setWithRecursion(boolean recursion)
set whether contact data shall be retrieved also
|
java.lang.String |
toString()
return a string representation for debugging purposes
|
boolean |
withRecursion()
return whether contact data shall be retrieved also
|
getDomainName, getEncodedDomainName, requestToXml, setDomainName, setDomainName
getClientTxnID, getProtocolVersion, setClientTxnID, toList, toXml
private boolean withRecursion
private java.lang.String authInfo
public DomainInfoRequest()
public DomainInfoRequest(java.lang.String theDomainName, java.lang.String theEncodedDomainName, boolean recursion, java.lang.String theAuthInfo)
theDomainName
- the domain nametheEncodedDomainName
- the encoded domain name, may be null
for ASCII-only domainsrecursion
- if true
, full contact data
is retrieved alsotheAuthInfo
- the authinfo, may be null
public DomainInfoRequest(java.lang.String theDomainName, java.lang.String theEncodedDomainName, boolean recursion)
theDomainName
- the domain nametheEncodedDomainName
- the encoded domain name, may be null
for ASCII-only domainsrecursion
- if true
, full contact data
is retrieved alsopublic DomainInfoRequest(java.lang.String theDomainName, java.lang.String theEncodedDomainName)
theDomainName
- the domain nametheEncodedDomainName
- the encoded domain name, may be null
for ASCII-only domainspublic DomainInfoRequest(java.lang.String theDomainName)
theDomainName
- the domain namepublic DomainInfoResponse execute(Port port) throws java.io.IOException
protected java.lang.String getRequestElementName()
getRequestElementName
in class DomainSimpleRequest
protected void addAttributes(XmlBuilder xb) throws org.w3c.dom.DOMException, EncodeException
addAttributes
in class DomainSimpleRequest
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
addElements
in class DomainSimpleRequest
xb
- the XML builderorg.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 DomainSimpleRequest
list
- the list that has to be filledEncodeException
- if the encoding fails for some reasonpublic java.lang.String toString()
toString
in class DomainSimpleRequest
public boolean withRecursion()
true
if sopublic void setWithRecursion(boolean recursion)
recursion
- true
if contact data shall be
retrievedpublic java.lang.String getAuthInfo()
null
if not setpublic void setAuthInfo(java.lang.String theAuthInfo)
theAuthInfo
- the authinfo, may be null
Copyright © 2005-2013 Knipp Medien und Kommunikation GmbH