public class Main extends Object
| Constructor and Description |
|---|
Main() |
| Modifier and Type | Method and Description |
|---|---|
void |
debug()
Enable logging; repeat for more logging.
|
void |
dontHandleProxyAuthentication()
Don't handle 407 responses, but return them to the client.
|
void |
help()
Prints this text.
|
static void |
main(String[] args)
Implements an HTTP proxy that forwards requests to another HTTP proxy.
|
void |
noWarn()
Don't print warnings.
|
void |
setEndpointAddress(InetAddress address)
The address of the interface that AUTOAUTH binds to.
|
void |
setEndpointPort(int portNumber)
The port that AUTOAUTH binds to.
|
void |
setHandleServerAuthentication()
Handle 401 responses; default is to return them to the client.
|
void |
setPrompt(String text)
The "realm" string that is displayed in the proxy authentication dialog.
|
void |
setTargetAddress(InetAddress address)
The address of the "real" HTTP proxy to connect to.
|
void |
setTargetPort(int portNumber)
The port of the "real" HTTP proxy to connect to.
|
void |
verbose()
Log request URLs and response status to STDOUT.
|
public static final Logger LOGGER
public static void main(String[] args) throws IOException, Exception
Usage:
autoauth [ command-line-option ] ...
Valid command line options are:
IOExceptionExceptionpublic void help()
throws IOException
IOExceptionpublic void setEndpointAddress(InetAddress address)
localhost allows only local
processes to connect.address - <host-name-or-ip-address>public void setEndpointPort(int portNumber)
public void setTargetAddress(InetAddress address)
address - <host-name-or-ip-address>public void setTargetPort(int portNumber)
public void setPrompt(String text)
public void setHandleServerAuthentication()
public void dontHandleProxyAuthentication()
public void noWarn()
public void verbose()
public void debug()
Copyright © 2018. All rights reserved.