proxy
Class DirectProxyConnection

java.lang.Object
  extended by proxy.DirectProxyConnection

final class DirectProxyConnection
extends java.lang.Object


Field Summary
private  java.net.Socket m_clientSocket
           
private static java.text.DateFormat m_DateFormat
           
private  java.io.InputStream m_inputStream
           
private  int m_iPort
           
private static java.text.NumberFormat m_NumberFormat
           
private  DirectProxy m_parentProxy
           
private  java.lang.String m_requestLine
           
private  java.io.InputStream m_socketInputStream
           
private  java.lang.String m_strFile
           
private  java.lang.String m_strHost
           
private  java.lang.String m_strMethod
           
private  java.lang.String m_strProtocol
           
private  java.lang.String m_strURI
           
private  java.lang.String m_strVersion
           
private static int m_threadCount
           
private  int m_threadNumber
           
private  java.util.Vector m_vecThreads
           
 
Constructor Summary
DirectProxyConnection(java.net.Socket s, java.io.InputStream a_socketInputStream, DirectProxy a_parentProxy)
           
 
Method Summary
private  void badRequest()
           
private  void cannotConnect()
           
private  boolean filter(java.lang.String l)
           
private  int getThreadNumber()
           
static DirectProxy.RequestInfo getURI(java.io.PushbackInputStream a_inputStream, int a_buffer)
           
private  void handleCONNECT()
           
private  void handleFTP()
           
private  void handleHTTP(boolean a_bPost)
           
private  void handleRequest(java.io.InputStream a_inputStream)
           
static java.lang.String readLine(java.io.InputStream inputStream)
           
private static java.lang.String readLine(java.io.InputStream inputStream, byte[] r_bytesRead, int[] len)
           
private  void responseTemplate(java.lang.String error, java.lang.String message)
           
 void stop()
          TODO not tested or called yet; it looks like we don't need it...
private  void unknownProtocol()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_clientSocket

private java.net.Socket m_clientSocket

m_socketInputStream

private java.io.InputStream m_socketInputStream

m_threadNumber

private int m_threadNumber

m_threadCount

private static int m_threadCount

m_inputStream

private java.io.InputStream m_inputStream

m_requestLine

private java.lang.String m_requestLine

m_strMethod

private java.lang.String m_strMethod

m_strURI

private java.lang.String m_strURI

m_strProtocol

private java.lang.String m_strProtocol

m_strVersion

private java.lang.String m_strVersion

m_strHost

private java.lang.String m_strHost

m_strFile

private java.lang.String m_strFile

m_iPort

private int m_iPort

m_DateFormat

private static java.text.DateFormat m_DateFormat

m_NumberFormat

private static java.text.NumberFormat m_NumberFormat

m_parentProxy

private DirectProxy m_parentProxy

m_vecThreads

private java.util.Vector m_vecThreads
Constructor Detail

DirectProxyConnection

public DirectProxyConnection(java.net.Socket s,
                             java.io.InputStream a_socketInputStream,
                             DirectProxy a_parentProxy)
Method Detail

stop

public void stop()
TODO not tested or called yet; it looks like we don't need it...


readLine

private static java.lang.String readLine(java.io.InputStream inputStream,
                                         byte[] r_bytesRead,
                                         int[] len)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

readLine

public static java.lang.String readLine(java.io.InputStream inputStream)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getURI

public static DirectProxy.RequestInfo getURI(java.io.PushbackInputStream a_inputStream,
                                             int a_buffer)

handleRequest

private void handleRequest(java.io.InputStream a_inputStream)

responseTemplate

private void responseTemplate(java.lang.String error,
                              java.lang.String message)

cannotConnect

private void cannotConnect()

unknownProtocol

private void unknownProtocol()

badRequest

private void badRequest()

handleCONNECT

private void handleCONNECT()
                    throws java.lang.Exception
Throws:
java.lang.Exception

handleHTTP

private void handleHTTP(boolean a_bPost)
                 throws java.lang.Exception
Throws:
java.lang.Exception

handleFTP

private void handleFTP()

filter

private boolean filter(java.lang.String l)

getThreadNumber

private int getThreadNumber()