| Modifier and Type | Field and Description |
|---|---|
private String |
charset |
private Connection |
conn |
private Device |
device |
private static SAXTransformerFactory |
factory |
private HL7MessageListener |
handler |
private HL7Application |
hl7App |
private HL7DeviceExtension |
hl7Ext |
private static ResourceBundle |
rb |
private String |
storageDir |
private Templates |
tpls |
private String[] |
xsltParams |
| Constructor and Description |
|---|
HL7Rcv() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addOptions(org.apache.commons.cli.Options opts) |
private static void |
configure(HL7Rcv main,
org.apache.commons.cli.CommandLine cl) |
private static void |
configureBindServer(Connection conn,
org.apache.commons.cli.CommandLine cl) |
Connection |
getConn() |
Device |
getDevice() |
static void |
main(String[] args) |
private byte[] |
onMessage(HL7Segment msh,
byte[] msg,
int off,
int len) |
private static org.apache.commons.cli.CommandLine |
parseComandLine(String[] args) |
void |
setCharacterSet(String charset) |
void |
setStorageDirectory(String storageDir) |
void |
setXSLT(URL xslt) |
void |
setXSLTParameters(String[] xsltParams) |
private void |
storeToFile(byte[] msg,
int off,
int len,
File f) |
private byte[] |
xslt(HL7Segment msh,
byte[] msg,
int off,
int len) |
private static final ResourceBundle rb
private static SAXTransformerFactory factory
private final HL7DeviceExtension hl7Ext
private final HL7Application hl7App
private final Connection conn
private String storageDir
private String[] xsltParams
private final HL7MessageListener handler
public HL7Rcv() throws IOException
IOExceptionpublic void setStorageDirectory(String storageDir)
public void setXSLTParameters(String[] xsltParams)
public void setCharacterSet(String charset)
private static org.apache.commons.cli.CommandLine parseComandLine(String[] args) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseExceptionpublic static void addOptions(org.apache.commons.cli.Options opts)
private static void configure(HL7Rcv main, org.apache.commons.cli.CommandLine cl) throws Exception, MalformedURLException, org.apache.commons.cli.ParseException, IOException
ExceptionMalformedURLExceptionorg.apache.commons.cli.ParseExceptionIOExceptionprivate static void configureBindServer(Connection conn, org.apache.commons.cli.CommandLine cl) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseExceptionprivate byte[] onMessage(HL7Segment msh, byte[] msg, int off, int len) throws Exception
Exceptionprivate void storeToFile(byte[] msg, int off, int len, File f) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionprivate byte[] xslt(HL7Segment msh, byte[] msg, int off, int len) throws Exception
Exceptionpublic Connection getConn()
Copyright © 2017 dcm4che.org. All rights reserved.