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
IOException
public 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.ParseException
public 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
Exception
MalformedURLException
org.apache.commons.cli.ParseException
IOException
private static void configureBindServer(Connection conn, org.apache.commons.cli.CommandLine cl) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseException
private byte[] onMessage(HL7Segment msh, byte[] msg, int off, int len) throws Exception
Exception
private void storeToFile(byte[] msg, int off, int len, File f) throws FileNotFoundException, IOException
FileNotFoundException
IOException
private byte[] xslt(HL7Segment msh, byte[] msg, int off, int len) throws Exception
Exception
public Connection getConn()
Copyright © 2017 dcm4che.org. All rights reserved.