public void configure(EndpointDescription endpointDescription) { if(log.isDebugEnabled()){ log.debug("Invoking RespectBindingConfiguration.configure() on Server"); } RespectBinding annotation = (RespectBinding) ((EndpointDescriptionJava) endpointDescription).getAnnoFeature(RespectBindingFeature.ID); if (annotation != null) { if (log.isDebugEnabled()) { log.debug("Setting respectBinding to " + annotation.enabled()); } endpointDescription.setRespectBinding(annotation.enabled()); // Once we know that @RespectBinding is enabled, we have to find // any binding extensibility elements available and see which ones // have the "required" flag set to true. EndpointDescriptionWSDL edw = (EndpointDescriptionWSDL) endpointDescription; Binding bnd = edw.getWSDLBinding(); Set<WSDLValidatorElement> requiredExtension = endpointDescription.getRequiredBindings(); List<QName> unusedExtensions = new ArrayList<QName>(); //invoke the search algorithm. WSDLExtensionUtils.search(bnd, requiredExtension, unusedExtensions); if (log.isDebugEnabled()) { log.debug("The following extensibility elements were found, but were not required."); for (int n = 0; n < unusedExtensions.size(); ++n) log.debug("[" + (n + 1) + "] - " + unusedExtensions.get(n)); } } else { if (log.isDebugEnabled()) { log.debug("No @RespectBinding annotation was found."); } } if(log.isDebugEnabled()){ log.debug("Exit from RespectBindingConfiguration.configure() on Server."); } }
public Class<? extends Annotation> annotationType() { return RespectBinding.class; }