This repository was archived by the owner on Feb 21, 2023. It is now read-only.
forked from dparmar/LittleProxy
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathChainedProxyAdapter.java
More file actions
71 lines (55 loc) · 1.46 KB
/
ChainedProxyAdapter.java
File metadata and controls
71 lines (55 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package org.littleshoot.proxy;
import io.netty.handler.codec.http.HttpObject;
import java.net.InetSocketAddress;
import javax.net.ssl.SSLEngine;
import org.littleshoot.proxy.ntlm.NtlmHandler;
/**
* Convenience base class for implementations of {@link ChainedProxy}.
*/
public class ChainedProxyAdapter implements ChainedProxy {
/**
* {@link ChainedProxy} that simply has the downstream proxy make a direct
* connection to the upstream server.
*/
public static ChainedProxy FALLBACK_TO_DIRECT_CONNECTION = new ChainedProxyAdapter();
@Override
public InetSocketAddress getChainedProxyAddress() {
return null;
}
@Override
public InetSocketAddress getLocalAddress() {
return null;
}
@Override
public TransportProtocol getTransportProtocol() {
return TransportProtocol.TCP;
}
@Override
public boolean requiresEncryption() {
return false;
}
@Override
public SSLEngine newSslEngine() {
return null;
}
@Override
public NtlmHandler getNtlmHandler() {
return null;
}
@Override
public void filterRequest(HttpObject httpObject) {
}
@Override
public void connectionSucceeded() {
}
@Override
public void connectionFailed(Throwable cause) {
}
@Override
public void disconnected() {
}
@Override
public SSLEngine newSslEngine(String peerHost, int peerPort) {
return null;
}
}