@Test public void testExternalSchema() throws IOException { TestHttpServer server = new TestHttpServer("secret"); try { String xml = String.format( "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<!DOCTYPE oops SYSTEM \"%s\">\n" + "<oops></oops>", server.url()); parse(xml); } catch (IOException e) { } finally { server.stop(); } if (server.accepted()) { fail("Oops! The server has been reached!"); } }
public static RegionMetadata parse(final InputStream input) throws IOException { return new RegionMetadata(internalParse(input, false)); }
RegionMetadataParser { public static RegionMetadata parse(final InputStream input) throws IOException { return new RegionMetadata(internalParse(input, false)); } }
RegionMetadataParser { public static RegionMetadata parse(final InputStream input) throws IOException { return new RegionMetadata(internalParse(input, false)); } @Deprecated  RegionMetadataParser(); }
RegionMetadataParser { public static RegionMetadata parse(final InputStream input) throws IOException { return new RegionMetadata(internalParse(input, false)); } @Deprecated  RegionMetadataParser(); static RegionMetadata parse(final InputStream input); @Deprecated List<Region> parseRegionMetadata(InputStream input); @Deprecated List<Region> parseRegionMetadata(final InputStream input,
                                            final boolean endpointVerification); }
RegionMetadataParser { public static RegionMetadata parse(final InputStream input) throws IOException { return new RegionMetadata(internalParse(input, false)); } @Deprecated  RegionMetadataParser(); static RegionMetadata parse(final InputStream input); @Deprecated List<Region> parseRegionMetadata(InputStream input); @Deprecated List<Region> parseRegionMetadata(final InputStream input,
                                            final boolean endpointVerification);  }