public class TransparentProxyWorker extends ProxyWorker
Usage example:
construct
setParameters
run
busy, cumMessageBodiesLength, cumMessageHeadersLength, finish, httpRequest, httpResponse, httpResponseSender, independentMessageHeaders, jpipResponseFields, keepAliveTimeout, log, maxTxRate, os, requestQueue, socket, trafficShaping
Constructor and Description |
---|
TransparentProxyWorker(java.lang.String threadName,
RequestQueue requestQueue,
CADILog log)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
list(java.io.PrintStream out)
Prints this Transparent Proxy Worker out to the specified output stream.
|
void |
processRequest(java.net.Socket socketToClient,
HTTPRequest httpRequest,
CADILog log)
Performs the forwarding of the client request to the server and the
forwarding of the server response to the client.
|
void |
run() |
java.lang.String |
toString() |
finish, getState, isBusy, listenNewRequest, sendHTTPResponseError, sendHTTPResponseHeader, setIndependentMessageHeaders, setKeepAliveTimeout, setMaxTxRate, setTrafficShaping
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield
public TransparentProxyWorker(java.lang.String threadName, RequestQueue requestQueue, CADILog log)
threadName
- requestQueue
- log
- public void run()
run
in interface java.lang.Runnable
run
in class ProxyWorker
public java.lang.String toString()
toString
in class ProxyWorker
public void list(java.io.PrintStream out)
list
in class ProxyWorker
out
- an output stream.public void processRequest(java.net.Socket socketToClient, HTTPRequest httpRequest, CADILog log) throws ErrorException, WarningException, java.io.IOException
java.io.IOException
ErrorException
WarningException
java.io.IOException
CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Group on Interactive Coding of Images (GICI) (contact)