sunlabs.brazil.proxy
public class ProxyHandler extends Object implements Handler
Properties:
Version: 2.6
Field Summary | |
---|---|
static String | AUTH |
String | auth
The string to send as the value for the "Proxy-Authorization"
HTTP header (if needed). |
String | proxyHost
The proxy server. |
int | proxyPort
The proxy server's port. |
static String | PROXY_HOST |
static String | PROXY_PORT |
static String | USE_PROXY |
Method Summary | |
---|---|
static String | dumpHeaders(int count, Request request, MimeHeaders headers, boolean sent)
Dump the headers on stderr |
boolean | init(Server server, String prefix)
Do one-time setup.
get and process the properties file options, and make sure |
boolean | respond(Request client) |
protected MimeHeaders | rewriteHeaders(MimeHeaders responseHeaders)
Allow sub-classes to rewrite any or all of the target
headers, if needed. |
See Also: Handler