Examples of parseIntoBuilder()


Examples of thredds.catalog2.xml.parser.ThreddsXmlParser.parseIntoBuilder()

    URI docBaseUri = new URI( baseUriString );
    DateType expires = new DateType( false, new Date( System.currentTimeMillis() + 60*60*1000));
    String xml = CatalogXmlUtils.getCatalog( expires);

    ThreddsXmlParser cp = StaxThreddsXmlParser.newInstance();
    CatalogBuilder catBuilder = cp.parseIntoBuilder( new StringReader( xml ),
                                                     docBaseUri );
    assertNotNull( catBuilder );

    CatalogXmlUtils.assertCatalogAsExpected( catBuilder, docBaseUri, expires);
  }
View Full Code Here

Examples of thredds.catalog2.xml.parser.ThreddsXmlParser.parseIntoBuilder()

    URI docBaseUri = new URI( baseUriString );
    DateType expires = new DateType( false, new Date( System.currentTimeMillis() + 60*60*1000));
    String xml = CatalogXmlUtils.getCatalogWithService( expires);

    ThreddsXmlParser cp = StaxThreddsXmlParser.newInstance();
    CatalogBuilder catBuilder = cp.parseIntoBuilder( new StringReader( xml ),
                                                     docBaseUri );
    assertNotNull( catBuilder );

    CatalogXmlUtils.assertCatalogWithServiceAsExpected( catBuilder, docBaseUri, expires);
  }
View Full Code Here

Examples of thredds.catalog2.xml.parser.ThreddsXmlParser.parseIntoBuilder()

    URI docBaseUri = new URI( baseUriString );
    DateType expires = new DateType( false, new Date( System.currentTimeMillis() + 60*60*1000));
    String xml = CatalogXmlUtils.getCatalogWithCompoundService( expires);

    ThreddsXmlParser cp = StaxThreddsXmlParser.newInstance();
    CatalogBuilder catBuilder = cp.parseIntoBuilder( new StringReader( xml ),
                                                     docBaseUri );
    assertNotNull( catBuilder );

    CatalogXmlUtils.assertCatalogWithCompoundServiceAsExpected( catBuilder, docBaseUri, expires);
  }
View Full Code Here

Examples of thredds.catalog2.xml.parser.ThreddsXmlParser.parseIntoBuilder()

    String xml = CatalogXmlUtils.getCatalogWithSingleAccessDatasetWithRawServiceName();
    String baseUriString = "http://cat2.stax.ParseAccessibleDatasetTest/RawServiceName.xml";

    ThreddsXmlParser cp = StaxThreddsXmlParser.newInstance();
    URI docBaseUri = new URI( baseUriString );
    CatalogBuilder catBuilder = cp.parseIntoBuilder( new StringReader( xml ),
                                                     docBaseUri );
    assertNotNull( catBuilder );

    CatalogXmlUtils.assertCatalogHasSingleAccessDataset( catBuilder, docBaseUri );
  }
View Full Code Here

Examples of thredds.catalog2.xml.parser.ThreddsXmlParser.parseIntoBuilder()

    String xml = CatalogXmlUtils.getCatalogWithSingleAccessDatasetWithMetadataServiceName();
    String baseUriString = "http://cat2.stax.ParseAccessibleDatasetTest/MetadataServiceName.xml";

    ThreddsXmlParser cp = StaxThreddsXmlParser.newInstance();
    URI docBaseUri = new URI( baseUriString );
    CatalogBuilder catBuilder = cp.parseIntoBuilder( new StringReader( xml ),
                                                     docBaseUri );
    assertNotNull( catBuilder );

    CatalogXmlUtils.assertCatalogHasSingleAccessDataset( catBuilder, docBaseUri );
  }
View Full Code Here

Examples of thredds.catalog2.xml.parser.ThreddsXmlParser.parseIntoBuilder()

    String xml = CatalogXmlUtils.getCatalogWithSingleAccessDatasetWithInheritedMetadataServiceName();
    String baseUriString = "http://cat2.stax.ParseAccessibleDatasetTest/InheritedMetadataServiceName.xml";

    ThreddsXmlParser cp = StaxThreddsXmlParser.newInstance();
    URI docBaseUri = new URI( baseUriString );
    CatalogBuilder catBuilder = cp.parseIntoBuilder( new StringReader( xml ),
                                                     docBaseUri );
    assertNotNull( catBuilder );

    CatalogXmlUtils.assertCatalogHasSingleAccessDataset( catBuilder, docBaseUri );
  }
View Full Code Here

Examples of thredds.catalog2.xml.parser.ThreddsXmlParser.parseIntoBuilder()

    String xml = CatalogXmlUtils.getCatalogWithSingleAccessDatasetOldStyle();
    String baseUriString = "http://cat2.stax.ParseAccessibleDatasetTest/OldStyleAccess.xml";

    ThreddsXmlParser cp = StaxThreddsXmlParser.newInstance();
    URI docBaseUri = new URI( baseUriString );
    CatalogBuilder catBuilder = cp.parseIntoBuilder( new StringReader( xml ),
                                                     docBaseUri );
    assertNotNull( catBuilder );

    CatalogXmlUtils.assertCatalogHasSingleAccessDataset( catBuilder, docBaseUri );
  }
View Full Code Here

Examples of thredds.catalog2.xml.parser.ThreddsXmlParser.parseIntoBuilder()

      System.out.println( "Catalog ["+baseUriString+"]:\n" + xml );


      ThreddsXmlParser cp = StaxThreddsXmlParser.newInstance();
    URI docBaseUri = new URI( baseUriString );
    CatalogBuilder catBuilder = cp.parseIntoBuilder( new StringReader( xml ),
                                                     docBaseUri );
    assertNotNull( catBuilder );

    CatalogXmlUtils.assertNestedDatasetIsNotAccessible( catBuilder, docBaseUri );
  }
View Full Code Here

Examples of thredds.catalog2.xml.parser.ThreddsXmlParser.parseIntoBuilder()

    String xml = CatalogXmlUtils.getNestedDatasetWithMetadataServiceName();
    String baseUriString = "http://cat2.stax.ParseNestedDatasetTest/MetadataServiceNameNotAccessible.xml";

    ThreddsXmlParser cp = StaxThreddsXmlParser.newInstance();
    URI docBaseUri = new URI( baseUriString );
    CatalogBuilder catBuilder = cp.parseIntoBuilder( new StringReader( xml ),
                                                     docBaseUri );
    assertNotNull( catBuilder );

    CatalogXmlUtils.assertNestedDatasetIsNotAccessible( catBuilder, docBaseUri );
  }
View Full Code Here

Examples of thredds.catalog2.xml.parser.ThreddsXmlParser.parseIntoBuilder()

    String xml = CatalogXmlUtils.getNestedDatasetWithUninheritedMetadataServiceName();
    String baseUriString = "http://cat2.stax.ParseNestedDatasetTest/UninheritedMetadataServiceNameNotAccessible.xml";

    ThreddsXmlParser cp = StaxThreddsXmlParser.newInstance();
    URI docBaseUri = new URI( baseUriString );
    CatalogBuilder catBuilder = cp.parseIntoBuilder( new StringReader( xml ),
                                                     docBaseUri );
    assertNotNull( catBuilder );

    CatalogXmlUtils.assertNestedDatasetIsNotAccessible( catBuilder, docBaseUri );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.