inputOutputHandler
Class ProxyConnectionHandler

java.lang.Object
  extended by java.lang.Thread
      extended by inputOutputHandler.ProxyConnectionHandler
All Implemented Interfaces:
java.lang.Runnable

final class ProxyConnectionHandler
extends java.lang.Thread

Handles communication with a proxy server.

Not implemented! Currently any Request data is echoed. Nevertheless, suiting (synchronized) buffers (and methods for manipulation) are already present in userDatabase.User ensuring simple integration.

Author:
Karl-Peter Fuchs
See Also:
User.putInProxyWriteBuffer(byte[]), User.putInProxyReadBuffer(byte[]), User.getFromProxyReadBuffer(int), User.getFromProxyWriteBuffer(int), User.availableDataInProxyReadBuffer(), User.availableDataInProxyWriteBuffer()

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected ProxyConnectionHandler(InputOutputHandlerController inputOutputHandler)
          Generates a new ProxyConnectionHandler, which handles communication with a proxy server.
 
Method Summary
 void run()
          Waits for processed Requests and puts their payload in the suiting User's proxy buffer.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProxyConnectionHandler

protected ProxyConnectionHandler(InputOutputHandlerController inputOutputHandler)
Generates a new ProxyConnectionHandler, which handles communication with a proxy server.

Not implemented! Currently any Request data is echoed. Nevertheless, suiting (synchronized) buffers (and methods for manipulation) are already present in userDatabase.User ensuring simple integration.

See Also:
User.putInProxyWriteBuffer(byte[]), User.putInProxyReadBuffer(byte[]), User.getFromProxyReadBuffer(int), User.getFromProxyWriteBuffer(int), User.availableDataInProxyReadBuffer(), User.availableDataInProxyWriteBuffer()
Method Detail

run

public void run()
Waits for processed Requests and puts their payload in the suiting User's proxy buffer.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread
See Also:
User.putInProxyWriteBuffer(byte[])