public class EPPBalance
extends java.lang.Object
EPPSession
and can be used for more than one request within a single thread. A set of
setter methods are provided to set the attributes before a call to one of the
send action methods. The responses returned from the send action methods are
either instances of EPPResponse or instances of response classes in
the com.verisign.epp.codec.balance package. EPPResponse,
EPPBalanceInfoResp| Constructor and Description |
|---|
EPPBalance(EPPSession aSession)
Constructs an
EPPBalance given an initialized EPP session. |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtension(EPPCodecComponent aExtension)
Adds a command extension object.
|
java.util.Vector |
getExtensions()
|
EPPResponse |
getResponse()
Returns the
EPPResponse associated with the last command. |
EPPSession |
getSession()
Returns the
EPPSession associated with this EPPBalance. |
java.lang.String |
getTransId()
Returns the transId
|
EPPBalanceInfoResp |
sendInfo()
Returns
EPPBalanceInfoResp received after sending Balance Info
Command to the server. |
void |
setExtensions(java.util.Vector aExtensions)
Sets extensions value to aExtensions
|
void |
setSession(EPPSession aSession)
Sets session value to aSession
|
void |
setTransId(java.lang.String aTransId)
Sets transId value to
aTransId. |
public EPPBalance(EPPSession aSession)
EPPBalance given an initialized EPP session.aSession - Server session to use.public void addExtension(EPPCodecComponent aExtension)
aExtension - command extension object associated with the commandpublic java.util.Vector getExtensions()
Vector of concrete EPPCodecComponent associated
with the command if exists; null otherwise.public EPPResponse getResponse()
EPPResponse associated with the last command. This
method can be used to retrieve the server error response in the catch block
of EPPCommandException.EPPResponse associated with the last command.public EPPSession getSession()
EPPSession associated with this EPPBalance.EPPSession associated with this EPPBalance.public EPPBalanceInfoResp sendInfo() throws EPPCommandException
EPPBalanceInfoResp received after sending Balance Info
Command to the server.EPPBalanceInfoResp received after sending Balance Info
Command to the server.EPPCommandException - Error executing the info command. Use getResponse
to get the associated server error response.public void setExtensions(java.util.Vector aExtensions)
aExtensions - the extensions to setpublic void setSession(EPPSession aSession)
aSession - the session to setpublic java.lang.String getTransId()
public void setTransId(java.lang.String aTransId)
aTransId.aTransId - the transId to set