public class DomainTransitRequest extends DomainSimpleRequest
Modifier and Type | Field and Description |
---|---|
private boolean |
disconnect
flag whether the domain shall be disconnected
|
Constructor and Description |
---|
DomainTransitRequest()
constructor
|
DomainTransitRequest(java.lang.String theDomainName)
constructor
|
DomainTransitRequest(java.lang.String theDomainName,
java.lang.String theEncodedDomainName)
constructor
|
DomainTransitRequest(java.lang.String theDomainName,
java.lang.String theEncodedDomainName,
boolean disconnectDomain)
constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addAttributes(XmlBuilder xb)
allow the addition of attributes to the request.
|
boolean |
disconnect()
return whether the domain shall be disconnected or not
|
DomainTransitResponse |
execute(Port port)
execute the this request on the given port.
|
protected java.lang.String |
getActionCode()
return the action string for this request
|
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 |
setDisconnect(boolean disconnectDomain)
set whether the domain shall be disconnected or not
|
java.lang.String |
toString()
return a string representation for debugging purposes
|
addElements, getDomainName, getEncodedDomainName, requestToXml, setDomainName, setDomainName
getClientTxnID, getProtocolVersion, setClientTxnID, toList, toXml
public DomainTransitRequest()
public DomainTransitRequest(java.lang.String theDomainName, java.lang.String theEncodedDomainName, boolean disconnectDomain)
theDomainName
- the domain nametheEncodedDomainName
- the encoded domain name, may be null
for ASCII-only domainsdisconnectDomain
- if true
the domain is
disconnected on executionpublic DomainTransitRequest(java.lang.String theDomainName, java.lang.String theEncodedDomainName)
theDomainName
- the domain nametheEncodedDomainName
- the encoded domain name, may be null
for ASCII-only domainspublic DomainTransitRequest(java.lang.String theDomainName)
theDomainName
- the domain namepublic DomainTransitResponse 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 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 disconnect()
true
if the domain shall be
disconnectedpublic void setDisconnect(boolean disconnectDomain)
disconnectDomain
- true
if the domain shall be
disconnectedCopyright © 2005-2013 Knipp Medien und Kommunikation GmbH