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, setSocketTimeout
getHost, getParser, getPort, getRawClient, getSocketFactory, getSoTimeout, getUriPath, getUrl, getUrlString, isKeepAlive, sendAndReceiveMessage, sendAndReceiveMessage, setAuthorizationCallback, setCharset, setHost, setKeepAlive, setParser, setPort, setResponseTimeout, setSigner, setSocketFactory, setSoTimeout, setUriPath, setUrl, setUrlString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHost, getPort, getSocketFactory, getSoTimeout, getUriPath, getUrl, getUrlString, isKeepAlive, setAuthorizationCallback, setCharset, setHost, setKeepAlive, setPort, setResponseTimeout, setSigner, setSocketFactory, setSoTimeout, setUriPath, setUrl, setUrlString
public RelayHttpSender()
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public boolean canProcess(Message theMessage)
canProcess
in interface ReceivingApplication<Message>
public String getBeanName()
getBeanName
in interface org.springframework.beans.factory.NamedBean
public int getIoRetries()
setIoRetries(int)
public Message processMessage(Message theMessage, Map<String,Object> theMetadata) throws ReceivingApplicationException, HL7Exception
processMessage
in interface ReceivingApplication<Message>
ReceivingApplicationException
HL7Exception
public void setBeanName(String theBeanName)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public void setIoRetries(int theIoRetries)
Copyright © 2012–2017 University Health Network. All rights reserved.