|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.languagecomputer.api.ServiceConfig
public class ServiceConfig
Maintains the URLs to use for various services.
Constructor Summary | |
---|---|
ServiceConfig()
Creates an empty ServiceConfig . |
|
ServiceConfig(File serviceFile)
Creates a new ServiceConfig with an existing properties file. |
Method Summary | |
---|---|
Long |
getConnectTimeout(String serviceName)
Returns the connection timeout to use for the given service. |
Long |
getReceiveTimeout(String serviceName)
Returns the receive timeout to use for the given service. |
String |
getURL(String serviceName)
Returns the URL to use for the given service. |
void |
setConnectTimeout(String serviceName,
long connectTimeout)
Sets the connection timeout to use for the given service. |
void |
setReceiveTimeout(String serviceName,
long receiveTimeout)
Sets the receive timeout to use for the given service. |
void |
setURL(String serviceName,
String url)
Sets the URL to use for the given service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceConfig()
ServiceConfig
.
public ServiceConfig(File serviceFile) throws IOException
ServiceConfig
with an existing properties file.
IOException
Method Detail |
---|
public String getURL(String serviceName)
public void setURL(String serviceName, String url)
public Long getConnectTimeout(String serviceName)
null
if no
connection timeout has been specified and a default should be used.public void setConnectTimeout(String serviceName, long connectTimeout)
public Long getReceiveTimeout(String serviceName)
null
if no
connection timeout has been specified and a default should be used.public void setReceiveTimeout(String serviceName, long receiveTimeout)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |