com.sun.xml.internal.ws.api.model.wsdl.WSDLObject Java Examples
The following examples show how to use
com.sun.xml.internal.ws.api.model.wsdl.WSDLObject.
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: PolicyWSDLParserExtension.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private boolean processSubelement( final WSDLObject element, final XMLStreamReader reader, final Map<WSDLObject, Collection<PolicyRecordHandler>> map) { if (NamespaceVersion.resolveAsToken(reader.getName()) == XmlToken.PolicyReference) { // "PolicyReference" element interests us processReferenceUri(policyReader.readPolicyReferenceElement(reader), element, reader, map); return true; } else if (NamespaceVersion.resolveAsToken(reader.getName()) == XmlToken.Policy) { // policy could be defined here final PolicyRecordHandler handler = readSinglePolicy( policyReader.readPolicyElement( reader, (null == reader.getLocation().getSystemId()) ? // baseUrl "" : reader.getLocation().getSystemId()), true); if (null != handler) { // only policies with an Id can work for us addHandlerToMap(map, element, handler); } // endif null != handler return true; // element consumed }//end if Policy element found return false; }
Example #2
Source File: PolicyWSDLParserExtension.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private void processReferenceUri( final String policyUri, final WSDLObject element, final XMLStreamReader reader, final Map<WSDLObject, Collection<PolicyRecordHandler>> map) { if (null == policyUri || policyUri.length() == 0) { return; } if ('#' != policyUri.charAt(0)) { // external uri (already) getUnresolvedUris(false).add(policyUri); } addHandlerToMap(map, element, new PolicyRecordHandler( HandlerType.PolicyUri, SafePolicyReader.relativeToAbsoluteUrl(policyUri, reader.getLocation().getSystemId()))); }
Example #3
Source File: PolicyWSDLParserExtension.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private boolean processSubelement( final WSDLObject element, final XMLStreamReader reader, final Map<WSDLObject, Collection<PolicyRecordHandler>> map) { if (NamespaceVersion.resolveAsToken(reader.getName()) == XmlToken.PolicyReference) { // "PolicyReference" element interests us processReferenceUri(policyReader.readPolicyReferenceElement(reader), element, reader, map); return true; } else if (NamespaceVersion.resolveAsToken(reader.getName()) == XmlToken.Policy) { // policy could be defined here final PolicyRecordHandler handler = readSinglePolicy( policyReader.readPolicyElement( reader, (null == reader.getLocation().getSystemId()) ? // baseUrl "" : reader.getLocation().getSystemId()), true); if (null != handler) { // only policies with an Id can work for us addHandlerToMap(map, element, handler); } // endif null != handler return true; // element consumed }//end if Policy element found return false; }
Example #4
Source File: PolicyWSDLParserExtension.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
private void processReferenceUri( final String policyUri, final WSDLObject element, final XMLStreamReader reader, final Map<WSDLObject, Collection<PolicyRecordHandler>> map) { if (null == policyUri || policyUri.length() == 0) { return; } if ('#' != policyUri.charAt(0)) { // external uri (already) getUnresolvedUris(false).add(policyUri); } addHandlerToMap(map, element, new PolicyRecordHandler( HandlerType.PolicyUri, SafePolicyReader.relativeToAbsoluteUrl(policyUri, reader.getLocation().getSystemId()))); }
Example #5
Source File: PolicyWSDLParserExtension.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private void processReferenceUri( final String policyUri, final WSDLObject element, final XMLStreamReader reader, final Map<WSDLObject, Collection<PolicyRecordHandler>> map) { if (null == policyUri || policyUri.length() == 0) { return; } if ('#' != policyUri.charAt(0)) { // external uri (already) getUnresolvedUris(false).add(policyUri); } addHandlerToMap(map, element, new PolicyRecordHandler( HandlerType.PolicyUri, SafePolicyReader.relativeToAbsoluteUrl(policyUri, reader.getLocation().getSystemId()))); }
Example #6
Source File: PolicyWSDLParserExtension.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private boolean processSubelement( final WSDLObject element, final XMLStreamReader reader, final Map<WSDLObject, Collection<PolicyRecordHandler>> map) { if (NamespaceVersion.resolveAsToken(reader.getName()) == XmlToken.PolicyReference) { // "PolicyReference" element interests us processReferenceUri(policyReader.readPolicyReferenceElement(reader), element, reader, map); return true; } else if (NamespaceVersion.resolveAsToken(reader.getName()) == XmlToken.Policy) { // policy could be defined here final PolicyRecordHandler handler = readSinglePolicy( policyReader.readPolicyElement( reader, (null == reader.getLocation().getSystemId()) ? // baseUrl "" : reader.getLocation().getSystemId()), true); if (null != handler) { // only policies with an Id can work for us addHandlerToMap(map, element, handler); } // endif null != handler return true; // element consumed }//end if Policy element found return false; }
Example #7
Source File: PolicyWSDLParserExtension.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
private boolean processSubelement( final WSDLObject element, final XMLStreamReader reader, final Map<WSDLObject, Collection<PolicyRecordHandler>> map) { if (NamespaceVersion.resolveAsToken(reader.getName()) == XmlToken.PolicyReference) { // "PolicyReference" element interests us processReferenceUri(policyReader.readPolicyReferenceElement(reader), element, reader, map); return true; } else if (NamespaceVersion.resolveAsToken(reader.getName()) == XmlToken.Policy) { // policy could be defined here final PolicyRecordHandler handler = readSinglePolicy( policyReader.readPolicyElement( reader, (null == reader.getLocation().getSystemId()) ? // baseUrl "" : reader.getLocation().getSystemId()), true); if (null != handler) { // only policies with an Id can work for us addHandlerToMap(map, element, handler); } // endif null != handler return true; // element consumed }//end if Policy element found return false; }
Example #8
Source File: PolicyWSDLParserExtension.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private void processReferenceUri( final String policyUri, final WSDLObject element, final XMLStreamReader reader, final Map<WSDLObject, Collection<PolicyRecordHandler>> map) { if (null == policyUri || policyUri.length() == 0) { return; } if ('#' != policyUri.charAt(0)) { // external uri (already) getUnresolvedUris(false).add(policyUri); } addHandlerToMap(map, element, new PolicyRecordHandler( HandlerType.PolicyUri, SafePolicyReader.relativeToAbsoluteUrl(policyUri, reader.getLocation().getSystemId()))); }
Example #9
Source File: PolicyWSDLParserExtension.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private boolean processSubelement( final WSDLObject element, final XMLStreamReader reader, final Map<WSDLObject, Collection<PolicyRecordHandler>> map) { if (NamespaceVersion.resolveAsToken(reader.getName()) == XmlToken.PolicyReference) { // "PolicyReference" element interests us processReferenceUri(policyReader.readPolicyReferenceElement(reader), element, reader, map); return true; } else if (NamespaceVersion.resolveAsToken(reader.getName()) == XmlToken.Policy) { // policy could be defined here final PolicyRecordHandler handler = readSinglePolicy( policyReader.readPolicyElement( reader, (null == reader.getLocation().getSystemId()) ? // baseUrl "" : reader.getLocation().getSystemId()), true); if (null != handler) { // only policies with an Id can work for us addHandlerToMap(map, element, handler); } // endif null != handler return true; // element consumed }//end if Policy element found return false; }
Example #10
Source File: PolicyWSDLParserExtension.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private void processReferenceUri( final String policyUri, final WSDLObject element, final XMLStreamReader reader, final Map<WSDLObject, Collection<PolicyRecordHandler>> map) { if (null == policyUri || policyUri.length() == 0) { return; } if ('#' != policyUri.charAt(0)) { // external uri (already) getUnresolvedUris(false).add(policyUri); } addHandlerToMap(map, element, new PolicyRecordHandler( HandlerType.PolicyUri, SafePolicyReader.relativeToAbsoluteUrl(policyUri, reader.getLocation().getSystemId()))); }
Example #11
Source File: PolicyWSDLParserExtension.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private void addHandlerToMap( final Map<WSDLObject, Collection<PolicyRecordHandler>> map, final WSDLObject key, final PolicyRecordHandler handler) { if (map.containsKey(key)) { map.get(key).add(handler); } else { final Collection<PolicyRecordHandler> newSet = new LinkedList<PolicyRecordHandler>(); newSet.add(handler); map.put(key,newSet); } }
Example #12
Source File: PolicyWSDLParserExtension.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private void processAttributes(final WSDLObject element, final XMLStreamReader reader, final Map<WSDLObject, Collection<PolicyRecordHandler>> map) { final String[] uriArray = getPolicyURIsFromAttr(reader); if (null != uriArray) { for (String policyUri : uriArray) { processReferenceUri(policyUri, element, reader, map); } } }
Example #13
Source File: PolicyWSDLParserExtension.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private void addHandlerToMap( final Map<WSDLObject, Collection<PolicyRecordHandler>> map, final WSDLObject key, final PolicyRecordHandler handler) { if (map.containsKey(key)) { map.get(key).add(handler); } else { final Collection<PolicyRecordHandler> newSet = new LinkedList<PolicyRecordHandler>(); newSet.add(handler); map.put(key,newSet); } }
Example #14
Source File: PolicyWSDLParserExtension.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private void processAttributes(final WSDLObject element, final XMLStreamReader reader, final Map<WSDLObject, Collection<PolicyRecordHandler>> map) { final String[] uriArray = getPolicyURIsFromAttr(reader); if (null != uriArray) { for (String policyUri : uriArray) { processReferenceUri(policyUri, element, reader, map); } } }
Example #15
Source File: PolicyWSDLParserExtension.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private void processAttributes(final WSDLObject element, final XMLStreamReader reader, final Map<WSDLObject, Collection<PolicyRecordHandler>> map) { final String[] uriArray = getPolicyURIsFromAttr(reader); if (null != uriArray) { for (String policyUri : uriArray) { processReferenceUri(policyUri, element, reader, map); } } }
Example #16
Source File: PolicyWSDLParserExtension.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private void addHandlerToMap( final Map<WSDLObject, Collection<PolicyRecordHandler>> map, final WSDLObject key, final PolicyRecordHandler handler) { if (map.containsKey(key)) { map.get(key).add(handler); } else { final Collection<PolicyRecordHandler> newSet = new LinkedList<PolicyRecordHandler>(); newSet.add(handler); map.put(key,newSet); } }
Example #17
Source File: PolicyWSDLParserExtension.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private void processAttributes(final WSDLObject element, final XMLStreamReader reader, final Map<WSDLObject, Collection<PolicyRecordHandler>> map) { final String[] uriArray = getPolicyURIsFromAttr(reader); if (null != uriArray) { for (String policyUri : uriArray) { processReferenceUri(policyUri, element, reader, map); } } }
Example #18
Source File: PolicyWSDLParserExtension.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private void addHandlerToMap( final Map<WSDLObject, Collection<PolicyRecordHandler>> map, final WSDLObject key, final PolicyRecordHandler handler) { if (map.containsKey(key)) { map.get(key).add(handler); } else { final Collection<PolicyRecordHandler> newSet = new LinkedList<PolicyRecordHandler>(); newSet.add(handler); map.put(key,newSet); } }
Example #19
Source File: PolicyWSDLParserExtension.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private void addHandlerToMap( final Map<WSDLObject, Collection<PolicyRecordHandler>> map, final WSDLObject key, final PolicyRecordHandler handler) { if (map.containsKey(key)) { map.get(key).add(handler); } else { final Collection<PolicyRecordHandler> newSet = new LinkedList<PolicyRecordHandler>(); newSet.add(handler); map.put(key,newSet); } }
Example #20
Source File: PolicyWSDLParserExtension.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private Map<WSDLObject, Collection<PolicyRecordHandler>> getHandlers4MessageMap() { if (null==handlers4MessageMap) { handlers4MessageMap = new HashMap<WSDLObject,Collection<PolicyRecordHandler>>(); } return handlers4MessageMap; }
Example #21
Source File: PolicyWSDLParserExtension.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private Map<WSDLObject, Collection<PolicyRecordHandler>> getHandlers4OperationMap() { if (null==handlers4OperationMap) { handlers4OperationMap = new HashMap<WSDLObject,Collection<PolicyRecordHandler>>(); } return handlers4OperationMap; }
Example #22
Source File: PolicyWSDLParserExtension.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private Map<WSDLObject, Collection<PolicyRecordHandler>> getHandlers4InputMap() { if (null==handlers4InputMap) { handlers4InputMap = new HashMap<WSDLObject,Collection<PolicyRecordHandler>>(); } return handlers4InputMap; }
Example #23
Source File: PolicyWSDLParserExtension.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private Map<WSDLObject, Collection<PolicyRecordHandler>> getHandlers4BindingOutputOpMap() { if (null==handlers4BindingOutputOpMap) { handlers4BindingOutputOpMap = new HashMap<WSDLObject,Collection<PolicyRecordHandler>>(); } return handlers4BindingOutputOpMap; }
Example #24
Source File: PolicyWSDLParserExtension.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private Map<WSDLObject, Collection<PolicyRecordHandler>> getHandlers4OperationMap() { if (null==handlers4OperationMap) { handlers4OperationMap = new HashMap<WSDLObject,Collection<PolicyRecordHandler>>(); } return handlers4OperationMap; }
Example #25
Source File: PolicyWSDLParserExtension.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private Map<WSDLObject, Collection<PolicyRecordHandler>> getHandlers4BindingMap() { if (null==handlers4BindingMap) { handlers4BindingMap = new HashMap<WSDLObject,Collection<PolicyRecordHandler>>(); } return handlers4BindingMap; }
Example #26
Source File: PolicyWSDLParserExtension.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private Map<WSDLObject, Collection<PolicyRecordHandler>> getHandlers4PortTypeMap() { if (null==handlers4PortTypeMap) { handlers4PortTypeMap = new HashMap<WSDLObject,Collection<PolicyRecordHandler>>(); } return handlers4PortTypeMap; }
Example #27
Source File: PolicyWSDLParserExtension.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private Map<WSDLObject, Collection<PolicyRecordHandler>> getHandlers4PortMap() { if (null==handlers4PortMap) { handlers4PortMap = new HashMap<WSDLObject,Collection<PolicyRecordHandler>>(); } return handlers4PortMap; }
Example #28
Source File: PolicyWSDLParserExtension.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private Map<WSDLObject, Collection<PolicyRecordHandler>> getHandlers4ServiceMap() { if (null==handlers4ServiceMap) { handlers4ServiceMap = new HashMap<WSDLObject,Collection<PolicyRecordHandler>>(); } return handlers4ServiceMap; }
Example #29
Source File: PolicyWSDLParserExtension.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private Map<WSDLObject, Collection<PolicyRecordHandler>> getHandlers4BindingFaultOpMap() { if (null==handlers4BindingFaultOpMap) { handlers4BindingFaultOpMap = new HashMap<WSDLObject,Collection<PolicyRecordHandler>>(); } return handlers4BindingFaultOpMap; }
Example #30
Source File: PolicyWSDLParserExtension.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private Map<WSDLObject, Collection<PolicyRecordHandler>> getHandlers4BindingOutputOpMap() { if (null==handlers4BindingOutputOpMap) { handlers4BindingOutputOpMap = new HashMap<WSDLObject,Collection<PolicyRecordHandler>>(); } return handlers4BindingOutputOpMap; }