com.quadrique.jbuildingblocks.core.io.socket.server
Class JbbConnectionHandlerDumpReceivedData

java.lang.Object
  extended by java.lang.Thread
      extended by com.quadrique.jbuildingblocks.core.io.socket.server.JbbConnectionHandler
          extended by com.quadrique.jbuildingblocks.core.io.socket.server.JbbConnectionHandlerDumpReceivedData
All Implemented Interfaces:
Runnable

public class JbbConnectionHandlerDumpReceivedData
extends JbbConnectionHandler

This specialized connection handler waits for incoming data on the connection and dumps each byte of tbe received data. If the client does not releaseConnection the connection and does not mark the end of stream, the connection handler will time-out and ultimately releaseConnection the connection.

Version:
1.0.0
Author:
Hervé Rivere

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JbbConnectionHandlerDumpReceivedData()
          Constructor
 
Method Summary
static String guessContentTypeFromName(String name)
           
 
Methods inherited from class com.quadrique.jbuildingblocks.core.io.socket.server.JbbConnectionHandler
processRequest, run, stopExecution
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JbbConnectionHandlerDumpReceivedData

public JbbConnectionHandlerDumpReceivedData()
Constructor

Method Detail

guessContentTypeFromName

public static String guessContentTypeFromName(String name)


Copyright © 2001-2008 Quadrique Corporation. All Rights Reserved.