public class LinkServer extends java.lang.Thread implements LinkPropertiesConstants
Modifier and Type | Field and Description |
---|---|
protected Link |
link
The Link to use to talk to the client.
|
LPC_BACKWARD_DIAG_PATTERN, LPC_CENTER_LAT, LPC_CENTER_LONG, LPC_CLEAR_PROPERTIES, LPC_CLEAR_PROPERTIES_CHAR, LPC_CROSS_PATTERN, LPC_DASH, LPC_DASH_DOT, LPC_DASH_DOT_DOT, LPC_DIAG_CROSS_PATTERN, LPC_DOT, LPC_FILLCOLOR, LPC_FILLPATTERN, LPC_FORWARD_DIAG_PATTERN, LPC_GRAPHICID, LPC_HEIGHT, LPC_HIGHLIGHTCOLOR, LPC_HORIZONTAL_PATTERN, LPC_HTML, LPC_INFO, LPC_LATMAX, LPC_LATMIN, LPC_LINECOLOR, LPC_LINESTYLE, LPC_LINEWIDTH, LPC_LINKRASTERIMAGEURL, LPC_LINKROTATION, LPC_LINKTEXTBASELINE, LPC_LINKTEXTFONT, LPC_LINKTEXTSTRING, LPC_LONG_DASH, LPC_LONMAX, LPC_LONMIN, LPC_MESSAGE, LPC_OLD_FILLCOLOR, LPC_OLD_FILLPATTERN, LPC_OLD_HIGHLIGHTCOLOR, LPC_OLD_LINECOLOR, LPC_OLD_LINESTYLE, LPC_OLD_LINEWIDTH, LPC_OLD_LINKTEXTFONT, LPC_OLD_LINKTEXTSTRING, LPC_PROJECTION, LPC_PROPERY_MANAGEMENT_POLICY, LPC_PROPERY_MANAGEMENT_POLICY_CHAR, LPC_REUSE_PROPERTIES, LPC_REUSE_PROPERTIES_CHAR, LPC_SCALE, LPC_SOLID, LPC_SOLID_PATTERN, LPC_TIME, LPC_URL, LPC_VERTICAL_PATTERN, LPC_WIDTH
Constructor and Description |
---|
LinkServer()
Constructor used by the LinkServerStarter in using this class
as a LinkServerFactory.
|
LinkServer(java.net.Socket s)
Create child thread that will handle the client.
|
Modifier and Type | Method and Description |
---|---|
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 lar,
Link link)
An example of how to handle LinkActionRequest.
|
void |
huh(Link link)
If a request is not handled, or not understood, reply with
this.
|
void |
run()
From the Runnable interface.
|
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
protected Link link
public LinkServer()
public LinkServer(java.net.Socket s)
s
- the socket to communicate over.public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void handleClient() throws java.io.IOException
java.io.IOException
public void huh(Link link) throws java.io.IOException
java.io.IOException
public void getRectangle(LinkMapRequest query, Link link) throws java.io.IOException
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 lar, Link link) throws java.io.IOException
lar
- 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
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details