public class I2b2XmlPostSupport extends Object
| Constructor and Description |
|---|
I2b2XmlPostSupport(I2b2Properties inProperties) |
| Modifier and Type | Method and Description |
|---|---|
protected InputStream |
executePost(String xml) |
String |
generateMessageId()
Generates a random message number for i2b2 requests.
|
I2b2Properties |
getProperties() |
Document |
postXmlToI2b2(String xml)
Performs an HTTP POST of an XML request to the i2b2 proxy cell.
|
@Inject public I2b2XmlPostSupport(I2b2Properties inProperties)
public Document postXmlToI2b2(String xml) throws IOException, IllegalStateException, SAXException, ParserConfigurationException
xml - the XML request to sendDocumentIOException - if an error occursParserConfigurationException - if an error occursSAXException - if an error occursIllegalStateException - if an error occurspublic I2b2Properties getProperties()
public String generateMessageId()
protected InputStream executePost(String xml) throws IOException
IOExceptionCopyright © 2016 Emory University. All rights reserved.