|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHTTPConnection
public class HTTPConnection
HTTPConnection is used to order tickets in a prototype
Field Summary | |
---|---|
private java.lang.String |
baseUrl
|
private TicketingSystemMIDlet |
ts
|
private java.lang.String |
value
|
Constructor Summary | |
---|---|
HTTPConnection(TicketingSystemMIDlet ts,
java.lang.String value)
Starts the thread to order the ticket |
Method Summary | |
---|---|
java.lang.String |
getDate()
Gets the current date |
private void |
invoke(java.lang.String url)
Connects to the server |
void |
run()
Puts together the complete url for purchase |
private void |
sleep()
Puts the current thread to sleep |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private TicketingSystemMIDlet ts
private java.lang.String baseUrl
private java.lang.String value
Constructor Detail |
---|
public HTTPConnection(TicketingSystemMIDlet ts, java.lang.String value)
ts
- The MIDletvalue
- The purchase ammountMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
private void invoke(java.lang.String url) throws java.io.IOException
url
- The url of the server providing tickets
java.io.IOException
HTTPConnection
,
InputStream
,
StringBuffer
public java.lang.String getDate()
private void sleep()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |