|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--webtester.packages.apps.httpProxy
Listen for HTTP requests on the specified, and act as a proxy for those requests.
Field Summary | |
private static java.net.ServerSocket |
acceptor
The socket which listens for browser connections. |
private static boolean |
bEndProxy
Indicates whether the proxy has finished recording. |
private static boolean |
bRecord
Indicates whether the browser is currently recording. |
private static java.util.HashMap |
hServerTypes
A HashMap that contains server type information. |
private static int |
iDefaultPort
The default port to use when waiting for connections. |
private static int |
iSleepTime
The amount of time to sleep while waiting for the proxy thread. |
private static java.lang.String |
sExcludeFile
A file which contains regexes to ignore. |
private static java.lang.String |
sName
The name of the testcase being recorded. |
private static java.lang.String |
sPathSeparator
The character used to separate paths on the particular OS. |
Constructor Summary | |
httpProxy()
The default constructor. |
|
httpProxy(int portNumber)
Constructor which takes 1 argument. |
Method Summary | |
static void |
main(java.lang.String[] argv)
The main method which is the entry point into the program. |
private static void |
processClientRequest(java.net.Socket client)
Call the thread which processes the requests. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static java.net.ServerSocket acceptor
private static boolean bRecord
private static boolean bEndProxy
private static java.lang.String sName
private static java.lang.String sExcludeFile
private static java.lang.String sPathSeparator
private static java.util.HashMap hServerTypes
private static final int iSleepTime
private static final int iDefaultPort
Constructor Detail |
public httpProxy() throws java.io.IOException
java.io.IOException
- if any IO errors with the socket occurpublic httpProxy(int portNumber) throws java.io.IOException
portNumber
- the port on which to listen for connections
java.io.IOException
- if any socket errors occurredMethod Detail |
public static void main(java.lang.String[] argv)
argv
- any command-line argumentsprivate static void processClientRequest(java.net.Socket client) throws java.io.IOException
client
- the client socket, i.e. the connection to the browser
java.io.IOException
- if any socket errors occur
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |