Java Code Examples for com.sun.tools.internal.ws.wscompile.ErrorReceiverFilter#reset()

The following examples show how to use com.sun.tools.internal.ws.wscompile.ErrorReceiverFilter#reset() . 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: WSDLParser.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public WSDLParser(WsimportOptions options, ErrorReceiverFilter errReceiver, MetadataFinder forest) {
    this.extensionHandlers = new HashMap();
    this.options = options;
    this.errReceiver = errReceiver;
    if (forest == null) {
        forest = new MetadataFinder(new WSDLInternalizationLogic(), options, errReceiver);
        forest.parseWSDL();
        if (forest.isMexMetadata) {
            errReceiver.reset();
    }
    }
    this.forest = forest;
    // register handlers for default extensions
    register(new SOAPExtensionHandler(extensionHandlers));
    register(new HTTPExtensionHandler(extensionHandlers));
    register(new MIMEExtensionHandler(extensionHandlers));
    register(new JAXWSBindingExtensionHandler(extensionHandlers));
    register(new SOAP12ExtensionHandler(extensionHandlers));

    // MemberSubmission Addressing not supported by WsImport anymore see JAX_WS-1040 for details
    //register(new MemberSubmissionAddressingExtensionHandler(extensionHandlers, errReceiver, options.isExtensionMode()));

    register(new W3CAddressingExtensionHandler(extensionHandlers, errReceiver));
    register(new W3CAddressingMetadataExtensionHandler(extensionHandlers, errReceiver));
    register(new Policy12ExtensionHandler());
    register(new Policy15ExtensionHandler());
    for (TWSDLExtensionHandler te : ServiceFinder.find(TWSDLExtensionHandler.class)) {
        register(te);
    }

}
 
Example 2
Source File: WSDLParser.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public WSDLParser(WsimportOptions options, ErrorReceiverFilter errReceiver, MetadataFinder forest) {
    this.extensionHandlers = new HashMap();
    this.options = options;
    this.errReceiver = errReceiver;
    if (forest == null) {
        forest = new MetadataFinder(new WSDLInternalizationLogic(), options, errReceiver);
        forest.parseWSDL();
        if (forest.isMexMetadata) {
            errReceiver.reset();
    }
    }
    this.forest = forest;
    // register handlers for default extensions
    register(new SOAPExtensionHandler(extensionHandlers));
    register(new HTTPExtensionHandler(extensionHandlers));
    register(new MIMEExtensionHandler(extensionHandlers));
    register(new JAXWSBindingExtensionHandler(extensionHandlers));
    register(new SOAP12ExtensionHandler(extensionHandlers));

    // MemberSubmission Addressing not supported by WsImport anymore see JAX_WS-1040 for details
    //register(new MemberSubmissionAddressingExtensionHandler(extensionHandlers, errReceiver, options.isExtensionMode()));

    register(new W3CAddressingExtensionHandler(extensionHandlers, errReceiver));
    register(new W3CAddressingMetadataExtensionHandler(extensionHandlers, errReceiver));
    register(new Policy12ExtensionHandler());
    register(new Policy15ExtensionHandler());
    for (TWSDLExtensionHandler te : ServiceFinder.find(TWSDLExtensionHandler.class)) {
        register(te);
    }

}
 
Example 3
Source File: WSDLParser.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public WSDLParser(WsimportOptions options, ErrorReceiverFilter errReceiver, MetadataFinder forest) {
    this.extensionHandlers = new HashMap();
    this.options = options;
    this.errReceiver = errReceiver;
    if (forest == null) {
        forest = new MetadataFinder(new WSDLInternalizationLogic(), options, errReceiver);
        forest.parseWSDL();
        if (forest.isMexMetadata) {
            errReceiver.reset();
    }
    }
    this.forest = forest;
    // register handlers for default extensions
    register(new SOAPExtensionHandler(extensionHandlers));
    register(new HTTPExtensionHandler(extensionHandlers));
    register(new MIMEExtensionHandler(extensionHandlers));
    register(new JAXWSBindingExtensionHandler(extensionHandlers));
    register(new SOAP12ExtensionHandler(extensionHandlers));

    // MemberSubmission Addressing not supported by WsImport anymore see JAX_WS-1040 for details
    //register(new MemberSubmissionAddressingExtensionHandler(extensionHandlers, errReceiver, options.isExtensionMode()));

    register(new W3CAddressingExtensionHandler(extensionHandlers, errReceiver));
    register(new W3CAddressingMetadataExtensionHandler(extensionHandlers, errReceiver));
    register(new Policy12ExtensionHandler());
    register(new Policy15ExtensionHandler());
    for (TWSDLExtensionHandler te : ServiceFinder.find(TWSDLExtensionHandler.class)) {
        register(te);
    }

}
 
Example 4
Source File: WSDLParser.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public WSDLParser(WsimportOptions options, ErrorReceiverFilter errReceiver, MetadataFinder forest) {
    this.extensionHandlers = new HashMap();
    this.options = options;
    this.errReceiver = errReceiver;
    if (forest == null) {
        forest = new MetadataFinder(new WSDLInternalizationLogic(), options, errReceiver);
        forest.parseWSDL();
        if (forest.isMexMetadata) {
            errReceiver.reset();
    }
    }
    this.forest = forest;
    // register handlers for default extensions
    register(new SOAPExtensionHandler(extensionHandlers));
    register(new HTTPExtensionHandler(extensionHandlers));
    register(new MIMEExtensionHandler(extensionHandlers));
    register(new JAXWSBindingExtensionHandler(extensionHandlers));
    register(new SOAP12ExtensionHandler(extensionHandlers));

    // MemberSubmission Addressing not supported by WsImport anymore see JAX_WS-1040 for details
    //register(new MemberSubmissionAddressingExtensionHandler(extensionHandlers, errReceiver, options.isExtensionMode()));

    register(new W3CAddressingExtensionHandler(extensionHandlers, errReceiver));
    register(new W3CAddressingMetadataExtensionHandler(extensionHandlers, errReceiver));
    register(new Policy12ExtensionHandler());
    register(new Policy15ExtensionHandler());
    for (TWSDLExtensionHandler te : ServiceFinder.find(TWSDLExtensionHandler.class)) {
        register(te);
    }

}
 
Example 5
Source File: WSDLParser.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public WSDLParser(WsimportOptions options, ErrorReceiverFilter errReceiver, MetadataFinder forest) {
    this.extensionHandlers = new HashMap();
    this.options = options;
    this.errReceiver = errReceiver;
    if (forest == null) {
        forest = new MetadataFinder(new WSDLInternalizationLogic(), options, errReceiver);
        forest.parseWSDL();
        if (forest.isMexMetadata) {
            errReceiver.reset();
    }
    }
    this.forest = forest;
    // register handlers for default extensions
    register(new SOAPExtensionHandler(extensionHandlers));
    register(new HTTPExtensionHandler(extensionHandlers));
    register(new MIMEExtensionHandler(extensionHandlers));
    register(new JAXWSBindingExtensionHandler(extensionHandlers));
    register(new SOAP12ExtensionHandler(extensionHandlers));

    // MemberSubmission Addressing not supported by WsImport anymore see JAX_WS-1040 for details
    //register(new MemberSubmissionAddressingExtensionHandler(extensionHandlers, errReceiver, options.isExtensionMode()));

    register(new W3CAddressingExtensionHandler(extensionHandlers, errReceiver));
    register(new W3CAddressingMetadataExtensionHandler(extensionHandlers, errReceiver));
    register(new Policy12ExtensionHandler());
    register(new Policy15ExtensionHandler());
    for (TWSDLExtensionHandler te : ServiceFinder.find(TWSDLExtensionHandler.class)) {
        register(te);
    }

}
 
Example 6
Source File: WSDLParser.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public WSDLParser(WsimportOptions options, ErrorReceiverFilter errReceiver, MetadataFinder forest) {
    this.extensionHandlers = new HashMap();
    this.options = options;
    this.errReceiver = errReceiver;
    if (forest == null) {
        forest = new MetadataFinder(new WSDLInternalizationLogic(), options, errReceiver);
        forest.parseWSDL();
        if (forest.isMexMetadata) {
            errReceiver.reset();
    }
    }
    this.forest = forest;
    // register handlers for default extensions
    register(new SOAPExtensionHandler(extensionHandlers));
    register(new HTTPExtensionHandler(extensionHandlers));
    register(new MIMEExtensionHandler(extensionHandlers));
    register(new JAXWSBindingExtensionHandler(extensionHandlers));
    register(new SOAP12ExtensionHandler(extensionHandlers));

    // MemberSubmission Addressing not supported by WsImport anymore see JAX_WS-1040 for details
    //register(new MemberSubmissionAddressingExtensionHandler(extensionHandlers, errReceiver, options.isExtensionMode()));

    register(new W3CAddressingExtensionHandler(extensionHandlers, errReceiver));
    register(new W3CAddressingMetadataExtensionHandler(extensionHandlers, errReceiver));
    register(new Policy12ExtensionHandler());
    register(new Policy15ExtensionHandler());
    for (TWSDLExtensionHandler te : ServiceFinder.find(TWSDLExtensionHandler.class)) {
        register(te);
    }

}
 
Example 7
Source File: WSDLParser.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public WSDLParser(WsimportOptions options, ErrorReceiverFilter errReceiver, MetadataFinder forest) {
    this.extensionHandlers = new HashMap();
    this.options = options;
    this.errReceiver = errReceiver;
    if (forest == null) {
        forest = new MetadataFinder(new WSDLInternalizationLogic(), options, errReceiver);
        forest.parseWSDL();
        if (forest.isMexMetadata) {
            errReceiver.reset();
    }
    }
    this.forest = forest;
    // register handlers for default extensions
    register(new SOAPExtensionHandler(extensionHandlers));
    register(new HTTPExtensionHandler(extensionHandlers));
    register(new MIMEExtensionHandler(extensionHandlers));
    register(new JAXWSBindingExtensionHandler(extensionHandlers));
    register(new SOAP12ExtensionHandler(extensionHandlers));

    // MemberSubmission Addressing not supported by WsImport anymore see JAX_WS-1040 for details
    //register(new MemberSubmissionAddressingExtensionHandler(extensionHandlers, errReceiver, options.isExtensionMode()));

    register(new W3CAddressingExtensionHandler(extensionHandlers, errReceiver));
    register(new W3CAddressingMetadataExtensionHandler(extensionHandlers, errReceiver));
    register(new Policy12ExtensionHandler());
    register(new Policy15ExtensionHandler());
    for (TWSDLExtensionHandler te : ServiceFinder.find(TWSDLExtensionHandler.class)) {
        register(te);
    }

}
 
Example 8
Source File: WSDLParser.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public WSDLParser(WsimportOptions options, ErrorReceiverFilter errReceiver, MetadataFinder forest) {
    this.extensionHandlers = new HashMap();
    this.options = options;
    this.errReceiver = errReceiver;
    if (forest == null) {
        forest = new MetadataFinder(new WSDLInternalizationLogic(), options, errReceiver);
        forest.parseWSDL();
        if (forest.isMexMetadata) {
            errReceiver.reset();
    }
    }
    this.forest = forest;
    // register handlers for default extensions
    register(new SOAPExtensionHandler(extensionHandlers));
    register(new HTTPExtensionHandler(extensionHandlers));
    register(new MIMEExtensionHandler(extensionHandlers));
    register(new JAXWSBindingExtensionHandler(extensionHandlers));
    register(new SOAP12ExtensionHandler(extensionHandlers));

    // MemberSubmission Addressing not supported by WsImport anymore see JAX_WS-1040 for details
    //register(new MemberSubmissionAddressingExtensionHandler(extensionHandlers, errReceiver, options.isExtensionMode()));

    register(new W3CAddressingExtensionHandler(extensionHandlers, errReceiver));
    register(new W3CAddressingMetadataExtensionHandler(extensionHandlers, errReceiver));
    register(new Policy12ExtensionHandler());
    register(new Policy15ExtensionHandler());
    for (TWSDLExtensionHandler te : ServiceFinder.find(TWSDLExtensionHandler.class)) {
        register(te);
    }

}