private boolean addressibleElement(XMLStreamReader reader, WSDLFeaturedObject binding) { QName ua = reader.getName(); if (ua.equals(AddressingVersion.MEMBER.wsdlExtensionTag)) { String required = reader.getAttributeValue(WSDLConstants.NS_WSDL, "required"); binding.addFeature(new MemberSubmissionAddressingFeature(Boolean.parseBoolean(required))); XMLStreamReaderUtil.skipElement(reader); return true; // UsingAddressing is consumed } return false; }
public MemberSubmissionWsaClientTube(WSDLPort wsdlPort, WSBinding binding, Tube next) { super(wsdlPort, binding, next); validation = binding.getFeature(MemberSubmissionAddressingFeature.class).getValidation(); }
/** * Returns true if <code>binding</code> contains either a {@link AddressingFeature} or * {@link MemberSubmissionAddressingFeature} and is required. * * @param binding The binding * @return true if <code>binding</code> requires WS-Addressing */ public static boolean isRequired(WSBinding binding) { AddressingFeature af = binding.getFeature(AddressingFeature.class); if (af != null) return af.isRequired(); MemberSubmissionAddressingFeature msaf = binding.getFeature(MemberSubmissionAddressingFeature.class); if(msaf != null) return msaf.isRequired(); return false; }
public <T> Dispatch<T> createDispatch(QName portName, Class<T> aClass, Service.Mode mode, WebServiceFeatureList features) { WSEndpointReference wsepr = null; boolean isAddressingEnabled = false; AddressingFeature af = features.get(AddressingFeature.class); if (af == null) { af = this.features.get(AddressingFeature.class); } if (af != null && af.isEnabled()) isAddressingEnabled = true; MemberSubmissionAddressingFeature msa = features.get(MemberSubmissionAddressingFeature.class); if (msa == null) { msa = this.features.get(MemberSubmissionAddressingFeature.class); } if (msa != null && msa.isEnabled()) isAddressingEnabled = true; if(isAddressingEnabled && wsdlService != null && wsdlService.get(portName) != null) { wsepr = wsdlService.get(portName).getEPR(); } return createDispatch(portName, wsepr, aClass, mode, features); }
/** * Returns true if the WebServiceFeature is either a {@link AddressingFeature} or * {@link MemberSubmissionAddressingFeature} and is required. * * @param wsf The WebServiceFeature encaps * @throws WebServiceException if <code>wsf</code> does not contain either {@link AddressingFeature} or * {@link MemberSubmissionAddressingFeature} * @return true if <code>wsf</code> requires WS-Addressing */ public static boolean isRequired(WebServiceFeature wsf) { if (wsf.getID().equals(AddressingFeature.ID)) { return ((AddressingFeature)wsf).isRequired(); } else if (wsf.getID().equals(MemberSubmissionAddressingFeature.ID)) { return ((MemberSubmissionAddressingFeature)wsf).isRequired(); } else throw new WebServiceException("WebServiceFeature not an Addressing feature: "+ wsf.getID()); }
protected Dispatch<Object> createDispatch(QName portName, JAXBContext jaxbContext, Service.Mode mode, WebServiceFeatureList features) { WSEndpointReference wsepr = null; boolean isAddressingEnabled = false; AddressingFeature af = features.get(AddressingFeature.class); if (af == null) { af = this.features.get(AddressingFeature.class); } if (af != null && af.isEnabled()) isAddressingEnabled = true; MemberSubmissionAddressingFeature msa = features.get(MemberSubmissionAddressingFeature.class); if (msa == null) { msa = this.features.get(MemberSubmissionAddressingFeature.class); } if (msa != null && msa.isEnabled()) isAddressingEnabled = true; if(isAddressingEnabled && wsdlService != null && wsdlService.get(portName) != null) { wsepr = wsdlService.get(portName).getEPR(); } return createDispatch(portName, wsepr, jaxbContext, mode, features); }
private boolean addressibleElement(XMLStreamReader reader, WSDLFeaturedObject binding) { QName ua = reader.getName(); if (ua.equals(AddressingVersion.MEMBER.wsdlExtensionTag)) { String required = reader.getAttributeValue(WSDLConstants.NS_WSDL, "required"); binding.addFeature(new MemberSubmissionAddressingFeature(Boolean.parseBoolean(required))); XMLStreamReaderUtil.skipElement(reader); return true; // UsingAddressing is consumed } return false; }
public MemberSubmissionWsaClientTube(WSDLPort wsdlPort, WSBinding binding, Tube next) { super(wsdlPort, binding, next); validation = binding.getFeature(MemberSubmissionAddressingFeature.class).getValidation(); }
/** * Returns true if <code>binding</code> contains either a {@link AddressingFeature} or * {@link MemberSubmissionAddressingFeature} and is required. * * @param binding The binding * @return true if <code>binding</code> requires WS-Addressing */ public static boolean isRequired(WSBinding binding) { AddressingFeature af = binding.getFeature(AddressingFeature.class); if (af != null) return af.isRequired(); MemberSubmissionAddressingFeature msaf = binding.getFeature(MemberSubmissionAddressingFeature.class); if(msaf != null) return msaf.isRequired(); return false; }
public <T> Dispatch<T> createDispatch(QName portName, Class<T> aClass, Service.Mode mode, WebServiceFeatureList features) { WSEndpointReference wsepr = null; boolean isAddressingEnabled = false; AddressingFeature af = features.get(AddressingFeature.class); if (af == null) { af = this.features.get(AddressingFeature.class); } if (af != null && af.isEnabled()) isAddressingEnabled = true; MemberSubmissionAddressingFeature msa = features.get(MemberSubmissionAddressingFeature.class); if (msa == null) { msa = this.features.get(MemberSubmissionAddressingFeature.class); } if (msa != null && msa.isEnabled()) isAddressingEnabled = true; if(isAddressingEnabled && wsdlService != null && wsdlService.get(portName) != null) { wsepr = wsdlService.get(portName).getEPR(); } return createDispatch(portName, wsepr, aClass, mode, features); }
private boolean addressibleElement(XMLStreamReader reader, WSDLFeaturedObject binding) { QName ua = reader.getName(); if (ua.equals(AddressingVersion.MEMBER.wsdlExtensionTag)) { String required = reader.getAttributeValue(WSDLConstants.NS_WSDL, "required"); binding.addFeature(new MemberSubmissionAddressingFeature(Boolean.parseBoolean(required))); XMLStreamReaderUtil.skipElement(reader); return true; // UsingAddressing is consumed } return false; }
public MemberSubmissionWsaClientTube(WSDLPort wsdlPort, WSBinding binding, Tube next) { super(wsdlPort, binding, next); validation = binding.getFeature(MemberSubmissionAddressingFeature.class).getValidation(); }
/** * Returns true if <code>binding</code> contains either a {@link AddressingFeature} or * {@link MemberSubmissionAddressingFeature} and is required. * * @param binding The binding * @return true if <code>binding</code> requires WS-Addressing */ public static boolean isRequired(WSBinding binding) { AddressingFeature af = binding.getFeature(AddressingFeature.class); if (af != null) return af.isRequired(); MemberSubmissionAddressingFeature msaf = binding.getFeature(MemberSubmissionAddressingFeature.class); if(msaf != null) return msaf.isRequired(); return false; }
protected Dispatch<Object> createDispatch(QName portName, JAXBContext jaxbContext, Service.Mode mode, WebServiceFeatureList features) { WSEndpointReference wsepr = null; boolean isAddressingEnabled = false; AddressingFeature af = features.get(AddressingFeature.class); if (af == null) { af = this.features.get(AddressingFeature.class); } if (af != null && af.isEnabled()) isAddressingEnabled = true; MemberSubmissionAddressingFeature msa = features.get(MemberSubmissionAddressingFeature.class); if (msa == null) { msa = this.features.get(MemberSubmissionAddressingFeature.class); } if (msa != null && msa.isEnabled()) isAddressingEnabled = true; if(isAddressingEnabled && wsdlService != null && wsdlService.get(portName) != null) { wsepr = wsdlService.get(portName).getEPR(); } return createDispatch(portName, wsepr, jaxbContext, mode, features); }
/** * Gets the {@link WebServiceFeature} corresponding to the namespace URI of * WS-Addressing policy assertion in the WSDL. <code>enabled</code> and * <code>required</code> are used to initialize the value of the feature. * * @param nsUri namespace URI of the WS-Addressing policy assertion in the WSDL * @param enabled true if feature is to be enabled, false otherwise * @param required true if feature is required, false otherwise. Corresponds * to wsdl:required on the extension/assertion. * @return WebServiceFeature corresponding to the assertion namespace URI * @throws WebServiceException if an unsupported namespace URI is passed */ public static @NotNull WebServiceFeature getFeature(String nsUri, boolean enabled, boolean required) { if (nsUri.equals(W3C.policyNsUri)) return new AddressingFeature(enabled, required); else if (nsUri.equals(MEMBER.policyNsUri)) return new MemberSubmissionAddressingFeature(enabled, required); else throw new WebServiceException("Unsupported namespace URI: " + nsUri); }
public MemberSubmissionWsaServerTube(WSEndpoint endpoint, @NotNull WSDLPort wsdlPort, WSBinding binding, Tube next) { super(endpoint, wsdlPort, binding, next); validation = binding.getFeature(MemberSubmissionAddressingFeature.class).getValidation(); }
/** * Returns true if the WebServiceFeature is either a {@link AddressingFeature} or * {@link MemberSubmissionAddressingFeature} and is required. * * @param wsf The WebServiceFeature encaps * @throws WebServiceException if <code>wsf</code> does not contain either {@link AddressingFeature} or * {@link MemberSubmissionAddressingFeature} * @return true if <code>wsf</code> requires WS-Addressing */ public static boolean isRequired(WebServiceFeature wsf) { if (wsf.getID().equals(AddressingFeature.ID)) { return ((AddressingFeature)wsf).isRequired(); } else if (wsf.getID().equals(MemberSubmissionAddressingFeature.ID)) { return ((MemberSubmissionAddressingFeature)wsf).isRequired(); } else throw new WebServiceException("WebServiceFeature not an Addressing feature: "+ wsf.getID()); }
protected Dispatch<Object> createDispatch(QName portName, JAXBContext jaxbContext, Service.Mode mode, WebServiceFeatureList features) { WSEndpointReference wsepr = null; boolean isAddressingEnabled = false; AddressingFeature af = features.get(AddressingFeature.class); if (af == null) { af = this.features.get(AddressingFeature.class); } if (af != null && af.isEnabled()) isAddressingEnabled = true; MemberSubmissionAddressingFeature msa = features.get(MemberSubmissionAddressingFeature.class); if (msa == null) { msa = this.features.get(MemberSubmissionAddressingFeature.class); } if (msa != null && msa.isEnabled()) isAddressingEnabled = true; if(isAddressingEnabled && wsdlService != null && wsdlService.get(portName) != null) { wsepr = wsdlService.get(portName).getEPR(); } return createDispatch(portName, wsepr, jaxbContext, mode, features); }
/** * Gets the {@link WebServiceFeature} corresponding to the namespace URI of * WS-Addressing policy assertion in the WSDL. <code>enabled</code> and * <code>required</code> are used to initialize the value of the feature. * * @param nsUri namespace URI of the WS-Addressing policy assertion in the WSDL * @param enabled true if feature is to be enabled, false otherwise * @param required true if feature is required, false otherwise. Corresponds * to wsdl:required on the extension/assertion. * @return WebServiceFeature corresponding to the assertion namespace URI * @throws WebServiceException if an unsupported namespace URI is passed */ public static @NotNull WebServiceFeature getFeature(String nsUri, boolean enabled, boolean required) { if (nsUri.equals(W3C.policyNsUri)) return new AddressingFeature(enabled, required); else if (nsUri.equals(MEMBER.policyNsUri)) return new MemberSubmissionAddressingFeature(enabled, required); else throw new WebServiceException("Unsupported namespace URI: " + nsUri); }
public MemberSubmissionWsaServerTube(WSEndpoint endpoint, @NotNull WSDLPort wsdlPort, WSBinding binding, Tube next) { super(endpoint, wsdlPort, binding, next); validation = binding.getFeature(MemberSubmissionAddressingFeature.class).getValidation(); }