|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.ServerSocket
org.jpop.net.PoplogDocServer
A server for the Poplog documentstion. Listens to the following commands: HELP, VERSION , LICENSE, LIST [opts], and OPEN [opts]
Field Summary | |
static int |
DEFAULT_PORT
The default port the server should listen to |
static int |
VERSION_m
Version information |
static int |
VERSION_M
Version information |
static int |
VERSION_R
Version information |
Constructor Summary | |
PoplogDocServer()
Constructor for PoplogDocServer |
|
PoplogDocServer(int portNumber)
Constructor for PoplogDocServer |
Method Summary | |
void |
close()
|
ServerInfo |
getServerInfo()
Gets the server info attribute of the PoplogDocServer object |
boolean |
isRunning()
|
static void |
main(java.lang.String[] args)
The main program for the PoplogDocServer class |
void |
run()
Main processing method for the PoplogDocServer object |
void |
setRunning(boolean running)
|
void |
stop()
|
Methods inherited from class java.net.ServerSocket |
accept, bind, bind, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DEFAULT_PORT
public static final int VERSION_M
public static final int VERSION_m
public static final int VERSION_R
Constructor Detail |
public PoplogDocServer(int portNumber) throws java.io.IOException
PoplogDocServer
portNumber
- The port which we will listen to
java.io.IOException
- IO errorspublic PoplogDocServer() throws java.io.IOException
PoplogDocServer
java.io.IOException
- IO errorsMethod Detail |
public static void main(java.lang.String[] args) throws java.io.IOException
PoplogDocServer
class
args
- The command line arguments
java.io.IOException
- IO errorspublic ServerInfo getServerInfo()
PoplogDocServer
object
serverInfo
valuepublic void run()
PoplogDocServer
object
run
in interface java.lang.Runnable
public boolean isRunning()
public void setRunning(boolean running)
public void close() throws java.io.IOException
java.io.IOException
public void stop()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |