public interface IClientSimple extends IClient
Modifier and Type | Method and Description |
---|---|
void |
close()
If a socket exists and it is connected, closes the socket.
|
boolean |
isAutoClose() |
boolean |
isConnected() |
void |
setAutoClose(boolean theAutoClose)
Sets the auto-close property.
|
getHost, getPort, getSocketFactory, getSoTimeout, getUriPath, getUrl, getUrlString, isKeepAlive, setAuthorizationCallback, setCharset, setHost, setKeepAlive, setPort, setResponseTimeout, setSigner, setSocketFactory, setSoTimeout, setUriPath, setUrl, setUrlString
void close()
auto close
mode is falseboolean isAutoClose()
setAutoClose(boolean)
boolean isConnected()
void setAutoClose(boolean theAutoClose)
Sets the auto-close property. If set to true (which is the default), the
client will close the socket between each request. If set to
false
, the client will keep the socket open between
requests.
If auto-close is disabled, sockets will never automatically disconnect,
which some servers may not like. The socket can still be closed by
calling close()
.
Copyright © 2012–2017 University Health Network. All rights reserved.