Lines Matching refs:type
20 * Proxy} stores a type and an address and is immutable. There are three types
30 * Represents the proxy type setting {@code Proxy.Type.DIRECT}. It tells
36 private Proxy.Type type;
42 * {@code null} when {@code type} is either {@code Proxy.Type.HTTP} or
44 * the proxy type {@code Proxy.Type.DIRECT}, use {@code Proxy.NO_PROXY}
47 * @param type
48 * the proxy type of this instance.
52 * if the parameter {@code type} is set to {@code
56 public Proxy(Proxy.Type type, SocketAddress sa) {
58 * Don't use DIRECT type to construct a proxy instance directly.
61 if (type == Type.DIRECT || sa == null) {
64 this.type = type;
69 * Constructs a Proxy instance, which is Proxy.DIRECT type with null
73 type = Type.DIRECT;
78 * Gets the type of this {@code Proxy} instance.
80 * @return the stored proxy type.
82 public Proxy.Type type() {
83 return type;
89 * @return the stored proxy address or {@code null} if the proxy type is
98 * includes the two parts {@code type.toString()} and {@code
106 if (type != null) {
107 builder.append(type.toString());
110 if (type != Proxy.Type.DIRECT && address != null) {
119 * instance of {@code Proxy} with the same address and the same type value
138 return (type == another.type) && address.equals(another.address);
149 ret += type.hashCode();
157 * {@code Enum} class for the proxy type. Possible options are {@code
167 * HTTP type proxy. It's often used by protocol handlers such as HTTP,
173 * SOCKS type proxy.