Package io.milton.httpclient
Class HostBuilder
java.lang.Object
io.milton.httpclient.HostBuilder
- Author:
- brad
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCache()intgetPort()getProxy()intgetUser()booleanisSecure()voidvoidsetFileSyncer(FileSyncer fileSyncer) voidsetPassword(String password) voidsetPort(int port) voidsetProxy(ProxyDetails proxy) voidsetRootPath(String rootPath) voidsetSecure(boolean secure) voidvoidsetTimeoutMillis(int timeoutMillis) void
-
Constructor Details
-
HostBuilder
public HostBuilder()
-
-
Method Details
-
buildHost
-
getServer
- Returns:
- the server
-
setServer
- Parameters:
server- the server to set
-
setSecure
public void setSecure(boolean secure) -
isSecure
public boolean isSecure() -
getPort
public int getPort()- Returns:
- the port
-
setPort
public void setPort(int port) - Parameters:
port- the port to set
-
getUser
- Returns:
- the user
-
setUser
- Parameters:
user- the user to set
-
getPassword
- Returns:
- the password
-
setPassword
- Parameters:
password- the password to set
-
getRootPath
- Returns:
- the rootPath
-
setRootPath
- Parameters:
rootPath- the rootPath to set
-
getProxy
-
setProxy
-
getCache
-
setCache
-
getTimeoutMillis
public int getTimeoutMillis() -
setTimeoutMillis
public void setTimeoutMillis(int timeoutMillis) -
getFileSyncer
-
setFileSyncer
-