org.jpop.net
Class PoplogDocServer

java.lang.Object
  extended byjava.net.ServerSocket
      extended byorg.jpop.net.PoplogDocServer
All Implemented Interfaces:
java.lang.Runnable

public class PoplogDocServer
extends java.net.ServerSocket
implements java.lang.Runnable

A server for the Poplog documentstion. Listens to the following commands: HELP, VERSION , LICENSE, LIST [opts], and OPEN [opts]

Version:
1.0
Author:
dsm

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

DEFAULT_PORT

public static final int DEFAULT_PORT
The default port the server should listen to

See Also:
Constant Field Values

VERSION_M

public static final int VERSION_M
Version information

See Also:
Constant Field Values

VERSION_m

public static final int VERSION_m
Version information

See Also:
Constant Field Values

VERSION_R

public static final int VERSION_R
Version information

See Also:
Constant Field Values
Constructor Detail

PoplogDocServer

public PoplogDocServer(int portNumber)
                throws java.io.IOException
Constructor for PoplogDocServer

Parameters:
portNumber - The port which we will listen to
Throws:
java.io.IOException - IO errors

PoplogDocServer

public PoplogDocServer()
                throws java.io.IOException
Constructor for PoplogDocServer

Throws:
java.io.IOException - IO errors
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
The main program for the PoplogDocServer class

Parameters:
args - The command line arguments
Throws:
java.io.IOException - IO errors

getServerInfo

public ServerInfo getServerInfo()
Gets the server info attribute of the PoplogDocServer object

Returns:
The serverInfo value

run

public void run()
Main processing method for the PoplogDocServer object

Specified by:
run in interface java.lang.Runnable

isRunning

public boolean isRunning()

setRunning

public void setRunning(boolean running)

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

stop

public void stop()