|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread com.bbn.openmap.layer.link.LinkServer com.bbn.openmap.layer.link.TestLinkServer
public class TestLinkServer
The TestLinkServer is my test implementation of a customized LinkServer.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class com.bbn.openmap.layer.link.LinkServer |
---|
link |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
TestLinkServer(java.net.Socket s)
Create child thread that will handle the client. |
Method Summary | |
---|---|
void |
getRectangle(LinkMapRequest query,
Link link)
An example of how to handle GraphicsLinkQueries. |
void |
handleClient()
handleClient is a method that listens to the link to a client, and responds to requests that are made. |
void |
handleGesture(LinkActionRequest glq,
Link link)
An example of how to handle LinkActionRequest. |
Methods inherited from class com.bbn.openmap.layer.link.LinkServer |
---|
huh, run |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestLinkServer(java.net.Socket s)
s
- the socket to communicate over.Method Detail |
---|
public void handleClient() throws java.io.IOException
handleClient
in class LinkServer
java.io.IOException
public void getRectangle(LinkMapRequest query, Link link) throws java.io.IOException
getRectangle
in class LinkServer
query
- the GraphicsLinkQuery, so you can get more
information about the parameters of the map screen of
the client.link
- the link to communicate the response back to the
client.
java.io.IOException
public void handleGesture(LinkActionRequest glq, Link link) throws java.io.IOException
handleGesture
in class LinkServer
glq
- the LinkActionRequest, so you can get more
information about the parameters of the gesture frome
the client.link
- the link to communicate the response back to the
client.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |