ecologylab.services.distributed.legacy
Class HTTPPostServerToClientConnection

java.lang.Object
  extended by ecologylab.generic.Debug
      extended by ecologylab.services.distributed.legacy.ServerToClientConnection
          extended by ecologylab.services.distributed.legacy.HTTPPostServerToClientConnection
All Implemented Interfaces:
NetworkingConstants, ServerConstants, java.lang.Runnable

Deprecated.

@Deprecated
public class HTTPPostServerToClientConnection
extends ServerToClientConnection

parses HTTP Post request message It ignore messages by sending IgnoreRequest when it gets the header strings. It only translates strings of body messages to XML RequestMessage.

Author:
eunyee

Field Summary
 
Fields inherited from class ecologylab.services.distributed.legacy.ServerToClientConnection
incomingSocket, inputStream, outputStreamWriter, running, servicesServer
 
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, DECODER, ENCODER, HTTP_HEADER_LINE_DELIMITER, HTTP_HEADER_TERMINATOR, MAX_HTTP_HEADER_LENGTH, MAX_PACKET_SIZE_BYTES, MAX_PACKET_SIZE_CHARACTERS, UNIQUE_IDENTIFIER_STRING
 
Constructor Summary
HTTPPostServerToClientConnection(java.net.Socket incomingSocket, ServicesServer servicesServer)
          Deprecated.  
 
Method Summary
protected  RequestMessage translateXMLStringToRequestMessage(java.lang.String messageString)
          Deprecated. Use the ServicesServer and its ObjectRegistry to do the translation.
 
Methods inherited from class ecologylab.services.distributed.legacy.ServerToClientConnection
performService, readToMax, run, sendResponse, sendResponse, shutdown, stop, toString
 
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, warning, warning, weird, weird
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTTPPostServerToClientConnection

public HTTPPostServerToClientConnection(java.net.Socket incomingSocket,
                                        ServicesServer servicesServer)
                                 throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException
Method Detail

translateXMLStringToRequestMessage

protected RequestMessage translateXMLStringToRequestMessage(java.lang.String messageString)
                                                     throws XMLTranslationException,
                                                            java.io.UnsupportedEncodingException
Deprecated. 
Use the ServicesServer and its ObjectRegistry to do the translation.

Overrides:
translateXMLStringToRequestMessage in class ServerToClientConnection
Parameters:
messageString -
Returns:
Throws:
XMLTranslationException
java.io.UnsupportedEncodingException