Package ca.uhn.hl7v2.parser

Examples of ca.uhn.hl7v2.parser.PipeParser


    this(new PipeParser(), new MinLowerLayerProtocol(), inboundPort,
        outboundPort, false);
  }

  public TwoPortService(int inboundPort, int outboundPort, boolean tls) {
    this(new PipeParser(), new MinLowerLayerProtocol(), inboundPort,
        outboundPort, tls);
  }
View Full Code Here


  /**
   * Creates a new instance of SimpleServer that listens on the given port,
   * using the {@link MinLowerLayerProtocol} and a standard {@link PipeParser}.
   */
  public SimpleServer(int port) {
    this(port, new MinLowerLayerProtocol(), new PipeParser(), false);
  }
View Full Code Here

  /**
   * Creates a new instance of SimpleServer that listens on the given port,
   * using the {@link MinLowerLayerProtocol} and a standard {@link PipeParser}.
   */
  public SimpleServer(int port, boolean tls) {
    this(port, new MinLowerLayerProtocol(), new PipeParser(), tls);
 
View Full Code Here

     * <p>Serialization note: The message parser is marked as transient, so it will not
     * survive serialization.</p>
     */
    public Parser getParser() {
        if (myParser == null) {
            myParser = new PipeParser();
        }

        return myParser;
    }
View Full Code Here

    private MessageTypeRouter router;
    private JCheckBox xmlCheckBox;
   
    /** Creates a new instance of TestPanel */
    public TestPanel() throws HL7Exception {
        this.pparser = new PipeParser();
        this.parser = new GenericParser();
        connections = new Vector();
        router = new MessageTypeRouter();
        initUI();
    }
View Full Code Here

            //set up connection to server
            String host = args[0];
            int port = Integer.parseInt(args[1]);

            final Parser parser = new PipeParser();
            LowerLayerProtocol llp = LowerLayerProtocol.makeLLP();
            Connection connection = new Connection(parser, llp, new Socket(host, port));
            final Initiator initiator = connection.getInitiator();
            final String outText = "MSH|^~\\&|||||||ACK^^ACK|||R|2.4|\rMSA|AA";

            //get a bunch of threads to send messages
            for (int i = 0; i < 1000; i++) {
                Thread sender = new Thread(new Runnable() {
                    public void run() {
                        try {
                                //get message ID
    String ID = MessageIDGenerator.getInstance().getNewID();
                            Message out = parser.parse(outText);
                            Terser tOut = new Terser(out);
                            tOut.set("/MSH-10", ID);

                            //send, get response
                            Message in = initiator.sendAndReceive(out);
View Full Code Here

    }
   
    public int process( InputStream theMsgInputStream ) throws FileNotFoundException, IOException
    {
        Parser hapiParser = new PipeParser();
       
        BufferedReader in =
            new BufferedReader(
                new CommentFilterReader( new InputStreamReader( theMsgInputStream ) )
            );
View Full Code Here

        if (args.length == 3) {
            appFile = new File(args[2]);
        }

        try {
            TwoPortService server = new TwoPortService(new PipeParser(), LowerLayerProtocol.makeLLP(), inPort, outPort);
            if (appFile != null)
                server.loadApplicationsFromFile(appFile);
            server.start();
        }
        catch (Exception e) {
View Full Code Here

        if (args.length == 2) {
            appFile = new File(args[1]);
        }

        try {
            SimpleServer server = new SimpleServer(port, LowerLayerProtocol.makeLLP(), new PipeParser());
            if (appFile != null)
                server.loadApplicationsFromFile(appFile);
            server.start();
        }
        catch (Exception e) {
View Full Code Here

    * @version $Revision: 1.1 $ updated on $Date: 2007/02/19 02:24:27 $ by $Author: jamesagnew $
    */
    public static String[] read( InputStream theMsgInputStream )
     throws FileNotFoundException, IOException
    {
        Parser hapiParser = new PipeParser();
       
        BufferedReader in =
            new BufferedReader(
                new CommentFilterReader( new InputStreamReader( theMsgInputStream ) )
            );
View Full Code Here

TOP

Related Classes of ca.uhn.hl7v2.parser.PipeParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.