com.sun.xml.internal.ws.api.policy.PolicyResolverFactory Java Examples
The following examples show how to use
com.sun.xml.internal.ws.api.policy.PolicyResolverFactory.
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: PortInfo.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public PolicyMap createPolicyMap() { PolicyMap map; if(portModel != null) { map = portModel.getOwner().getParent().getPolicyMap(); } else { map = PolicyResolverFactory.create().resolve(new PolicyResolver.ClientContext(null,owner.getContainer())); } //still map is null, create a empty map if(map == null) map = PolicyMap.createPolicyMap(null); return map; }
Example #2
Source File: PolicyWSDLGeneratorExtension.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override public void start(final WSDLGenExtnContext context) { LOGGER.entering(); try { this.seiModel = context.getModel(); final PolicyMapConfigurator[] policyMapConfigurators = loadConfigurators(); final PolicyMapExtender[] extenders = new PolicyMapExtender[policyMapConfigurators.length]; for (int i = 0; i < policyMapConfigurators.length; i++) { extenders[i] = PolicyMapExtender.createPolicyMapExtender(); } // Read policy config file policyMap = PolicyResolverFactory.create().resolve( new PolicyResolver.ServerContext(policyMap, context.getContainer(), context.getEndpointClass(), false, extenders)); if (policyMap == null) { LOGGER.fine(PolicyMessages.WSP_1019_CREATE_EMPTY_POLICY_MAP()); policyMap = PolicyMap.createPolicyMap(Arrays.asList(extenders)); } final WSBinding binding = context.getBinding(); try { final Collection<PolicySubject> policySubjects = new LinkedList<PolicySubject>(); for (int i = 0; i < policyMapConfigurators.length; i++) { policySubjects.addAll(policyMapConfigurators[i].update(policyMap, seiModel, binding)); extenders[i].disconnect(); } PolicyMapUtil.insertPolicies(policyMap, policySubjects, this.seiModel.getServiceQName(), this.seiModel.getPortName()); } catch (PolicyException e) { throw LOGGER.logSevereException(new WebServiceException(PolicyMessages.WSP_1017_MAP_UPDATE_FAILED(), e)); } final TypedXmlWriter root = context.getRoot(); root._namespace(NamespaceVersion.v1_2.toString(), NamespaceVersion.v1_2.getDefaultNamespacePrefix()); root._namespace(NamespaceVersion.v1_5.toString(), NamespaceVersion.v1_5.getDefaultNamespacePrefix()); root._namespace(PolicyConstants.WSU_NAMESPACE_URI, PolicyConstants.WSU_NAMESPACE_PREFIX); } finally { LOGGER.exiting(); } }
Example #3
Source File: PortInfo.java From hottub with GNU General Public License v2.0 | 5 votes |
public PolicyMap createPolicyMap() { PolicyMap map; if(portModel != null) { map = portModel.getOwner().getParent().getPolicyMap(); } else { map = PolicyResolverFactory.create().resolve(new PolicyResolver.ClientContext(null,owner.getContainer())); } //still map is null, create a empty map if(map == null) map = PolicyMap.createPolicyMap(null); return map; }
Example #4
Source File: PortInfo.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public PolicyMap createPolicyMap() { PolicyMap map; if(portModel != null) { map = portModel.getOwner().getParent().getPolicyMap(); } else { map = PolicyResolverFactory.create().resolve(new PolicyResolver.ClientContext(null,owner.getContainer())); } //still map is null, create a empty map if(map == null) map = PolicyMap.createPolicyMap(null); return map; }
Example #5
Source File: PolicyWSDLGeneratorExtension.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public void start(final WSDLGenExtnContext context) { LOGGER.entering(); try { this.seiModel = context.getModel(); final PolicyMapConfigurator[] policyMapConfigurators = loadConfigurators(); final PolicyMapExtender[] extenders = new PolicyMapExtender[policyMapConfigurators.length]; for (int i = 0; i < policyMapConfigurators.length; i++) { extenders[i] = PolicyMapExtender.createPolicyMapExtender(); } // Read policy config file policyMap = PolicyResolverFactory.create().resolve( new PolicyResolver.ServerContext(policyMap, context.getContainer(), context.getEndpointClass(), false, extenders)); if (policyMap == null) { LOGGER.fine(PolicyMessages.WSP_1019_CREATE_EMPTY_POLICY_MAP()); policyMap = PolicyMap.createPolicyMap(Arrays.asList(extenders)); } final WSBinding binding = context.getBinding(); try { final Collection<PolicySubject> policySubjects = new LinkedList<PolicySubject>(); for (int i = 0; i < policyMapConfigurators.length; i++) { policySubjects.addAll(policyMapConfigurators[i].update(policyMap, seiModel, binding)); extenders[i].disconnect(); } PolicyMapUtil.insertPolicies(policyMap, policySubjects, this.seiModel.getServiceQName(), this.seiModel.getPortName()); } catch (PolicyException e) { throw LOGGER.logSevereException(new WebServiceException(PolicyMessages.WSP_1017_MAP_UPDATE_FAILED(), e)); } final TypedXmlWriter root = context.getRoot(); root._namespace(NamespaceVersion.v1_2.toString(), NamespaceVersion.v1_2.getDefaultNamespacePrefix()); root._namespace(NamespaceVersion.v1_5.toString(), NamespaceVersion.v1_5.getDefaultNamespacePrefix()); root._namespace(PolicyConstants.WSU_NAMESPACE_URI, PolicyConstants.WSU_NAMESPACE_PREFIX); } finally { LOGGER.exiting(); } }
Example #6
Source File: PortInfo.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public PolicyMap createPolicyMap() { PolicyMap map; if(portModel != null) { map = portModel.getOwner().getParent().getPolicyMap(); } else { map = PolicyResolverFactory.create().resolve(new PolicyResolver.ClientContext(null,owner.getContainer())); } //still map is null, create a empty map if(map == null) map = PolicyMap.createPolicyMap(null); return map; }
Example #7
Source File: PolicyWSDLGeneratorExtension.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override public void start(final WSDLGenExtnContext context) { LOGGER.entering(); try { this.seiModel = context.getModel(); final PolicyMapConfigurator[] policyMapConfigurators = loadConfigurators(); final PolicyMapExtender[] extenders = new PolicyMapExtender[policyMapConfigurators.length]; for (int i = 0; i < policyMapConfigurators.length; i++) { extenders[i] = PolicyMapExtender.createPolicyMapExtender(); } // Read policy config file policyMap = PolicyResolverFactory.create().resolve( new PolicyResolver.ServerContext(policyMap, context.getContainer(), context.getEndpointClass(), false, extenders)); if (policyMap == null) { LOGGER.fine(PolicyMessages.WSP_1019_CREATE_EMPTY_POLICY_MAP()); policyMap = PolicyMap.createPolicyMap(Arrays.asList(extenders)); } final WSBinding binding = context.getBinding(); try { final Collection<PolicySubject> policySubjects = new LinkedList<PolicySubject>(); for (int i = 0; i < policyMapConfigurators.length; i++) { policySubjects.addAll(policyMapConfigurators[i].update(policyMap, seiModel, binding)); extenders[i].disconnect(); } PolicyMapUtil.insertPolicies(policyMap, policySubjects, this.seiModel.getServiceQName(), this.seiModel.getPortName()); } catch (PolicyException e) { throw LOGGER.logSevereException(new WebServiceException(PolicyMessages.WSP_1017_MAP_UPDATE_FAILED(), e)); } final TypedXmlWriter root = context.getRoot(); root._namespace(NamespaceVersion.v1_2.toString(), NamespaceVersion.v1_2.getDefaultNamespacePrefix()); root._namespace(NamespaceVersion.v1_5.toString(), NamespaceVersion.v1_5.getDefaultNamespacePrefix()); root._namespace(PolicyConstants.WSU_NAMESPACE_URI, PolicyConstants.WSU_NAMESPACE_PREFIX); } finally { LOGGER.exiting(); } }
Example #8
Source File: PolicyWSDLGeneratorExtension.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override public void start(final WSDLGenExtnContext context) { LOGGER.entering(); try { this.seiModel = context.getModel(); final PolicyMapConfigurator[] policyMapConfigurators = loadConfigurators(); final PolicyMapExtender[] extenders = new PolicyMapExtender[policyMapConfigurators.length]; for (int i = 0; i < policyMapConfigurators.length; i++) { extenders[i] = PolicyMapExtender.createPolicyMapExtender(); } // Read policy config file policyMap = PolicyResolverFactory.create().resolve( new PolicyResolver.ServerContext(policyMap, context.getContainer(), context.getEndpointClass(), false, extenders)); if (policyMap == null) { LOGGER.fine(PolicyMessages.WSP_1019_CREATE_EMPTY_POLICY_MAP()); policyMap = PolicyMap.createPolicyMap(Arrays.asList(extenders)); } final WSBinding binding = context.getBinding(); try { final Collection<PolicySubject> policySubjects = new LinkedList<PolicySubject>(); for (int i = 0; i < policyMapConfigurators.length; i++) { policySubjects.addAll(policyMapConfigurators[i].update(policyMap, seiModel, binding)); extenders[i].disconnect(); } PolicyMapUtil.insertPolicies(policyMap, policySubjects, this.seiModel.getServiceQName(), this.seiModel.getPortName()); } catch (PolicyException e) { throw LOGGER.logSevereException(new WebServiceException(PolicyMessages.WSP_1017_MAP_UPDATE_FAILED(), e)); } final TypedXmlWriter root = context.getRoot(); root._namespace(NamespaceVersion.v1_2.toString(), NamespaceVersion.v1_2.getDefaultNamespacePrefix()); root._namespace(NamespaceVersion.v1_5.toString(), NamespaceVersion.v1_5.getDefaultNamespacePrefix()); root._namespace(PolicyConstants.WSU_NAMESPACE_URI, PolicyConstants.WSU_NAMESPACE_PREFIX); } finally { LOGGER.exiting(); } }
Example #9
Source File: PortInfo.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public PolicyMap createPolicyMap() { PolicyMap map; if(portModel != null) { map = portModel.getOwner().getParent().getPolicyMap(); } else { map = PolicyResolverFactory.create().resolve(new PolicyResolver.ClientContext(null,owner.getContainer())); } //still map is null, create a empty map if(map == null) map = PolicyMap.createPolicyMap(null); return map; }
Example #10
Source File: PolicyWSDLGeneratorExtension.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override public void start(final WSDLGenExtnContext context) { LOGGER.entering(); try { this.seiModel = context.getModel(); final PolicyMapConfigurator[] policyMapConfigurators = loadConfigurators(); final PolicyMapExtender[] extenders = new PolicyMapExtender[policyMapConfigurators.length]; for (int i = 0; i < policyMapConfigurators.length; i++) { extenders[i] = PolicyMapExtender.createPolicyMapExtender(); } // Read policy config file policyMap = PolicyResolverFactory.create().resolve( new PolicyResolver.ServerContext(policyMap, context.getContainer(), context.getEndpointClass(), false, extenders)); if (policyMap == null) { LOGGER.fine(PolicyMessages.WSP_1019_CREATE_EMPTY_POLICY_MAP()); policyMap = PolicyMap.createPolicyMap(Arrays.asList(extenders)); } final WSBinding binding = context.getBinding(); try { final Collection<PolicySubject> policySubjects = new LinkedList<PolicySubject>(); for (int i = 0; i < policyMapConfigurators.length; i++) { policySubjects.addAll(policyMapConfigurators[i].update(policyMap, seiModel, binding)); extenders[i].disconnect(); } PolicyMapUtil.insertPolicies(policyMap, policySubjects, this.seiModel.getServiceQName(), this.seiModel.getPortName()); } catch (PolicyException e) { throw LOGGER.logSevereException(new WebServiceException(PolicyMessages.WSP_1017_MAP_UPDATE_FAILED(), e)); } final TypedXmlWriter root = context.getRoot(); root._namespace(NamespaceVersion.v1_2.toString(), NamespaceVersion.v1_2.getDefaultNamespacePrefix()); root._namespace(NamespaceVersion.v1_5.toString(), NamespaceVersion.v1_5.getDefaultNamespacePrefix()); root._namespace(PolicyConstants.WSU_NAMESPACE_URI, PolicyConstants.WSU_NAMESPACE_PREFIX); } finally { LOGGER.exiting(); } }
Example #11
Source File: PolicyWSDLGeneratorExtension.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Override public void start(final WSDLGenExtnContext context) { LOGGER.entering(); try { this.seiModel = context.getModel(); final PolicyMapConfigurator[] policyMapConfigurators = loadConfigurators(); final PolicyMapExtender[] extenders = new PolicyMapExtender[policyMapConfigurators.length]; for (int i = 0; i < policyMapConfigurators.length; i++) { extenders[i] = PolicyMapExtender.createPolicyMapExtender(); } // Read policy config file policyMap = PolicyResolverFactory.create().resolve( new PolicyResolver.ServerContext(policyMap, context.getContainer(), context.getEndpointClass(), false, extenders)); if (policyMap == null) { LOGGER.fine(PolicyMessages.WSP_1019_CREATE_EMPTY_POLICY_MAP()); policyMap = PolicyMap.createPolicyMap(Arrays.asList(extenders)); } final WSBinding binding = context.getBinding(); try { final Collection<PolicySubject> policySubjects = new LinkedList<PolicySubject>(); for (int i = 0; i < policyMapConfigurators.length; i++) { policySubjects.addAll(policyMapConfigurators[i].update(policyMap, seiModel, binding)); extenders[i].disconnect(); } PolicyMapUtil.insertPolicies(policyMap, policySubjects, this.seiModel.getServiceQName(), this.seiModel.getPortName()); } catch (PolicyException e) { throw LOGGER.logSevereException(new WebServiceException(PolicyMessages.WSP_1017_MAP_UPDATE_FAILED(), e)); } final TypedXmlWriter root = context.getRoot(); root._namespace(NamespaceVersion.v1_2.toString(), NamespaceVersion.v1_2.getDefaultNamespacePrefix()); root._namespace(NamespaceVersion.v1_5.toString(), NamespaceVersion.v1_5.getDefaultNamespacePrefix()); root._namespace(PolicyConstants.WSU_NAMESPACE_URI, PolicyConstants.WSU_NAMESPACE_PREFIX); } finally { LOGGER.exiting(); } }
Example #12
Source File: PortInfo.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public PolicyMap createPolicyMap() { PolicyMap map; if(portModel != null) { map = portModel.getOwner().getParent().getPolicyMap(); } else { map = PolicyResolverFactory.create().resolve(new PolicyResolver.ClientContext(null,owner.getContainer())); } //still map is null, create a empty map if(map == null) map = PolicyMap.createPolicyMap(null); return map; }
Example #13
Source File: PolicyWSDLGeneratorExtension.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override public void start(final WSDLGenExtnContext context) { LOGGER.entering(); try { this.seiModel = context.getModel(); final PolicyMapConfigurator[] policyMapConfigurators = loadConfigurators(); final PolicyMapExtender[] extenders = new PolicyMapExtender[policyMapConfigurators.length]; for (int i = 0; i < policyMapConfigurators.length; i++) { extenders[i] = PolicyMapExtender.createPolicyMapExtender(); } // Read policy config file policyMap = PolicyResolverFactory.create().resolve( new PolicyResolver.ServerContext(policyMap, context.getContainer(), context.getEndpointClass(), false, extenders)); if (policyMap == null) { LOGGER.fine(PolicyMessages.WSP_1019_CREATE_EMPTY_POLICY_MAP()); policyMap = PolicyMap.createPolicyMap(Arrays.asList(extenders)); } final WSBinding binding = context.getBinding(); try { final Collection<PolicySubject> policySubjects = new LinkedList<PolicySubject>(); for (int i = 0; i < policyMapConfigurators.length; i++) { policySubjects.addAll(policyMapConfigurators[i].update(policyMap, seiModel, binding)); extenders[i].disconnect(); } PolicyMapUtil.insertPolicies(policyMap, policySubjects, this.seiModel.getServiceQName(), this.seiModel.getPortName()); } catch (PolicyException e) { throw LOGGER.logSevereException(new WebServiceException(PolicyMessages.WSP_1017_MAP_UPDATE_FAILED(), e)); } final TypedXmlWriter root = context.getRoot(); root._namespace(NamespaceVersion.v1_2.toString(), NamespaceVersion.v1_2.getDefaultNamespacePrefix()); root._namespace(NamespaceVersion.v1_5.toString(), NamespaceVersion.v1_5.getDefaultNamespacePrefix()); root._namespace(PolicyConstants.WSU_NAMESPACE_URI, PolicyConstants.WSU_NAMESPACE_PREFIX); } finally { LOGGER.exiting(); } }
Example #14
Source File: PortInfo.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public PolicyMap createPolicyMap() { PolicyMap map; if(portModel != null) { map = portModel.getOwner().getParent().getPolicyMap(); } else { map = PolicyResolverFactory.create().resolve(new PolicyResolver.ClientContext(null,owner.getContainer())); } //still map is null, create a empty map if(map == null) map = PolicyMap.createPolicyMap(null); return map; }
Example #15
Source File: PortInfo.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public PolicyMap createPolicyMap() { PolicyMap map; if(portModel != null) { map = portModel.getOwner().getParent().getPolicyMap(); } else { map = PolicyResolverFactory.create().resolve(new PolicyResolver.ClientContext(null,owner.getContainer())); } //still map is null, create a empty map if(map == null) map = PolicyMap.createPolicyMap(null); return map; }
Example #16
Source File: PolicyWSDLGeneratorExtension.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override public void start(final WSDLGenExtnContext context) { LOGGER.entering(); try { this.seiModel = context.getModel(); final PolicyMapConfigurator[] policyMapConfigurators = loadConfigurators(); final PolicyMapExtender[] extenders = new PolicyMapExtender[policyMapConfigurators.length]; for (int i = 0; i < policyMapConfigurators.length; i++) { extenders[i] = PolicyMapExtender.createPolicyMapExtender(); } // Read policy config file policyMap = PolicyResolverFactory.create().resolve( new PolicyResolver.ServerContext(policyMap, context.getContainer(), context.getEndpointClass(), false, extenders)); if (policyMap == null) { LOGGER.fine(PolicyMessages.WSP_1019_CREATE_EMPTY_POLICY_MAP()); policyMap = PolicyMap.createPolicyMap(Arrays.asList(extenders)); } final WSBinding binding = context.getBinding(); try { final Collection<PolicySubject> policySubjects = new LinkedList<PolicySubject>(); for (int i = 0; i < policyMapConfigurators.length; i++) { policySubjects.addAll(policyMapConfigurators[i].update(policyMap, seiModel, binding)); extenders[i].disconnect(); } PolicyMapUtil.insertPolicies(policyMap, policySubjects, this.seiModel.getServiceQName(), this.seiModel.getPortName()); } catch (PolicyException e) { throw LOGGER.logSevereException(new WebServiceException(PolicyMessages.WSP_1017_MAP_UPDATE_FAILED(), e)); } final TypedXmlWriter root = context.getRoot(); root._namespace(NamespaceVersion.v1_2.toString(), NamespaceVersion.v1_2.getDefaultNamespacePrefix()); root._namespace(NamespaceVersion.v1_5.toString(), NamespaceVersion.v1_5.getDefaultNamespacePrefix()); root._namespace(PolicyConstants.WSU_NAMESPACE_URI, PolicyConstants.WSU_NAMESPACE_PREFIX); } finally { LOGGER.exiting(); } }
Example #17
Source File: RuntimeWSDLParser.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * Parses the WSDL and gives WSDLModel. If wsdl parameter is null, then wsdlLoc is used to get the WSDL. If the WSDL * document could not be obtained then {@link MetadataResolverFactory} is tried to get the WSDL document, if not found * then as last option, if the wsdlLoc has no '?wsdl' as query parameter then it is tried by appending '?wsdl'. * * @param wsdlLoc * Either this or <tt>wsdl</tt> parameter must be given. * Null location means the system won't be able to resolve relative references in the WSDL, */ public static WSDLModel parse(@Nullable URL wsdlLoc, @NotNull Source wsdlSource, @NotNull EntityResolver resolver, boolean isClientSide, Container container, Class serviceClass, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException { return parse(wsdlLoc, wsdlSource, resolver, isClientSide, container, serviceClass, PolicyResolverFactory.create(),extensions); }
Example #18
Source File: WSDLModel.java From openjdk-8 with GNU General Public License v2.0 | 2 votes |
/** * 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 #19
Source File: RuntimeWSDLParser.java From openjdk-8 with GNU General Public License v2.0 | 2 votes |
/** * Parses the WSDL and gives WSDLModel. If wsdl parameter is null, then wsdlLoc is used to get the WSDL. If the WSDL * document could not be obtained then {@link MetadataResolverFactory} is tried to get the WSDL document, if not found * then as last option, if the wsdlLoc has no '?wsdl' as query parameter then it is tried by appending '?wsdl'. * * @param wsdlLoc * Either this or <tt>wsdl</tt> parameter must be given. * Null location means the system won't be able to resolve relative references in the WSDL, */ public static WSDLModel parse(@Nullable URL wsdlLoc, @NotNull Source wsdlSource, @NotNull EntityResolver resolver, boolean isClientSide, Container container, Class serviceClass, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException { return parse(wsdlLoc, wsdlSource, resolver, isClientSide, container, serviceClass, PolicyResolverFactory.create(),extensions); }
Example #20
Source File: RuntimeWSDLParser.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * Parses the WSDL and gives WSDLModel. If wsdl parameter is null, then wsdlLoc is used to get the WSDL. If the WSDL * document could not be obtained then {@link MetadataResolverFactory} is tried to get the WSDL document, if not found * then as last option, if the wsdlLoc has no '?wsdl' as query parameter then it is tried by appending '?wsdl'. * * @param wsdlLoc * Either this or <tt>wsdl</tt> parameter must be given. * Null location means the system won't be able to resolve relative references in the WSDL, */ public static WSDLModel parse(@Nullable URL wsdlLoc, @NotNull Source wsdlSource, @NotNull EntityResolver resolver, boolean isClientSide, Container container, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException { return parse(wsdlLoc, wsdlSource, resolver, isClientSide, container, Service.class, PolicyResolverFactory.create(),extensions); }
Example #21
Source File: WSDLModel.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * 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 #22
Source File: RuntimeWSDLParser.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * Parses the WSDL and gives WSDLModel. If wsdl parameter is null, then wsdlLoc is used to get the WSDL. If the WSDL * document could not be obtained then {@link MetadataResolverFactory} is tried to get the WSDL document, if not found * then as last option, if the wsdlLoc has no '?wsdl' as query parameter then it is tried by appending '?wsdl'. * * @param wsdlLoc * Either this or <tt>wsdl</tt> parameter must be given. * Null location means the system won't be able to resolve relative references in the WSDL, */ public static WSDLModel parse(@Nullable URL wsdlLoc, @NotNull Source wsdlSource, @NotNull EntityResolver resolver, boolean isClientSide, Container container, Class serviceClass, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException { return parse(wsdlLoc, wsdlSource, resolver, isClientSide, container, serviceClass, PolicyResolverFactory.create(),extensions); }
Example #23
Source File: RuntimeWSDLParser.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * Parses the WSDL and gives WSDLModel. If wsdl parameter is null, then wsdlLoc is used to get the WSDL. If the WSDL * document could not be obtained then {@link MetadataResolverFactory} is tried to get the WSDL document, if not found * then as last option, if the wsdlLoc has no '?wsdl' as query parameter then it is tried by appending '?wsdl'. * * @param wsdlLoc * Either this or <tt>wsdl</tt> parameter must be given. * Null location means the system won't be able to resolve relative references in the WSDL, */ public static WSDLModel parse(@Nullable URL wsdlLoc, @NotNull Source wsdlSource, @NotNull EntityResolver resolver, boolean isClientSide, Container container, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException { return parse(wsdlLoc, wsdlSource, resolver, isClientSide, container, Service.class, PolicyResolverFactory.create(),extensions); }
Example #24
Source File: RuntimeWSDLParser.java From openjdk-8 with GNU General Public License v2.0 | 2 votes |
/** * Parses the WSDL and gives WSDLModel. If wsdl parameter is null, then wsdlLoc is used to get the WSDL. If the WSDL * document could not be obtained then {@link MetadataResolverFactory} is tried to get the WSDL document, if not found * then as last option, if the wsdlLoc has no '?wsdl' as query parameter then it is tried by appending '?wsdl'. * * @param wsdlLoc * Either this or <tt>wsdl</tt> parameter must be given. * Null location means the system won't be able to resolve relative references in the WSDL, */ public static WSDLModel parse(@Nullable URL wsdlLoc, @NotNull Source wsdlSource, @NotNull EntityResolver resolver, boolean isClientSide, Container container, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException { return parse(wsdlLoc, wsdlSource, resolver, isClientSide, container, Service.class, PolicyResolverFactory.create(),extensions); }
Example #25
Source File: WSDLModel.java From TencentKona-8 with GNU General Public License v2.0 | 2 votes |
/** * 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 #26
Source File: WSDLModel.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * 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 #27
Source File: RuntimeWSDLParser.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * Parses the WSDL and gives WSDLModel. If wsdl parameter is null, then wsdlLoc is used to get the WSDL. If the WSDL * document could not be obtained then {@link MetadataResolverFactory} is tried to get the WSDL document, if not found * then as last option, if the wsdlLoc has no '?wsdl' as query parameter then it is tried by appending '?wsdl'. * * @param wsdlLoc * Either this or {@code wsdl} parameter must be given. * Null location means the system won't be able to resolve relative references in the WSDL, */ public static WSDLModel parse(@Nullable URL wsdlLoc, @NotNull Source wsdlSource, @NotNull EntityResolver resolver, boolean isClientSide, Container container, Class serviceClass, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException { return parse(wsdlLoc, wsdlSource, resolver, isClientSide, container, serviceClass, PolicyResolverFactory.create(),extensions); }
Example #28
Source File: RuntimeWSDLParser.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * Parses the WSDL and gives WSDLModel. If wsdl parameter is null, then wsdlLoc is used to get the WSDL. If the WSDL * document could not be obtained then {@link MetadataResolverFactory} is tried to get the WSDL document, if not found * then as last option, if the wsdlLoc has no '?wsdl' as query parameter then it is tried by appending '?wsdl'. * * @param wsdlLoc * Either this or {@code wsdl} parameter must be given. * Null location means the system won't be able to resolve relative references in the WSDL, */ public static WSDLModel parse(@Nullable URL wsdlLoc, @NotNull Source wsdlSource, @NotNull EntityResolver resolver, boolean isClientSide, Container container, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException { return parse(wsdlLoc, wsdlSource, resolver, isClientSide, container, Service.class, PolicyResolverFactory.create(),extensions); }
Example #29
Source File: WSDLModel.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * 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 #30
Source File: RuntimeWSDLParser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 2 votes |
/** * Parses the WSDL and gives WSDLModel. If wsdl parameter is null, then wsdlLoc is used to get the WSDL. If the WSDL * document could not be obtained then {@link MetadataResolverFactory} is tried to get the WSDL document, if not found * then as last option, if the wsdlLoc has no '?wsdl' as query parameter then it is tried by appending '?wsdl'. * * @param wsdlLoc * Either this or <tt>wsdl</tt> parameter must be given. * Null location means the system won't be able to resolve relative references in the WSDL, */ public static WSDLModel parse(@Nullable URL wsdlLoc, @NotNull Source wsdlSource, @NotNull EntityResolver resolver, boolean isClientSide, Container container, Class serviceClass, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException { return parse(wsdlLoc, wsdlSource, resolver, isClientSide, container, serviceClass, PolicyResolverFactory.create(),extensions); }