| java.lang.Object sunlabs.brazil.proxy.ProxyHandler
ProxyHandler | public class ProxyHandler implements Handler(Code) | | Handler for implementing a web proxy.
By default, this is a dumb proxy. It can be combined with other
handlers to generate side effects, such as content rewriting.
Properties:
- useproxy
- The name of the SocketFactory class to use for
this handler. If additional properties are required to set up
the SocketFactory, it should be configured as a handler instead.
This is here for convenience only.
- auth
- The value of the proxy-authenticate header (if any) sent to the upstream proxy
- proxyHost
- If specified, the name of the upstream proxy
- proxyPort
- The up stream proxys port, if a proxyHost is pecified (defaults to 80)
author: Stephen Uhler version: 1.20, 12/11/00 |
auth | public String auth(Code) | | The string to send as the value for the "Proxy-Authorization"
HTTP header (if needed).
|
proxyPort | public int proxyPort(Code) | | The proxy server's port. Default is 80.
|
init | public boolean init(Server server, String prefix)(Code) | | Do one-time setup.
get and process the properties file options, and make sure
|
|
|