|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonatype.aether.repository.Proxy
public final class Proxy
A proxy to use for connections to a repository. Note: Instances of this class are immutable and the exposed mutators return new objects rather than changing the current instance.
| Field Summary | |
|---|---|
static String |
TYPE_HTTP
Type denoting a proxy for HTTP transfers. |
static String |
TYPE_HTTPS
Type denoting a proxy for HTTPS transfers. |
| Constructor Summary | |
|---|---|
Proxy(String type,
String host,
int port,
Authentication auth)
Creates a new proxy with the specified properties. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Authentication |
getAuthentication()
Gets the authentication to use for the proxy connection. |
String |
getHost()
Gets the host for this proxy. |
int |
getPort()
Gets the port number for this proxy. |
String |
getType()
Gets the type of this proxy. |
int |
hashCode()
|
Proxy |
setAuthentication(Authentication auth)
Sets the authentication to use for the proxy connection. |
Proxy |
setHost(String host)
Sets the host of the proxy. |
Proxy |
setPort(int port)
Sets the port number for the proxy. |
Proxy |
setType(String type)
Sets the type of the proxy. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE_HTTP
public static final String TYPE_HTTPS
| Constructor Detail |
|---|
public Proxy(String type,
String host,
int port,
Authentication auth)
type - The type of the proxy, e.g. "http", may be null.host - The host of the proxy, may be null.port - The port of the proxy.auth - The authentication to use for the proxy connection, may be null.| Method Detail |
|---|
public String getType()
null.public Proxy setType(String type)
type - The type of the proxy, e.g. "http", may be null.
null.public String getHost()
null.public Proxy setHost(String host)
host - The host of the proxy, may be null.
null.public int getPort()
public Proxy setPort(int port)
port - The port number for the proxy.
null.public Authentication getAuthentication()
null if none.public Proxy setAuthentication(Authentication auth)
auth - The authentication to use, may be null.
null.public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||