Java Code Examples for com.sun.xml.internal.ws.api.wsdl.parser.XMLEntityResolver#Parser

The following examples show how to use com.sun.xml.internal.ws.api.wsdl.parser.XMLEntityResolver#Parser . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RuntimeWSDLParser.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static WSDLModel parse(XMLEntityResolver.Parser wsdl, XMLEntityResolver resolver, boolean isClientSide, Container container, PolicyResolver policyResolver, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    assert resolver != null;
    RuntimeWSDLParser parser = new RuntimeWSDLParser( wsdl.systemId.toExternalForm(), resolver, isClientSide, container, policyResolver, extensions);
    parser.extensionFacade.start(parser.context);
    parser.parseWSDL(wsdl, false);
    parser.wsdlDoc.freeze();
    parser.extensionFacade.finished(parser.context);
    parser.extensionFacade.postFinished(parser.context);
    return parser.wsdlDoc;
}
 
Example 2
Source File: RuntimeWSDLParser.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public static WSDLModel parse(XMLEntityResolver.Parser wsdl, XMLEntityResolver resolver, boolean isClientSide, Container container, PolicyResolver policyResolver, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    assert resolver != null;
    RuntimeWSDLParser parser = new RuntimeWSDLParser( wsdl.systemId.toExternalForm(), resolver, isClientSide, container, policyResolver, extensions);
    parser.extensionFacade.start(parser.context);
    parser.parseWSDL(wsdl, false);
    parser.wsdlDoc.freeze();
    parser.extensionFacade.finished(parser.context);
    parser.extensionFacade.postFinished(parser.context);
    return parser.wsdlDoc;
}
 
Example 3
Source File: RuntimeWSDLParser.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public static WSDLModel parse(XMLEntityResolver.Parser wsdl, XMLEntityResolver resolver, boolean isClientSide, Container container, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    assert resolver != null;
    RuntimeWSDLParser parser = new RuntimeWSDLParser( wsdl.systemId.toExternalForm(), resolver, isClientSide, container, PolicyResolverFactory.create(), extensions);
    parser.extensionFacade.start(parser.context);
    parser.parseWSDL(wsdl, false);
    parser.wsdlDoc.freeze();
    parser.extensionFacade.finished(parser.context);
    parser.extensionFacade.postFinished(parser.context);
    return parser.wsdlDoc;
}
 
Example 4
Source File: RuntimeWSDLParser.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static WSDLModel parse(XMLEntityResolver.Parser wsdl, XMLEntityResolver resolver, boolean isClientSide, Container container, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    assert resolver != null;
    RuntimeWSDLParser parser = new RuntimeWSDLParser( wsdl.systemId.toExternalForm(), resolver, isClientSide, container, PolicyResolverFactory.create(), extensions);
    parser.extensionFacade.start(parser.context);
    parser.parseWSDL(wsdl, false);
    parser.wsdlDoc.freeze();
    parser.extensionFacade.finished(parser.context);
    parser.extensionFacade.postFinished(parser.context);
    return parser.wsdlDoc;
}
 
Example 5
Source File: RuntimeWSDLParser.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public static WSDLModel parse(XMLEntityResolver.Parser wsdl, XMLEntityResolver resolver, boolean isClientSide, Container container, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    assert resolver != null;
    RuntimeWSDLParser parser = new RuntimeWSDLParser( wsdl.systemId.toExternalForm(), resolver, isClientSide, container, PolicyResolverFactory.create(), extensions);
    parser.extensionFacade.start(parser.context);
    parser.parseWSDL(wsdl, false);
    parser.wsdlDoc.freeze();
    parser.extensionFacade.finished(parser.context);
    parser.extensionFacade.postFinished(parser.context);
    return parser.wsdlDoc;
}
 
Example 6
Source File: RuntimeWSDLParser.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static WSDLModel parse(XMLEntityResolver.Parser wsdl, XMLEntityResolver resolver, boolean isClientSide, Container container, PolicyResolver policyResolver, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    assert resolver != null;
    RuntimeWSDLParser parser = new RuntimeWSDLParser( wsdl.systemId.toExternalForm(), resolver, isClientSide, container, policyResolver, extensions);
    parser.extensionFacade.start(parser.context);
    parser.parseWSDL(wsdl, false);
    parser.wsdlDoc.freeze();
    parser.extensionFacade.finished(parser.context);
    parser.extensionFacade.postFinished(parser.context);
    return parser.wsdlDoc;
}
 
Example 7
Source File: RuntimeWSDLParser.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public static WSDLModel parse(XMLEntityResolver.Parser wsdl, XMLEntityResolver resolver, boolean isClientSide, Container container, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    assert resolver != null;
    RuntimeWSDLParser parser = new RuntimeWSDLParser( wsdl.systemId.toExternalForm(), resolver, isClientSide, container, PolicyResolverFactory.create(), extensions);
    parser.extensionFacade.start(parser.context);
    parser.parseWSDL(wsdl, false);
    parser.wsdlDoc.freeze();
    parser.extensionFacade.finished(parser.context);
    parser.extensionFacade.postFinished(parser.context);
    return parser.wsdlDoc;
}
 
Example 8
Source File: WSDLModel.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.
 *
 * @param wsdlEntityParser  Works like an entityResolver to resolve WSDLs
 * @param resolver  {@link XMLEntityResolver}, works at XML infoset level
 * @param isClientSide  true - its invoked on the client, false means its invoked on the server
 * @param container - container in which the parser is run
 * @param policyResolver - PolicyResolver for resolving effective Policy
 * @param extensions var args of {@link com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtension}s
 * @return A {@link WSDLModel} built from the given wsdlLocation}
 * @throws java.io.IOException
 * @throws javax.xml.stream.XMLStreamException
 * @throws org.xml.sax.SAXException
 */
public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, @NotNull Container container, PolicyResolver policyResolver,  WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    return RuntimeWSDLParser.parse(wsdlEntityParser, resolver, isClientSide, container, policyResolver, extensions);
}
 
Example 9
Source File: WSDLModel.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.
 *
 * @param wsdlEntityParser  Works like an entityResolver to resolve WSDLs
 * @param resolver  {@link XMLEntityResolver}, works at XML infoset level
 * @param isClientSide  true - its invoked on the client, false means its invoked on the server
 * @param container - container in which the parser is run
 * @param extensions var args of {@link com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtension}s
 * @return A {@link WSDLModel} built from the given wsdlLocation}
 * @throws java.io.IOException
 * @throws javax.xml.stream.XMLStreamException
 * @throws org.xml.sax.SAXException
 */
public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, @NotNull Container container, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    return parse(wsdlEntityParser, resolver, isClientSide, container, PolicyResolverFactory.create(),extensions);
}
 
Example 10
Source File: WSDLModel.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.
 *
 * @param wsdlEntityParser  Works like an entityResolver to resolve WSDLs
 * @param resolver  {@link XMLEntityResolver}, works at XML infoset level
 * @param isClientSide  true - its invoked on the client, false means its invoked on the server
 * @param container - container in which the parser is run
 * @param policyResolver - PolicyResolver for resolving effective Policy
 * @param extensions var args of {@link com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtension}s
 * @return A {@link WSDLModel} built from the given wsdlLocation}
 * @throws java.io.IOException
 * @throws javax.xml.stream.XMLStreamException
 * @throws org.xml.sax.SAXException
 */
public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, @NotNull Container container, PolicyResolver policyResolver,  WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    return RuntimeWSDLParser.parse(wsdlEntityParser, resolver, isClientSide, container, policyResolver, extensions);
}
 
Example 11
Source File: WSDLModel.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.
 *
 * @param wsdlEntityParser  Works like an entityResolver to resolve WSDLs
 * @param resolver  {@link XMLEntityResolver}, works at XML infoset level
 * @param isClientSide  true - its invoked on the client, false means its invoked on the server
 * @param container - container in which the parser is run
 * @param extensions var args of {@link com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtension}s
 * @return A {@link WSDLModel} built from the given wsdlLocation}
 * @throws java.io.IOException
 * @throws javax.xml.stream.XMLStreamException
 * @throws org.xml.sax.SAXException
 */
public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, @NotNull Container container, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    return parse(wsdlEntityParser, resolver, isClientSide, container, PolicyResolverFactory.create(),extensions);
}
 
Example 12
Source File: WSDLModel.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.
 *
 * @param wsdlEntityParser  Works like an entityResolver to resolve WSDLs
 * @param resolver  {@link XMLEntityResolver}, works at XML infoset level
 * @param isClientSide  true - its invoked on the client, false means its invoked on the server
 * @param extensions var args of {@link com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtension}s
 * @return A {@link WSDLModel} built from the given wsdlLocation}
 * @throws java.io.IOException
 * @throws javax.xml.stream.XMLStreamException
 * @throws org.xml.sax.SAXException
 */
public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    return parse(wsdlEntityParser, resolver, isClientSide, Container.NONE, extensions);
}
 
Example 13
Source File: WSDLModel.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.
 *
 * @param wsdlEntityParser  Works like an entityResolver to resolve WSDLs
 * @param resolver  {@link XMLEntityResolver}, works at XML infoset level
 * @param isClientSide  true - its invoked on the client, false means its invoked on the server
 * @param extensions var args of {@link com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtension}s
 * @return A {@link WSDLModel} built from the given wsdlLocation}
 * @throws java.io.IOException
 * @throws javax.xml.stream.XMLStreamException
 * @throws org.xml.sax.SAXException
 */
public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    return parse(wsdlEntityParser, resolver, isClientSide, Container.NONE, extensions);
}
 
Example 14
Source File: WSDLModel.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.
 *
 * @param wsdlEntityParser  Works like an entityResolver to resolve WSDLs
 * @param resolver  {@link XMLEntityResolver}, works at XML infoset level
 * @param isClientSide  true - its invoked on the client, false means its invoked on the server
 * @param extensions var args of {@link com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtension}s
 * @return A {@link WSDLModel} built from the given wsdlLocation}
 * @throws java.io.IOException
 * @throws javax.xml.stream.XMLStreamException
 * @throws org.xml.sax.SAXException
 */
public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    return parse(wsdlEntityParser, resolver, isClientSide, Container.NONE, extensions);
}
 
Example 15
Source File: WSDLModel.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.
 *
 * @param wsdlEntityParser  Works like an entityResolver to resolve WSDLs
 * @param resolver  {@link XMLEntityResolver}, works at XML infoset level
 * @param isClientSide  true - its invoked on the client, false means its invoked on the server
 * @param container - container in which the parser is run
 * @param policyResolver - PolicyResolver for resolving effective Policy
 * @param extensions var args of {@link com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtension}s
 * @return A {@link WSDLModel} built from the given wsdlLocation}
 * @throws java.io.IOException
 * @throws javax.xml.stream.XMLStreamException
 * @throws org.xml.sax.SAXException
 */
public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, @NotNull Container container, PolicyResolver policyResolver,  WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    return RuntimeWSDLParser.parse(wsdlEntityParser, resolver, isClientSide, container, policyResolver, extensions);
}
 
Example 16
Source File: WSDLModel.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.
 *
 * @param wsdlEntityParser  Works like an entityResolver to resolve WSDLs
 * @param resolver  {@link XMLEntityResolver}, works at XML infoset level
 * @param isClientSide  true - its invoked on the client, false means its invoked on the server
 * @param container - container in which the parser is run
 * @param extensions var args of {@link com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtension}s
 * @return A {@link WSDLModel} built from the given wsdlLocation}
 * @throws java.io.IOException
 * @throws javax.xml.stream.XMLStreamException
 * @throws org.xml.sax.SAXException
 */
public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, @NotNull Container container, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    return parse(wsdlEntityParser, resolver, isClientSide, container, PolicyResolverFactory.create(),extensions);
}
 
Example 17
Source File: WSDLModel.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.
 *
 * @param wsdlEntityParser  Works like an entityResolver to resolve WSDLs
 * @param resolver  {@link XMLEntityResolver}, works at XML infoset level
 * @param isClientSide  true - its invoked on the client, false means its invoked on the server
 * @param container - container in which the parser is run
 * @param policyResolver - PolicyResolver for resolving effective Policy
 * @param extensions var args of {@link com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtension}s
 * @return A {@link WSDLModel} built from the given wsdlLocation}
 * @throws java.io.IOException
 * @throws javax.xml.stream.XMLStreamException
 * @throws org.xml.sax.SAXException
 */
public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, @NotNull Container container, PolicyResolver policyResolver,  WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    return RuntimeWSDLParser.parse(wsdlEntityParser, resolver, isClientSide, container, policyResolver, extensions);
}
 
Example 18
Source File: WSDLModel.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.
 *
 * @param wsdlEntityParser  Works like an entityResolver to resolve WSDLs
 * @param resolver  {@link XMLEntityResolver}, works at XML infoset level
 * @param isClientSide  true - its invoked on the client, false means its invoked on the server
 * @param extensions var args of {@link com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtension}s
 * @return A {@link WSDLModel} built from the given wsdlLocation}
 * @throws java.io.IOException
 * @throws javax.xml.stream.XMLStreamException
 * @throws org.xml.sax.SAXException
 */
public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    return parse(wsdlEntityParser, resolver, isClientSide, Container.NONE, extensions);
}
 
Example 19
Source File: WSDLModel.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.
 *
 * @param wsdlEntityParser  Works like an entityResolver to resolve WSDLs
 * @param resolver  {@link XMLEntityResolver}, works at XML infoset level
 * @param isClientSide  true - its invoked on the client, false means its invoked on the server
 * @param container - container in which the parser is run
 * @param policyResolver - PolicyResolver for resolving effective Policy
 * @param extensions var args of {@link com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtension}s
 * @return A {@link WSDLModel} built from the given wsdlLocation}
 * @throws java.io.IOException
 * @throws javax.xml.stream.XMLStreamException
 * @throws org.xml.sax.SAXException
 */
public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, @NotNull Container container, PolicyResolver policyResolver,  WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    return RuntimeWSDLParser.parse(wsdlEntityParser, resolver, isClientSide, container, policyResolver, extensions);
}
 
Example 20
Source File: WSDLModel.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.
 *
 * @param wsdlEntityParser  Works like an entityResolver to resolve WSDLs
 * @param resolver  {@link XMLEntityResolver}, works at XML infoset level
 * @param isClientSide  true - its invoked on the client, false means its invoked on the server
 * @param container - container in which the parser is run
 * @param extensions var args of {@link com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtension}s
 * @return A {@link WSDLModel} built from the given wsdlLocation}
 * @throws java.io.IOException
 * @throws javax.xml.stream.XMLStreamException
 * @throws org.xml.sax.SAXException
 */
public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, @NotNull Container container, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {
    return parse(wsdlEntityParser, resolver, isClientSide, container, PolicyResolverFactory.create(),extensions);
}