|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Middleware methods needed to implement a server
| Method Summary | |
void |
abort(JCO.Server server,
java.lang.String message)
Closes a connection and tries to send a final message to the caller |
void |
disconnect(JCO.Server server)
Closes a connection |
void |
getAttributes(JCO.Server server)
Method that actually retrieves the attributes of a connection. |
java.lang.String[][] |
getPropertyInfo()
Returns information about the properties which are understood by the server implementation. |
void |
initialize(JCO.Server server,
java.util.Properties params)
Called to initialize the server just after its creation. |
boolean |
isAlive(JCO.Server client)
Checks whether the connection is alive |
void |
listen(JCO.Server server,
java.lang.String params)
Listens for incoming calls and dispatches them to the servers handleRequestMethod() |
| Method Detail |
public java.lang.String[][] getPropertyInfo()
Strings containg the
name and description of a property. For example
String pinfo[][] = {
{ "jco.server.gwhost", "Gateway host" },
{ "jco.server.gwserv", "Gateway service" },
{ "jco.server.progid", "The servers' program id" },
};
public void initialize(JCO.Server server,
java.util.Properties params)
server - the server that calls the methodparams - connection parameters as a property list
public void listen(JCO.Server server,
java.lang.String params)
server - the server that calls the methodparams - implementation dependent arguments which specify the connectionpublic void disconnect(JCO.Server server)
server - the server that calls the method
public void abort(JCO.Server server,
java.lang.String message)
server - the server that calls the methodpublic boolean isAlive(JCO.Server client)
client - the client that calls the methodtrue if the connection is alive, false otherwisepublic void getAttributes(JCO.Server server)
server - the server that calls the method
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||