public interface IClient
Modifier and Type | Method and Description |
---|---|
String |
getHost()
Getter for the host (e.g.
|
int |
getPort()
Getter for the port (e.g.
|
ISocketFactory |
getSocketFactory()
Returns the socket factory used by this client
|
int |
getSoTimeout()
Returns the TCP SO Timeout setting for new connections
|
String |
getUriPath()
Getter for the "Path" portion of the URL.
|
URL |
getUrl()
Getter for the URL to send messages to.
|
String |
getUrlString()
Getter for the URL to send messages to.
|
boolean |
isKeepAlive()
Returns the TCP KeepAlive flag for new connections
|
void |
setAuthorizationCallback(IAuthorizationClientCallback theAuthorizationCallback)
If set, provides a callback which will be used to se the username and
password associated with the request
|
void |
setCharset(Charset theCharset)
Sets the charset to use for requests from this client.
|
void |
setHost(String theHost)
Setter for the host (e.g.
|
void |
setKeepAlive(boolean theKeepAlive)
Configures the TCP KeepAlive flag for new connections
|
void |
setPort(int thePort)
Getter for the port (e.g.
|
void |
setResponseTimeout(long theResponseTimeout)
Sets the number of milliseconds before timing out.
|
void |
setSigner(ISigner theSigner) |
void |
setSocketFactory(ISocketFactory theSocketFactory)
Sets the socket factory used by this client.
|
void |
setSoTimeout(int theSoTimeout)
Sets the TCP SO Timeout setting for new connections
|
void |
setUriPath(String thePath)
Setter for the "Path" portion of the URL.
|
void |
setUrl(URL theUrl)
Setter for the URL to send messages to.
|
void |
setUrlString(String theString)
Setter for the URL to send messages to.
|
int getPort()
ISocketFactory getSocketFactory()
String getUriPath()
http://somehost.com:8888/messaging/receiver.jsp
, the URI
path portion would be /messaging/receiver.jsp
void setAuthorizationCallback(IAuthorizationClientCallback theAuthorizationCallback)
void setCharset(Charset theCharset)
Sets the charset to use for requests from this client. May be changed at any time.
Default is UTF-8
void setKeepAlive(boolean theKeepAlive)
Socket.getKeepAlive()
boolean isKeepAlive()
Socket.getKeepAlive()
void setSoTimeout(int theSoTimeout)
Socket.getSoTimeout()
int getSoTimeout()
Socket.getSoTimeout()
void setUriPath(String thePath)
http://somehost.com:8888/messaging/receiver.jsp
, the URI
path portion would be /messaging/receiver.jsp
void setPort(int thePort)
void setResponseTimeout(long theResponseTimeout)
#DEFAULT_RESPONSE_TIMEOUT
theResponseTimeout
- The millis to wait before timeout.#DEFAULT_RESPONSE_TIMEOUT
void setSigner(ISigner theSigner)
theSigner
- If provided, sets the Signature Profile signer implementation
to use. See http://hl7api.sourceforge.net/hapi-hl7overhttp/specification.
html#SIGNATURE_PROFILEvoid setSocketFactory(ISocketFactory theSocketFactory)
StandardSocketFactory
.ISocketFactory
void setUrl(URL theUrl)
setHost(String)
, setPort(int)
, or setUriPath(String)
void setUrlString(String theString)
setHost(String)
, setPort(int)
, or setUriPath(String)
String getUrlString()
Copyright © 2012–2017 University Health Network. All rights reserved.