|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.SecurePlay.Comms.SPCGenericCommsServer.SPCGenericCommsDriverClass
com.SecurePlay.Comms.SPCcommsTCP.SPCcommsTCP
com.SecurePlay.Comms.SPCcommsHTTP.SPCcommsHTTP
com.SecurePlay.Comms.SPCcommsHTTP.SPCcommsHTTPclient
Simple HTTP client class. Extends from basic HTTP class and overrides and configures the class to be client.

| Nested Class Summary | |
private class |
SPCcommsHTTPclient.poll
Poll class designed to send poll message at time intervals to all the connections the main HTTP driver has. |
| Field Summary | |
(package private) boolean |
poll
Flag that tells the poll handler to keep polling. |
(package private) java.lang.Thread |
t1
Thread in which the polling class lives in. |
| Fields inherited from class com.SecurePlay.Comms.SPCcommsTCP.SPCcommsTCP |
listen, listeners, socketConnections, uniqueAddress |
| Fields inherited from class com.SecurePlay.Comms.SPCGenericCommsServer.SPCGenericCommsDriverClass |
commsServer |
| Constructor Summary | |
SPCcommsHTTPclient(boolean relay)
Wraps SPCcommsHTTP constructor. |
|
| Method Summary | |
boolean |
createConnection(java.lang.String address,
java.net.Socket s)
Override. |
java.lang.String |
getCommsDriverType()
This method returns the driver type. |
boolean |
isPoll()
Returns the poll flag. |
boolean |
prpoll(java.lang.String address)
Sends a poll request message to the reciever. |
boolean |
prsend(java.lang.String address,
byte[] messages)
Sends the message. |
void |
SPincoming(java.lang.String message)
Incoming method that recieves a byte[] and deserializes it and processes it. |
boolean |
StartListen(int portIN)
Override. |
void |
StartPOLL(int PollTimer)
Starts a polling class and pushes it into a thread. |
void |
StopListen()
Override. |
| Methods inherited from class com.SecurePlay.Comms.SPCcommsHTTP.SPCcommsHTTP |
createConnection, removeConnection |
| Methods inherited from class com.SecurePlay.Comms.SPCcommsTCP.SPCcommsTCP |
containsUniqueAddress, getAddress, getListenerCount, isListen, isReady, numConnections, setUniqueAddress, unsetUniqueAddress |
| Methods inherited from class com.SecurePlay.Comms.SPCGenericCommsServer.SPCGenericCommsDriverClass |
addAddress, addressSupportsRelay, clearAddresses, containsAddress, getAddressList, getServer, isConfigured, isPush, isRelay, MessArrAddMessArr, removeAddress, sendFromQMessages, sendMessage, SPdeserializeProcessByteArr, SPincoming, SPserialize, SPserialize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.lang.Thread t1
boolean poll
| Constructor Detail |
public SPCcommsHTTPclient(boolean relay)
relay - boolean - flag to set relay or no relay.| Method Detail |
public boolean isPoll()
public void StartPOLL(int PollTimer)
PollTimer - int - periodic time interval in which the poll messages are sent out.public boolean StartListen(int portIN)
StartListen in class SPCcommsTCPportIN - int - NOT USED.
voidpublic void StopListen()
StopListen in class SPCcommsTCP
public boolean createConnection(java.lang.String address,
java.net.Socket s)
throws java.io.IOException
createConnection in class SPCcommsHTTPjava.io.IOExceptionaddress - String - NOT USED.s - Socket - NOT USED.
public java.lang.String getCommsDriverType()
getCommsDriverType in class SPCcommsHTTP
public boolean prsend(java.lang.String address,
byte[] messages)
prsend in class SPCcommsTCPaddress - String - address that this message is sent to.messages - byte[] - messages
voidpublic void SPincoming(java.lang.String message)
SPincoming in class SPCcommsHTTPmessage - byte[] - byte array that is incoming.
voidpublic boolean prpoll(java.lang.String address)
prpoll in class SPCGenericCommsDriverClassaddress - String - address the poll request message will be sent to.
|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||