Package io.milton.proxy
Class ProxyServer
java.lang.Object
io.milton.proxy.ProxyServer
- Direct Known Subclasses:
ProxyLogServer
proxyserver listens on given lport, forwards traffic to tport on thost
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintvoidgo()protected voidbooleanisDebug()static voidvoidrun()voidsetDebug(boolean debug) voidsetListenPort(int listenPort) voidsetTargetHost(String targetHost) voidsetTargetPort(int targetPort) voidstart()voidstop()
-
Field Details
-
thread
-
-
Constructor Details
-
ProxyServer
public ProxyServer() -
ProxyServer
-
-
Method Details
-
go
public void go() -
run
public void run() -
gotconn
- Throws:
Exception
-
main
-
start
public void start() -
stop
public void stop() -
isDebug
public boolean isDebug()- Returns:
- the debug
-
setDebug
public void setDebug(boolean debug) - Parameters:
debug- the debug to set
-
getTargetPort
public int getTargetPort()- Returns:
- the targetPort
-
setTargetPort
public void setTargetPort(int targetPort) - Parameters:
targetPort- the targetPort to set
-
getListenPort
public int getListenPort()- Returns:
- the listenPort
-
setListenPort
public void setListenPort(int listenPort) - Parameters:
listenPort- the listenPort to set
-
getTargetHost
- Returns:
- the targetHost
-
setTargetHost
- Parameters:
targetHost- the targetHost to set
-