ecologylab.services.distributed.legacy
Class HTTPPostServer

java.lang.Object
  extended by ecologylab.generic.Debug
      extended by ecologylab.services.distributed.impl.NIOServerBase
          extended by ecologylab.services.distributed.server.DoubleThreadedNIOServer
              extended by ecologylab.services.distributed.legacy.HTTPPostServer
All Implemented Interfaces:
StartAndStoppable, NetworkingConstants, ServerConstants, SessionObjects, Shutdownable, NIOServerFrontend, java.lang.Runnable

public class HTTPPostServer
extends DoubleThreadedNIOServer

Author:
eunyee

Field Summary
static java.lang.String datastore
           
 
Fields inherited from class ecologylab.services.distributed.server.DoubleThreadedNIOServer
maxPacketSize
 
Fields inherited from class ecologylab.services.distributed.impl.NIOServerBase
registry, translationSpace
 
Fields inherited from interface ecologylab.services.distributed.common.ServerConstants
GARBAGE_CONNECTION_CLEANUP_TIMEOUT, MAX_CONNECTIONS, MAXIMUM_TRANSMISSION_ERRORS
 
Fields inherited from interface ecologylab.services.distributed.common.NetworkingConstants
CHARACTER_ENCODING, CONTENT_LENGTH_STRING, CONTENT_LENGTH_STRING_LENGTH, ENCODER, HTTP_HEADER_LINE_DELIMITER, HTTP_HEADER_TERMINATOR, MAX_HTTP_HEADER_LENGTH, MAX_PACKET_SIZE_BYTES, MAX_PACKET_SIZE_CHARACTERS, UNIQUE_IDENTIFIER_STRING
 
Fields inherited from interface ecologylab.services.distributed.common.SessionObjects
BROWSER_SERVICES_CLIENT, BROWSER_SERVICES_TRANSLATIONS, LOGGING, MAIN_SHUTDOWNABLE, MAIN_START_AND_STOPPABLE, TOP_LEVEL
 
Constructor Summary
protected HTTPPostServer(int portNumber, java.net.InetAddress[] inetAddress, TranslationSpace requestTranslationSpace, Scope objectRegistry)
          Instantiates an HTTPPostServer.
 
Method Summary
protected static HTTPPostServer get(int portNumber, java.net.InetAddress inetAddress, TranslationSpace requestTranslationSpace, Scope objectRegistry)
          Construct an instance of the TestDataServer.
static void main(java.lang.String[] args)
           
 
Methods inherited from class ecologylab.services.distributed.server.DoubleThreadedNIOServer
addressToAddresses, generateContextManager, getInstance, getInstance, invalidate, isRunning, processRead, restoreContextManagerFromSessionId, run, shutdown, start, stop
 
Methods inherited from class ecologylab.services.distributed.impl.NIOServerBase
composeTranslations, composeTranslations, generateBackend, getBackend, getRegistry, getTranslationSpace
 
Methods inherited from class ecologylab.generic.Debug
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

datastore

public static java.lang.String datastore
Constructor Detail

HTTPPostServer

protected HTTPPostServer(int portNumber,
                         java.net.InetAddress[] inetAddress,
                         TranslationSpace requestTranslationSpace,
                         Scope objectRegistry)
                  throws java.io.IOException,
                         java.net.BindException
Instantiates an HTTPPostServer.

Parameters:
portNumber -
inetAddress -
translationSpace -
objectRegistry -
Throws:
java.io.IOException
java.net.BindException
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException

get

protected static HTTPPostServer get(int portNumber,
                                    java.net.InetAddress inetAddress,
                                    TranslationSpace requestTranslationSpace,
                                    Scope objectRegistry)
Construct an instance of the TestDataServer. Handle and report on exceptions that may occur in the process.

Returns:
The TestDataServer instance, or null if exceptions are thrown.