Class URLTransport

java.lang.Object
ca.uhn.hl7v2.protocol.impl.AbstractTransport
ca.uhn.hl7v2.protocol.impl.URLTransport
All Implemented Interfaces:
TransportLayer

public class URLTransport extends AbstractTransport implements TransportLayer
A TransportLayer that reads and writes from an URL (for example over HTTP).
Version:
$Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:26 $ by $Author: jamesagnew $
Author:
Bryan Tripp, Alexei Guevara
  • Field Details

  • Constructor Details

    • URLTransport

      public URLTransport(URL theURL, boolean connectOnSend, boolean connectOnReceive, boolean connectOnConnect)
      The boolean configuration flags determine when new connections are made. For example if this transport is being used for query/response, you might set connectOnSend to true and the others to false, so that each query/response is done over a fresh connection. If you are using a transport just to read data from a URL, you might set connectOnReceive to true and the others to false.
      Parameters:
      theURL - the URL at which messages are to be read and written
      connectOnSend - makes a new connection before each send
      connectOnReceive - makes a new connection before each receive
      connectOnConnect - makes a new connection when connect() is called
  • Method Details