Package ca.uhn.hl7v2

Examples of ca.uhn.hl7v2.DefaultHapiContext


 
  /**
   * Uses DefaultModelClassFactory for model class lookup.
   */
  public Parser() {
    this(new DefaultHapiContext());
  }
View Full Code Here


   * Initialize parser with custom ModelClassFactory and default ValidationContext
   *
   * @param modelClassFactory custom factory to use for model class lookup
   */
  public Parser(ModelClassFactory modelClassFactory) {
    this(new DefaultHapiContext(modelClassFactory));
  }
View Full Code Here

   *            this parser (defaults to ValidationContextFactory.DefaultValidation)
   *
   * @deprecated use a dedicated {@link HapiContext} and set its ValidationContext property
   */
  public void setValidationContext(ValidationContext context) {
    HapiContext newContext = new DefaultHapiContext(getHapiContext());
    newContext.setValidationContext(context);
    setHapiContext(newContext);
  }
View Full Code Here

   * @param configuration The parser configuration
   *
   * @deprecated use a dedicated {@link HapiContext} and set its ParserConfiguration property
   */
  public void setParserConfiguration(ParserConfiguration configuration) {
    HapiContext newContext = new DefaultHapiContext(getHapiContext());
    newContext.setParserConfiguration(configuration);
    setHapiContext(newContext);
  }
View Full Code Here

  private boolean validateChildren = true;
  private CodeStore codeStore;

  /** Creates a new instance of DefaultValidator */
  public DefaultValidator() {
      this(new DefaultHapiContext());
  }
View Full Code Here

  /** Creates a new instance of TwoPortService */
  public TwoPortService(Parser parser, LowerLayerProtocol llp,
      int inboundPort, int outboundPort, boolean tls,
      ExecutorService executorService) {
    super(parser, llp, executorService);
    this.hapiContext = new DefaultHapiContext();
    this.queue = new LinkedBlockingQueue<AcceptedSocket>();
    this.inboundPort = inboundPort;
    this.outboundPort = outboundPort;
    this.tls = tls;
  }
View Full Code Here

   * NoValidation validation context}.
     *
     * @return PipeParser with disabled validation
   */
  public static PipeParser getInstanceWithNoValidation() {
    HapiContext context = new DefaultHapiContext();
    context.setValidationContext(ValidationContextFactory.noValidation());
    return new PipeParser(context);
  }
View Full Code Here

  private final ConcurrentMap<String, String> connectionMutexes = new ConcurrentHashMap<String, String>();
  private final CountingMap<ConnectionData, Connection> connections;

  /** Creates a new instance of ConnectionHub */
  private ConnectionHub(ExecutorService executorService) {
    this(new DefaultHapiContext(executorService));
  }
View Full Code Here

  public SimpleServer(int port, LowerLayerProtocol llp, Parser parser, boolean tls,
      ExecutorService executorService) {
    super(parser, llp, executorService);
    this.port = port;
    this.tls = tls;
    this.hapiContext = new DefaultHapiContext();
    this.queue = new LinkedBlockingQueue<AcceptedSocket>(100);
  }
View Full Code Here

  private final ConcurrentMap<String, String> connectionMutexes = new ConcurrentHashMap<String, String>();
  private final CountingMap<ConnectionData, Connection> connections;

  /** Creates a new instance of ConnectionHub */
  private ConnectionHub(ExecutorService executorService) {
    this(new DefaultHapiContext(executorService));
  }
View Full Code Here

TOP

Related Classes of ca.uhn.hl7v2.DefaultHapiContext

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.