Package org.cyclos.server.utils
Class HttpServiceFactory
- java.lang.Object
-
- org.cyclos.server.utils.HttpServiceFactory
-
-
Constructor Summary
Constructors Constructor Description HttpServiceFactory()HttpServiceFactory(String rootUrl, HttpServiceInvocationData invocationData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Removes any cached proxiesvoiddestroy()Destroys any acquired resourcesintgetConnectTimeout()HttpServiceInvocationDatagetInvocationData()<T extends Service>
TgetProxy(Class<T> serviceInterface)intgetReadTimeout()StringgetRootUrl()voidsetConnectTimeout(int connectTimeout)Sets the connection timeout.voidsetInvocationData(HttpServiceInvocationData invocationData)voidsetReadTimeout(int readTimeout)Sets the timeout for waiting for a server response once connected.voidsetRootUrl(String rootUrl)
-
-
-
Constructor Detail
-
HttpServiceFactory
public HttpServiceFactory()
-
HttpServiceFactory
public HttpServiceFactory(String rootUrl, HttpServiceInvocationData invocationData)
-
-
Method Detail
-
clear
public void clear()
Removes any cached proxies
-
destroy
public void destroy()
Destroys any acquired resources
-
getConnectTimeout
public int getConnectTimeout()
-
getInvocationData
public HttpServiceInvocationData getInvocationData()
-
getReadTimeout
public int getReadTimeout()
-
getRootUrl
public String getRootUrl()
-
setConnectTimeout
public void setConnectTimeout(int connectTimeout)
Sets the connection timeout. Set to zero for infinite.
-
setInvocationData
public void setInvocationData(HttpServiceInvocationData invocationData)
-
setReadTimeout
public void setReadTimeout(int readTimeout)
Sets the timeout for waiting for a server response once connected. Set to zero for infinite.
-
setRootUrl
public void setRootUrl(String rootUrl)
-
-