|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttopdown.client.BankingApplication
A client that interacts with the bank service to demonstrate various interactions. The client creates a service endpoint and subsequently uses that instance to invoke service methods.
| Field Summary | |
private static java.lang.String |
DEMO_USER1
A demo user. |
private static java.lang.String |
DEMO_USER2
A demo user. |
private static java.lang.String |
DEMO_USER3
A demo user. |
private BankServicePortClient |
m_endpoint
The service endpoint. |
| Constructor Summary | |
BankingApplication(java.lang.String serviceURL)
Creates an instance of the bank client. |
|
| Method Summary | |
private void |
demoGoodAccount()
Demonstrates successful interactions with the bank service. |
private void |
demoInsufficientFunds()
Demonstrates an attempt to create an account with no initial funds. |
private void |
demoWithdrawalCap()
Demonstrates an attempt to withdraw money from a generated account beyond the allowed withdrawl cap. |
static void |
main(java.lang.String[] args)
Runs the demo client. |
private void |
runDemo()
Executes a number of demo interactions with the deployed service. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static java.lang.String DEMO_USER1
private static java.lang.String DEMO_USER2
private static java.lang.String DEMO_USER3
private BankServicePortClient m_endpoint
| Constructor Detail |
public BankingApplication(java.lang.String serviceURL)
throws java.lang.Exception
serviceURL - the endpoint URL.
java.lang.Exception - if any runtime exception is generated during the interactions with the service.| Method Detail |
private void runDemo()
throws java.lang.Exception
java.lang.Exception - if any runtime exception is generated during the interactions with the service.
private void demoWithdrawalCap()
throws java.lang.Exception
java.lang.Exception - if any runtime exception is generated during the interactions with the service.
private void demoInsufficientFunds()
throws java.lang.Exception
java.lang.Exception - if any runtime exception is generated during the interactions with the service.
private void demoGoodAccount()
throws java.lang.Exception
java.lang.Exception - if any runtime exception is generated during the interactions with the service.public static void main(java.lang.String[] args)
args - the URL for the service endpoint.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||