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.
-
DEFAULT_PORT
-
-
listen_socket
-
-
threadgroup
-
-
HTTPLayer(RDFFactory)
-
-
HTTPLayer(String, RDFFactory)
-
-
acceptConnections()
-
-
acceptConnections(int)
-
-
connect(String, Layer)
-
-
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.
-
isClient()
-
-
run()
-
-
setConnectionPriority(int)
-
-
setSchemaController(SchemaController)
-
-
toString()
-
DEFAULT_PORT
public static final int DEFAULT_PORT
listen_socket
protected ServerSocket listen_socket
threadgroup
protected ThreadGroup threadgroup
HTTPLayer
public HTTPLayer(String name,
RDFFactory factory)
HTTPLayer
public HTTPLayer(RDFFactory factory)
isClient
public boolean isClient()
setSchemaController
public void setSchemaController(SchemaController c)
setConnectionPriority
public void setConnectionPriority(int priority)
connect
public void connect(String what,
Layer to)
acceptConnections
public void acceptConnections() throws IOException
acceptConnections
public void acceptConnections(int port) throws IOException
run
public void run()
- Overrides:
- run in class Thread
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)
toString
public String toString()
- Overrides:
- toString in class Thread
All Packages Class Hierarchy This Package Previous Next Index