Tabnine Logo
XmlDetectionUtil
Code IndexAdd Tabnine to your IDE (free)

How to use
XmlDetectionUtil
in
ca.uhn.fhir.util

Best Java code snippets using ca.uhn.fhir.util.XmlDetectionUtil (Showing top 4 results out of 315)

origin: jamesagnew/hapi-fhir

@Override
protected String parse(String theValue) {
  if (XmlDetectionUtil.isStaxPresent()) {
    // for validation
    XmlUtil.parse(theValue);
  }
  return theValue;
}
origin: jamesagnew/hapi-fhir

BaseClient(IHttpClient theClient, String theUrlBase, RestfulClientFactory theFactory) {
  super();
  myClient = theClient;
  myUrlBase = theUrlBase;
  myFactory = theFactory;
  /*
   * This property is used by unit tests - do not rely on it in production code
   * as it may change at any time. If you want to capture responses in a reliable
   * way in your own code, just use client interceptors
   */
  if ("true".equals(System.getProperty(HAPI_CLIENT_KEEPRESPONSES))) {
    setKeepResponses(true);
  }
  if (XmlDetectionUtil.isStaxPresent() == false) {
    myEncoding = EncodingEnum.JSON;
  }
}
origin: ca.uhn.hapi.fhir/hapi-fhir-base

@Override
protected String parse(String theValue) {
  if (XmlDetectionUtil.isStaxPresent()) {
    // for validation
    XmlUtil.parse(theValue);
  }
  return theValue;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-client

BaseClient(IHttpClient theClient, String theUrlBase, RestfulClientFactory theFactory) {
  super();
  myClient = theClient;
  myUrlBase = theUrlBase;
  myFactory = theFactory;
  /*
   * This property is used by unit tests - do not rely on it in production code
   * as it may change at any time. If you want to capture responses in a reliable
   * way in your own code, just use client interceptors
   */
  if ("true".equals(System.getProperty(HAPI_CLIENT_KEEPRESPONSES))) {
    setKeepResponses(true);
  }
  if (XmlDetectionUtil.isStaxPresent() == false) {
    myEncoding = EncodingEnum.JSON;
  }
}
ca.uhn.fhir.utilXmlDetectionUtil

Most used methods

  • isStaxPresent
    This method will return true if a StAX XML parsing library is present on the classpath

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now