SecurePlayLibray J2SE
v2.1

com.SecurePlay.Comms.SPCcommsHTTP
Class SPCcommsHTTP

java.lang.Object
  extended bycom.SecurePlay.Comms.SPCGenericCommsServer.SPCGenericCommsDriverClass
      extended bycom.SecurePlay.Comms.SPCcommsTCP.SPCcommsTCP
          extended bycom.SecurePlay.Comms.SPCcommsHTTP.SPCcommsHTTP
Direct Known Subclasses:
SPCcommsHTTPclient, SPCcommsHTTPserver

public class SPCcommsHTTP
extends SPCcommsTCP

HTTP comms class is an extention of a SPCcommsTCP class. This class supports HTTP.

Author:
IT GlobalSecure
See Also:
SecurePlay License Information
 

Field Summary
 
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
SPCcommsHTTP(boolean push, boolean relay)
          Constructor.
 
Method Summary
 boolean createConnection(java.lang.String address, int portIN)
          Creates a connection.
 boolean createConnection(java.lang.String address, java.net.Socket socket)
          Creates a connection.
 java.lang.String getCommsDriverType()
          This method returns the driver type.
 boolean removeConnection(java.lang.String address)
          Removes the connection and closes the connection class.
 void SPincoming(java.lang.String message)
          Incoming method that recieves a byte[] and deserializes it and processes it.
 
Methods inherited from class com.SecurePlay.Comms.SPCcommsTCP.SPCcommsTCP
containsUniqueAddress, getAddress, getListenerCount, isListen, isReady, numConnections, prsend, setUniqueAddress, StartListen, StopListen, unsetUniqueAddress
 
Methods inherited from class com.SecurePlay.Comms.SPCGenericCommsServer.SPCGenericCommsDriverClass
addAddress, addressSupportsRelay, clearAddresses, containsAddress, getAddressList, getServer, isConfigured, isPush, isRelay, MessArrAddMessArr, prpoll, 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
 

Constructor Detail

SPCcommsHTTP

public SPCcommsHTTP(boolean push,
                    boolean relay)
Constructor.

Method Detail

removeConnection

public boolean removeConnection(java.lang.String address)
Removes the connection and closes the connection class.

Overrides:
removeConnection in class SPCcommsTCP
Parameters:
address - String - connection to be closed.
Returns:
boolean

createConnection

public boolean createConnection(java.lang.String address,
                                int portIN)
                         throws java.io.IOException
Creates a connection.

Overrides:
createConnection in class SPCcommsTCP
Throws:
java.io.IOException
Parameters:
address - String - address to which the connection will be created.
portIN - int - port number through which to send messages.
Returns:
boolean

createConnection

public boolean createConnection(java.lang.String address,
                                java.net.Socket socket)
                         throws java.io.IOException
Creates a connection.

Overrides:
createConnection in class SPCcommsTCP
Throws:
java.io.IOException
Parameters:
address - String - address to which the connection will be created.
socket - Socket - socket.
Returns:
boolean

getCommsDriverType

public java.lang.String getCommsDriverType()
This method returns the driver type. It will be overridden with specific driver type.

Overrides:
getCommsDriverType in class SPCcommsTCP
Returns:
String

SPincoming

public void SPincoming(java.lang.String message)
Incoming method that recieves a byte[] and deserializes it and processes it.

Parameters:
message - byte[] - byte array that is incoming. void

SecurePlayLibray J2SE
v2.1

2006 Copyright Filed by IT GlobalSecure, Inc. All Rights Reserved. Not to be used without authorization by Author. SecurePlay, IT GlobalSecure, and IT Armor are registered trademarks by IT GlobalSecure, Inc. Software protected by software license, and one or more the following U.S. and International patent numbers: U.S. Patent 6,030,288, U.S. Patent 6,165,072, European Patent Office EP1016049A1,and World Intellectual Property Organization WO9912135C1 and additional filings worldwide.