Package org.eclipse.aether.repository
Class Proxy
java.lang.Object
org.eclipse.aether.repository.Proxy
A proxy to use for connections to a repository.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
TYPE_HTTP
Type denoting a proxy for HTTP transfers.- See Also:
-
TYPE_HTTPS
Type denoting a proxy for HTTPS transfers.- See Also:
-
-
Constructor Details
-
Proxy
Creates a new proxy with the specified properties and no authentication.- Parameters:
type
- The type of the proxy, e.g. "http", may benull
.host
- The host of the proxy, may benull
.port
- The port of the proxy.
-
Proxy
Creates a new proxy with the specified properties.- Parameters:
type
- The type of the proxy, e.g. "http", may benull
.host
- The host of the proxy, may benull
.port
- The port of the proxy.auth
- The authentication to use for the proxy connection, may benull
.
-
-
Method Details
-
getType
Gets the type of this proxy.- Returns:
- The type of this proxy, never
null
.
-
getHost
Gets the host for this proxy.- Returns:
- The host for this proxy, never
null
.
-
getPort
Gets the port number for this proxy.- Returns:
- The port number for this proxy.
-
getAuthentication
Gets the authentication to use for the proxy connection.- Returns:
- The authentication to use or
null
if none.
-
toString
-
equals
-
hashCode
-