Class semper.SemperClient.SCHTTParser
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.SemperClient.SCHTTParser

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----semper.SemperClient.SCHTTParser

public class SCHTTParser
extends Thread
implements SCTaskControl
This class is responsible for the parsing of the client request. Additional this object tries to find the BAapplication class and if this class exists it invokes the appropriate BA .
Author:
Kostas Tzelepis, Petros Pantis
See Also:
Handler

Constructor Index

 o SCHTTParser(int, SCTimer)
starts a new SCHTTParser, this is called at run time (minimal number of SCHTTParsers) or by the Monitor object when it feels more SCHTTParsers are needed to handle the load.

Method Index

 o decodeURL(String)
 o GetFlags()
 o GetID()
 o GetObj()
 o GetStatus()
 o Handler(Object)
Called from the Monitor object in order to associate a new client connection with a idle SCHTTParser object
 o Notify()
 o run()
This method parses the client request, retrieves the requested BA from the Session Manager and invokes the BA via a SCBApp object
 o SetID(int)
 o SetPriority(int)
 o SetStatus()
 o Stop()
Called from the Monitor object to destroys the SCHTTParser object

Constructors

 o SCHTTParser
  public SCHTTParser(int id,
                     SCTimer dismnt)
starts a new SCHTTParser, this is called at run time (minimal number of SCHTTParsers) or by the Monitor object when it feels more SCHTTParsers are needed to handle the load.
Parameters:
id - the Id of the SCHTTParser object
dismnt - a reference to the Monitor Timer object
See Also:
SCMonitor

Methods

 o Stop
  public void Stop()
Called from the Monitor object to destroys the SCHTTParser object
See Also:
Stop
 o Handler
  public void Handler(Object cliSock)
Called from the Monitor object in order to associate a new client connection with a idle SCHTTParser object
Parameters:
cliSock - the new client connection socket
See Also:
LaunchExtraThread SCMonitor#RequestActive
 o run
  public void run()
This method parses the client request, retrieves the requested BA from the Session Manager and invokes the BA via a SCBApp object
Overrides:
run in class Thread
 o Notify
  public void Notify()
 o GetFlags
  public int GetFlags()
 o SetPriority
  public void SetPriority(int prio)
 o SetID
  public void SetID(int id)
 o GetID
  public int GetID()
 o GetStatus
  public int GetStatus()
 o SetStatus
  public void SetStatus()
 o GetObj
  public Object GetObj()
 o decodeURL
  public String decodeURL(String as)

All Packages  Class Hierarchy  This Package  Previous  Next  Index