public static class ProxyServer.Builder extends BasicServer.Builder<ProxyServer.Builder,ProxyServer> implements Server.ProxyBuilder<ProxyServer.Builder,ProxyServer>
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ProxyServer.Builder |
addProxy(java.lang.String hostName,
java.lang.String proxyHost)
Add host address to proxy.
|
ProxyServer |
build()
Create a server.
|
inetAddress, listener, port, serverSocketFactory, sslContext, sslSocketInitializer, timeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinetAddress, listener, port, serverSocketFactory, sslContext, sslSocketInitializer, timeoutpublic ProxyServer.Builder addProxy(java.lang.String hostName, java.lang.String proxyHost)
Server.ProxyBuilderaddProxy in interface Server.ProxyBuilder<ProxyServer.Builder,ProxyServer>hostName - such as: www.example.com, api.example.com, 192.168.1.111.proxyHost - such as: http://127.0.0.1:8080, http://localhost:8181public ProxyServer build()
Server.ProxyBuilderbuild in interface Server.ProxyBuilder<ProxyServer.Builder,ProxyServer>build in class BasicServer.Builder<ProxyServer.Builder,ProxyServer>