SecurePlayLibray J2SE
v2.1

com.SecurePlay.Comms.SPCcommsHTTP
Class SPCcommsHTTPserver

java.lang.Object
  extended bycom.SecurePlay.Comms.SPCGenericCommsServer.SPCGenericCommsDriverClass
      extended bycom.SecurePlay.Comms.SPCcommsTCP.SPCcommsTCP
          extended bycom.SecurePlay.Comms.SPCcommsHTTP.SPCcommsHTTP
              extended bycom.SecurePlay.Comms.SPCcommsHTTP.SPCcommsHTTPserver

public class SPCcommsHTTPserver
extends SPCcommsHTTP

Simple HTTP server class. Extends from basic HTTP class and overrides and configures the class to be server.

Author:
IT GlobalSecuren
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
SPCcommsHTTPserver(boolean relay)
          Wraps SPCcommsHTTP constructor.
 
Method Summary
 boolean createConnection(java.lang.String address, int portIN)
          Override.
 java.lang.String getCommsDriverType()
          This method returns the driver type.
 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.
 
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, 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

SPCcommsHTTPserver

public SPCcommsHTTPserver(boolean relay)
Wraps SPCcommsHTTP constructor.

Parameters:
relay - boolean - flag to set relay or no relay.
Method Detail

getCommsDriverType

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

Overrides:
getCommsDriverType in class SPCcommsHTTP
Returns:
String

createConnection

public boolean createConnection(java.lang.String address,
                                int portIN)
                         throws java.io.IOException
Override. This is a client, it does create connections, it only accepts or adds connections.

Overrides:
createConnection in class SPCcommsHTTP
Throws:
java.io.IOException
Parameters:
address - String - NOT USED.
portIN - int - NOT USED.
Returns:
boolean

prsend

public boolean prsend(java.lang.String address,
                      byte[] messages)
Sends the message.

Overrides:
prsend in class SPCcommsTCP
Parameters:
address - String - address that this message is sent to.
messages - byte[] - messages void

SPincoming

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

Overrides:
SPincoming in class SPCcommsHTTP
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.