com.xfactorstudio.ahawasi
Class Request

java.lang.Object
  |
  +--com.xfactorstudio.ahawasi.Request

public class Request
extends java.lang.Object

The Request object provided to a message hander

Version:
.91
Author:
Neeld Tanksley

Constructor Summary
Request(Ahawasi server, SocketService service, ClientThread client)
           
 
Method Summary
 java.lang.String getApplicationVariable(java.lang.String varName)
           
 java.util.Hashtable getApplicationVariables()
           
 ClientThread getClient()
           
 ClientThread getClient(int port, long uid)
           
 java.lang.String getClientIP()
          returns the IP address of the this client
 java.lang.String getClientIP(long userID)
          returns a clients IP address given a userID if the id is not found, returns null
 java.lang.String getClientIP(java.lang.String userName)
          returns a clients IP address given a username if the name is not found, returns null
 ClientList getClientList()
          return the clientList for current service
 ClientList getClientList(int port)
          return the clientList of the service specified by the port number
 java.lang.String getServerVariable(java.lang.String varName)
           
 java.util.Hashtable getServerVariables()
           
 SocketService getService()
           
 SocketService getService(int port)
           
 ServiceList getServiceList()
           
 java.lang.String getSessionVariable(java.lang.String varName)
           
 java.util.Hashtable getSessionVariables()
           
 long getTotalBytesRecieved()
           
 long getTotalBytesSent()
           
 long getUserID()
          return the ID of this user
 java.lang.String getUserName()
          Returns this users name
 java.lang.String getUserName(long userId)
          returns a clients IP address given a userID if the id is not found, returns null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Request

public Request(Ahawasi server,
               SocketService service,
               ClientThread client)
Method Detail

getClientList

public ClientList getClientList()
return the clientList for current service

getService

public SocketService getService()

getService

public SocketService getService(int port)

getClient

public ClientThread getClient(int port,
                              long uid)

getClient

public ClientThread getClient()

getClientList

public ClientList getClientList(int port)
return the clientList of the service specified by the port number

getUserID

public long getUserID()
return the ID of this user

getClientIP

public java.lang.String getClientIP()
returns the IP address of the this client

getClientIP

public java.lang.String getClientIP(long userID)
returns a clients IP address given a userID if the id is not found, returns null

getClientIP

public java.lang.String getClientIP(java.lang.String userName)
returns a clients IP address given a username if the name is not found, returns null

getUserName

public java.lang.String getUserName()
Returns this users name

getUserName

public java.lang.String getUserName(long userId)
returns a clients IP address given a userID if the id is not found, returns null

getServerVariable

public java.lang.String getServerVariable(java.lang.String varName)

getApplicationVariable

public java.lang.String getApplicationVariable(java.lang.String varName)

getSessionVariable

public java.lang.String getSessionVariable(java.lang.String varName)

getServerVariables

public java.util.Hashtable getServerVariables()

getTotalBytesSent

public long getTotalBytesSent()

getTotalBytesRecieved

public long getTotalBytesRecieved()

getApplicationVariables

public java.util.Hashtable getApplicationVariables()

getSessionVariables

public java.util.Hashtable getSessionVariables()

getServiceList

public ServiceList getServiceList()