All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.ginf.delivery.HTTP.HTTPLayer

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----org.ginf.delivery.HTTP.HTTPLayer

public class HTTPLayer
extends Thread
implements Layer
An HTTP layer implementation.


Variable Index

 o DEFAULT_PORT
 o listen_socket
 o threadgroup

Constructor Index

 o HTTPLayer(RDFFactory)
 o HTTPLayer(String, RDFFactory)

Method Index

 o acceptConnections()
 o acceptConnections(int)
 o connect(String, Layer)
 o dispatch(Model, Layer)
This method can be invoked by 1) client wishing to send (first time, next time) 2) server wishing to reply Strategy: Client sends: if there is a HTTP.Connection inside, take its state.
 o isClient()
 o run()
 o setConnectionPriority(int)
 o setSchemaController(SchemaController)
 o toString()

Variables

 o DEFAULT_PORT
 public static final int DEFAULT_PORT
 o listen_socket
 protected ServerSocket listen_socket
 o threadgroup
 protected ThreadGroup threadgroup

Constructors

 o HTTPLayer
 public HTTPLayer(String name,
                  RDFFactory factory)
 o HTTPLayer
 public HTTPLayer(RDFFactory factory)

Methods

 o isClient
 public boolean isClient()
 o setSchemaController
 public void setSchemaController(SchemaController c)
 o setConnectionPriority
 public void setConnectionPriority(int priority)
 o connect
 public void connect(String what,
                     Layer to)
 o acceptConnections
 public void acceptConnections() throws IOException
 o acceptConnections
 public void acceptConnections(int port) throws IOException
 o run
 public void run()
Overrides:
run in class Thread
 o dispatch
 public Model dispatch(Model m,
                       Layer from) throws Exception
This method can be invoked by 1) client wishing to send (first time, next time) 2) server wishing to reply Strategy: Client sends: if there is a HTTP.Connection inside, take its state. If not, create a new state. Find the message to send (must be unique, may be of multiple types)

 o toString
 public String toString()
Overrides:
toString in class Thread

All Packages  Class Hierarchy  This Package  Previous  Next  Index