/** * Returns true if <code>binding</code> contains either a {@link AddressingFeature} or * {@link MemberSubmissionAddressingFeature} and is enabled. * * @param binding The binding * @return true if WS-Addressing is enabled for <code>binding</code>. */ public static boolean isEnabled(WSBinding binding) { return binding.isFeatureEnabled(MemberSubmissionAddressingFeature.class) || binding.isFeatureEnabled(AddressingFeature.class); }
/** * Returns true if <code>binding</code> contains either a {@link AddressingFeature} or * {@link MemberSubmissionAddressingFeature} and is enabled. * * @param binding The binding * @return true if WS-Addressing is enabled for <code>binding</code>. */ public static boolean isEnabled(WSBinding binding) { return binding.isFeatureEnabled(MemberSubmissionAddressingFeature.class) || binding.isFeatureEnabled(AddressingFeature.class); }
/** * Returns true if <code>binding</code> contains either a {@link AddressingFeature} or * {@link MemberSubmissionAddressingFeature} and is enabled. * * @param binding The binding * @return true if WS-Addressing is enabled for <code>binding</code>. */ public static boolean isEnabled(WSBinding binding) { return binding.isFeatureEnabled(MemberSubmissionAddressingFeature.class) || binding.isFeatureEnabled(AddressingFeature.class); }
/** * Gets the {@link AddressingVersion} from a {@link WSBinding} * * @param binding WSDL binding * @return * addresing version enabled, or null if none is enabled. */ public static @Nullable AddressingVersion fromBinding(WSBinding binding) { // TODO: who is responsible for reporting an error if both versions // are on? if (binding.isFeatureEnabled(AddressingFeature.class)) return W3C; if (binding.isFeatureEnabled(MemberSubmissionAddressingFeature.class)) return MEMBER; return null; }
/** * Gets the {@link AddressingVersion} from a {@link WSBinding} * * @param binding WSDL binding * @return * addresing version enabled, or null if none is enabled. */ public static @Nullable AddressingVersion fromBinding(WSBinding binding) { // TODO: who is responsible for reporting an error if both versions // are on? if (binding.isFeatureEnabled(AddressingFeature.class)) return W3C; if (binding.isFeatureEnabled(MemberSubmissionAddressingFeature.class)) return MEMBER; return null; }
/** * creates a {@link Tube} that validates messages against schema */ public Tube createValidationTube(Tube next) { if (binding instanceof SOAPBinding && binding.isFeatureEnabled(SchemaValidationFeature.class) && wsdlModel!=null) return new ClientSchemaValidationTube(binding, wsdlModel, next); else return next; }
/** * creates a {@link Tube} that validates messages against schema */ public Tube createValidationTube(Tube next) { if (binding instanceof SOAPBinding && binding.isFeatureEnabled(SchemaValidationFeature.class) && wsdlModel!=null) return new ClientSchemaValidationTube(binding, wsdlModel, next); else return next; }
/** * creates a {@link Tube} that validates messages against schema */ public Tube createValidationTube(Tube next) { if (binding instanceof SOAPBinding && binding.isFeatureEnabled(SchemaValidationFeature.class) && wsdlModel!=null) return new ClientSchemaValidationTube(binding, wsdlModel, next); else return next; }
protected WsaTubeHelper getTubeHelper() { if(binding.isFeatureEnabled(AddressingFeature.class)) { return new WsaTubeHelperImpl(wsdlPort, null, binding); } else if(binding.isFeatureEnabled(MemberSubmissionAddressingFeature.class)) { //seiModel is null as it is not needed. return new com.sun.xml.ws.addressing.v200408.WsaTubeHelperImpl(wsdlPort, null, binding); } else { // Addressing is not enabled, WsaTube should not be included in the pipeline throw new WebServiceException(AddressingMessages.ADDRESSING_NOT_ENABLED(this.getClass().getSimpleName())); } }
protected WsaTubeHelper getTubeHelper() { if(binding.isFeatureEnabled(AddressingFeature.class)) { return new WsaTubeHelperImpl(wsdlPort, null, binding); } else if(binding.isFeatureEnabled(MemberSubmissionAddressingFeature.class)) { //seiModel is null as it is not needed. return new com.sun.xml.ws.addressing.v200408.WsaTubeHelperImpl(wsdlPort, null, binding); } else { // Addressing is not enabled, WsaTube should not be included in the pipeline throw new WebServiceException(AddressingMessages.ADDRESSING_NOT_ENABLED(this.getClass().getSimpleName())); } }
protected WsaTubeHelper getTubeHelper() { if(binding.isFeatureEnabled(AddressingFeature.class)) { return new WsaTubeHelperImpl(wsdlPort, null, binding); } else if(binding.isFeatureEnabled(MemberSubmissionAddressingFeature.class)) { //seiModel is null as it is not needed. return new com.sun.xml.ws.addressing.v200408.WsaTubeHelperImpl(wsdlPort, null, binding); } else { // Addressing is not enabled, WsaTube should not be included in the pipeline throw new WebServiceException(AddressingMessages.ADDRESSING_NOT_ENABLED(this.getClass().getSimpleName())); } }
/** * Checks only if RespectBindingFeature is enabled * checks if all required wsdl extensions in the * corresponding wsdl:Port are understood when RespectBindingFeature is enabled. * @throws WebServiceException * when any wsdl extension that has wsdl:required=true is not understood */ private static void checkAllWSDLExtensionsUnderstood(WSPortInfo port, WSBinding binding) { if (port.getPort() != null && binding.isFeatureEnabled(RespectBindingFeature.class)) { port.getPort().areRequiredExtensionsUnderstood(); } }
/** * Checks only if RespectBindingFeature is enabled * checks if all required wsdl extensions in the * corresponding wsdl:Port are understood when RespectBindingFeature is enabled. * @throws WebServiceException * when any wsdl extension that has wsdl:required=true is not understood */ private static void checkAllWSDLExtensionsUnderstood(WSPortInfo port, WSBinding binding) { if (port.getPort() != null && binding.isFeatureEnabled(RespectBindingFeature.class)) { port.getPort().areRequiredExtensionsUnderstood(); } }
/** * Checks only if RespectBindingFeature is enabled * checks if all required wsdl extensions in the * corresponding wsdl:Port are understood when RespectBindingFeature is enabled. * @throws WebServiceException * when any wsdl extension that has wsdl:required=true is not understood */ private static void checkAllWSDLExtensionsUnderstood(WSPortInfo port, WSBinding binding) { if (port.getPort() != null && binding.isFeatureEnabled(RespectBindingFeature.class)) { port.getPort().areRequiredExtensionsUnderstood(); } }
static public WebServiceFeature[] toFeatureArray(WSBinding binding) { //TODO scchen convert BindingID to WebServiceFeature[] if(!binding.isFeatureEnabled(EnvelopeStyleFeature.class)) { WebServiceFeature[] f = { binding.getSOAPVersion().toFeature() }; binding.getFeatures().mergeFeatures(f, false); } return binding.getFeatures().toArray(); } }
static public WebServiceFeature[] toFeatureArray(WSBinding binding) { //TODO scchen convert BindingID to WebServiceFeature[] if(!binding.isFeatureEnabled(EnvelopeStyleFeature.class)) { WebServiceFeature[] f = { binding.getSOAPVersion().toFeature() }; binding.getFeatures().mergeFeatures(f, false); } return binding.getFeatures().toArray(); } }
@Override public void start(WSDLGenExtnContext ctxt) { WSBinding binding = ctxt.getBinding(); TypedXmlWriter root = ctxt.getRoot(); enabled = binding.isFeatureEnabled(AddressingFeature.class); if (!enabled) return; AddressingFeature ftr = binding.getFeature(AddressingFeature.class); required = ftr.isRequired(); root._namespace(AddressingVersion.W3C.wsdlNsUri, AddressingVersion.W3C.getWsdlPrefix()); }
@Override public void start(WSDLGenExtnContext ctxt) { WSBinding binding = ctxt.getBinding(); TypedXmlWriter root = ctxt.getRoot(); enabled = binding.isFeatureEnabled(AddressingFeature.class); if (!enabled) return; AddressingFeature ftr = binding.getFeature(AddressingFeature.class); required = ftr.isRequired(); root._namespace(AddressingVersion.W3C.wsdlNsUri, AddressingVersion.W3C.getWsdlPrefix()); }
static public WebServiceFeature[] toFeatureArray(WSBinding binding) { //TODO scchen convert BindingID to WebServiceFeature[] if(!binding.isFeatureEnabled(EnvelopeStyleFeature.class)) { WebServiceFeature[] f = { binding.getSOAPVersion().toFeature() }; binding.getFeatures().mergeFeatures(f, false); } return binding.getFeatures().toArray(); } }
@Override public void start(WSDLGenExtnContext ctxt) { WSBinding binding = ctxt.getBinding(); TypedXmlWriter root = ctxt.getRoot(); enabled = binding.isFeatureEnabled(AddressingFeature.class); if (!enabled) return; AddressingFeature ftr = binding.getFeature(AddressingFeature.class); required = ftr.isRequired(); root._namespace(AddressingVersion.W3C.wsdlNsUri, AddressingVersion.W3C.getWsdlPrefix()); }