ecologylab.services.distributed.server.varieties
Class HttpGetServer

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.server.varieties.HttpGetServer
All Implemented Interfaces:
StartAndStoppable, NetworkingConstants, ServerConstants, SessionObjects, Shutdownable, NIOServerFrontend, java.lang.Runnable
Direct Known Subclasses:
KmlServer

public class HttpGetServer
extends DoubleThreadedNIOServer

Author:
toupsz

Field Summary
 
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
HttpGetServer(int portNumber, java.net.InetAddress[] inetAddresses, TranslationSpace requestTranslationSpace, Scope objectRegistry, int idleConnectionTimeout, int maxPacketSize)
           
HttpGetServer(int portNumber, java.net.InetAddress inetAddress, TranslationSpace requestTranslationSpace, Scope objectRegistry, int idleConnectionTimeout, int maxPacketSize)
           
 
Method Summary
protected  AbstractClientManager generateContextManager(java.lang.Object token, java.nio.channels.SelectionKey sk, TranslationSpace translationSpaceIn, Scope registryIn)
          Hook method to allow changing the ContextManager to enable specific extra functionality.
 
Methods inherited from class ecologylab.services.distributed.server.DoubleThreadedNIOServer
addressToAddresses, 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
 

Constructor Detail

HttpGetServer

public HttpGetServer(int portNumber,
                     java.net.InetAddress[] inetAddresses,
                     TranslationSpace requestTranslationSpace,
                     Scope objectRegistry,
                     int idleConnectionTimeout,
                     int maxPacketSize)
              throws java.io.IOException,
                     java.net.BindException
Parameters:
portNumber -
inetAddresses -
requestTranslationSpace -
objectRegistry -
idleConnectionTimeout -
maxPacketSize -
Throws:
java.io.IOException
java.net.BindException

HttpGetServer

public HttpGetServer(int portNumber,
                     java.net.InetAddress inetAddress,
                     TranslationSpace requestTranslationSpace,
                     Scope objectRegistry,
                     int idleConnectionTimeout,
                     int maxPacketSize)
              throws java.io.IOException,
                     java.net.BindException
Parameters:
portNumber -
inetAddress -
requestTranslationSpace -
objectRegistry -
idleConnectionTimeout -
maxPacketSize -
Throws:
java.io.IOException
java.net.BindException
Method Detail

generateContextManager

protected AbstractClientManager generateContextManager(java.lang.Object token,
                                                       java.nio.channels.SelectionKey sk,
                                                       TranslationSpace translationSpaceIn,
                                                       Scope registryIn)
Description copied from class: DoubleThreadedNIOServer
Hook method to allow changing the ContextManager to enable specific extra functionality.

Overrides:
generateContextManager in class DoubleThreadedNIOServer