public class RelayHttpSender extends HohClientMultithreaded implements IRelaySender<Message>, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
RelayHttpSender() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
boolean |
canProcess(Message theMessage)
Returns true
|
String |
getBeanName() |
int |
getIoRetries() |
Message |
processMessage(Message theMessage,
Map<String,Object> theMetadata) |
void |
setBeanName(String theBeanName)
Automatically called by the container
|
void |
setIoRetries(int theIoRetries)
If set to a positive integer, the relay will attempt to redeliver a message up to the given
number of times before giving up, if the transmission fails due to an IO exception.
|
getSocketTimeout, setSocketTimeoutgetHost, getParser, getPort, getRawClient, getSocketFactory, getSoTimeout, getUriPath, getUrl, getUrlString, isKeepAlive, sendAndReceiveMessage, sendAndReceiveMessage, setAuthorizationCallback, setCharset, setHost, setKeepAlive, setParser, setPort, setResponseTimeout, setSigner, setSocketFactory, setSoTimeout, setUriPath, setUrl, setUrlStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHost, getPort, getSocketFactory, getSoTimeout, getUriPath, getUrl, getUrlString, isKeepAlive, setAuthorizationCallback, setCharset, setHost, setKeepAlive, setPort, setResponseTimeout, setSigner, setSocketFactory, setSoTimeout, setUriPath, setUrl, setUrlStringpublic RelayHttpSender()
public void afterPropertiesSet() throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic boolean canProcess(Message theMessage)
canProcess in interface ReceivingApplication<Message>public String getBeanName()
getBeanName in interface org.springframework.beans.factory.NamedBeanpublic int getIoRetries()
setIoRetries(int)public Message processMessage(Message theMessage, Map<String,Object> theMetadata) throws ReceivingApplicationException, HL7Exception
processMessage in interface ReceivingApplication<Message>ReceivingApplicationExceptionHL7Exceptionpublic void setBeanName(String theBeanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setIoRetries(int theIoRetries)
Copyright © 2012–2017 University Health Network. All rights reserved.