public class LoginRequest extends Request
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
password
the password
|
private java.lang.String |
userName
the user name
|
Constructor and Description |
---|
LoginRequest() |
Modifier and Type | Method and Description |
---|---|
LoginResponse |
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 |
getPassword()
return the password
|
java.lang.String |
getUser()
return the user 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 |
setPassword(java.lang.String thePassword)
set the password
|
void |
setUser(java.lang.String theUserName)
set the user name
|
java.lang.String |
toString()
return a string representation for debugging purposes
|
getClientTxnID, getProtocolVersion, setClientTxnID, toList, toXml
private java.lang.String userName
private java.lang.String password
public void setUser(java.lang.String theUserName)
theUserName
- the user namepublic java.lang.String getUser()
public void setPassword(java.lang.String thePassword)
thePassword
- the passwordpublic java.lang.String getPassword()
public LoginResponse 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 reasonCopyright © 2005-2013 Knipp Medien und Kommunikation GmbH