proxy
Class DirectProxyConnection
java.lang.Object
proxy.DirectProxyConnection
final class DirectProxyConnection
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DirectProxyConnection
public DirectProxyConnection(java.net.Socket s,
java.io.InputStream a_socketInputStream,
DirectProxy a_parentProxy)
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()