addressing.enabled(), addressing.required(), addressing.responses().toString()));
addressingFeatureInfo.setResponses(AddressingFeature.Responses.valueOf(addressing.getResponses().name()));
addressing.setEnabled(addressingAnnotation.enabled()); addressing.setRequired(addressingAnnotation.required()); addressing.setResponses(AddressingResponses.valueOf(addressingAnnotation.responses().toString())); portComponentRef.setAddressing(addressing); } else { addressing.setResponses(AddressingResponses.valueOf(addressingAnnotation.responses().toString()));
addressing.enabled(), addressing.required(), addressing.responses().toString()));
public final void resolveFeatures() { AddressingFeature addressing = getAddressingFeature(); if (addressing == null) { return; } if (addressing.isEnabled()) { WSAddressingFeature feature = getWSAddressingFeature(); if (feature == null) { feature = new WSAddressingFeature(); addAddressingFeature(feature); } feature.setAddressingRequired(addressing.isRequired()); feature.setResponses(addressing.getResponses().toString()); } else { removeAddressingFeature(); getEndpointInfo().setProperty("org.apache.cxf.ws.addressing.MAPAggregator.addressingDisabled", Boolean.TRUE); } }
private List<WebServiceFeatureInfo> buildWebServiceFeatureInfos(PortComponentRef portComponentRef) { List<WebServiceFeatureInfo> webServiceFeatureInfos = new ArrayList<WebServiceFeatureInfo>(3); Addressing addressing = portComponentRef.getAddressing(); if (addressing != null) { webServiceFeatureInfos.add(new AddressingFeatureInfo(addressing.getEnabled() == null ? true : addressing.getEnabled(), addressing.getRequired() == null ? false : addressing.getRequired(), addressing.getResponses() != null ? AddressingFeature.Responses.valueOf(addressing.getResponses().toString()) : AddressingFeature.Responses.ALL)); } if (portComponentRef.getEnableMtom() != null) { webServiceFeatureInfos.add(new MTOMFeatureInfo(portComponentRef.isEnableMtom(), portComponentRef.getMtomThreshold() == null ? 0 : portComponentRef.getMtomThreshold())); } if (portComponentRef.getRespectBinding() != null && portComponentRef.getRespectBinding().getEnabled() != null) { webServiceFeatureInfos.add(new RespectBindingFeatureInfo(portComponentRef.getRespectBinding().getEnabled())); } return webServiceFeatureInfos; }
private static void processAddressingAnnotation(final AnnotatedElement anElement, final UnifiedServiceRefMetaData serviceRefUMDM) { final javax.xml.ws.soap.Addressing addressingAnnotation = getAnnotation(anElement, javax.xml.ws.soap.Addressing.class); if (addressingAnnotation != null) { serviceRefUMDM.setAddressingMedadata(new AddressingMetadata(true, addressingAnnotation.enabled(), addressingAnnotation.required(), addressingAnnotation.responses().toString())); } }
private AddressingFeature.Responses getResponse(String s) { if (s != null) { return AddressingFeature.Responses.valueOf(AddressingFeature.Responses.class,s); } else return AddressingFeature.Responses.ALL; }
private static void processAddressingAnnotation(final AnnotatedElement anElement, final UnifiedServiceRefMetaData serviceRefUMDM) { final javax.xml.ws.soap.Addressing addressingAnnotation = getAnnotation(anElement, javax.xml.ws.soap.Addressing.class); if (addressingAnnotation != null) { serviceRefUMDM.setAddressingAnnotationSpecified(true); serviceRefUMDM.setAddressingEnabled(addressingAnnotation.enabled()); serviceRefUMDM.setAddressingRequired(addressingAnnotation.required()); serviceRefUMDM.setAddressingResponses(addressingAnnotation.responses().toString()); } }
private static void processAddressingAnnotation(final AnnotatedElement anElement, final UnifiedServiceRefMetaData serviceRefUMDM) { final javax.xml.ws.soap.Addressing addressingAnnotation = getAnnotation(anElement, javax.xml.ws.soap.Addressing.class); if (addressingAnnotation != null) { serviceRefUMDM.setAddressingMedadata(new AddressingMetadata(true, addressingAnnotation.enabled(), addressingAnnotation.required(), addressingAnnotation.responses().toString())); } }
private AddressingFeature.Responses getResponse(String s) { if (s != null) { return AddressingFeature.Responses.valueOf(AddressingFeature.Responses.class, s); } else return AddressingFeature.Responses.ALL; }
private AddressingFeature.Responses getResponse(String s) { if (s != null) { return AddressingFeature.Responses.valueOf(AddressingFeature.Responses.class,s); } else return AddressingFeature.Responses.ALL; }
public final void resolveFeatures() { AddressingFeature addressing = getAddressingFeature(); if (addressing == null) { return; } if (addressing.isEnabled()) { WSAddressingFeature feature = getWSAddressingFeature(); if (feature == null) { feature = new WSAddressingFeature(); addAddressingFeature(feature); } feature.setAddressingRequired(addressing.isRequired()); feature.setResponses(addressing.getResponses().toString()); } else { removeAddressingFeature(); getEndpointInfo().setProperty("org.apache.cxf.ws.addressing.MAPAggregator.addressingDisabled", Boolean.TRUE); } }