Class EPPBalance
java.lang.Object
com.verisign.epp.interfaces.balance.v01.EPPBalance
This class is the primary client interface class used for sending the
EPP balance info command to get the account balance and other finance information.
An instance of this class is created with an initialized
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. - See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEPPBalance(EPPSession aSession) Constructs anEPPBalancegiven an initialized EPP session. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtension(EPPCodecComponent aExtension) Adds a command extension object.Returns theEPPResponseassociated with the last command.Returns theEPPSessionassociated with thisEPPBalance.Returns the transIdsendInfo()ReturnsEPPBalanceInfoRespreceived after sending Balance Info Command to the server.voidsetExtensions(Vector aExtensions) Sets extensions value to aExtensionsvoidsetSession(EPPSession aSession) Sets session value to aSessionvoidsetTransId(String aTransId) Sets transId value toaTransId.
-
Constructor Details
-
EPPBalance
Constructs anEPPBalancegiven an initialized EPP session.- Parameters:
aSession- Server session to use.
-
-
Method Details
-
addExtension
Adds a command extension object.- Parameters:
aExtension- command extension object associated with the command
-
getExtensions
- Returns:
Vectorof concreteEPPCodecComponentassociated with the command if exists;nullotherwise.
-
getResponse
Returns theEPPResponseassociated with the last command. This method can be used to retrieve the server error response in the catch block ofEPPCommandException.- Returns:
- the
EPPResponseassociated with the last command.
-
getSession
Returns theEPPSessionassociated with thisEPPBalance.- Returns:
- the
EPPSessionassociated with thisEPPBalance.
-
sendInfo
ReturnsEPPBalanceInfoRespreceived after sending Balance Info Command to the server.- Returns:
EPPBalanceInfoRespreceived after sending Balance Info Command to the server.- Throws:
EPPCommandException- Error executing the info command. UsegetResponseto get the associated server error response.
-
setExtensions
Sets extensions value to aExtensions- Parameters:
aExtensions- the extensions to set
-
setSession
Sets session value to aSession- Parameters:
aSession- the session to set
-
getTransId
Returns the transId- Returns:
- the transId
-
setTransId
Sets transId value toaTransId.- Parameters:
aTransId- the transId to set
-