|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.squawk.io.ServerConnectionHandler
public abstract class ServerConnectionHandler
This interface defines the call back interface for kernel mode Java device drivers.
| Constructor Summary | |
|---|---|
ServerConnectionHandler(String name)
Creates a new ServerConnectionHandler. |
|
| Method Summary | |
|---|---|
String |
getConnectionName()
Returns a name of the connection. |
static ServerConnectionHandler |
lookup(ServerConnectionHandler sch,
String name)
Searches a list of ServerConnectionHandlers for a handler whose name matches a given string. |
abstract void |
processConnection(StreamConnection con)
Processes an incoming connection. |
void |
processServerMessage()
Causes the pending server message to be processed. |
void |
setNext(ServerConnectionHandler next)
Sets the next field of the ServerConnectionHandler |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerConnectionHandler(String name)
name - the name of the message stream being processed| Method Detail |
|---|
public void setNext(ServerConnectionHandler next)
next - the next ServerConnectionHandlerpublic String getConnectionName()
public void processServerMessage()
throws IOException
IOException
public static ServerConnectionHandler lookup(ServerConnectionHandler sch,
String name)
name matches a given string.
sch - the handler to start searching fromname - the string to match
name or null if there isn't onepublic abstract void processConnection(StreamConnection con)
con - the incoming connection
|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||