/** * return ResponseWrapper PartName if one present. * @return */ public String getAnnoResponseWrapperPartName(){ if(!isWrappedParameters()){ return null; } if (responseWrapperPartName == null) { if (getAnnoResponseWrapper() != null && !DescriptionUtils.isEmpty(getAnnoResponseWrapper().partName())) { responseWrapperPartName = getAnnoResponseWrapper().partName(); } else { // There is no default for the ResponseWrapper part name. responseWrapperPartName = null; } } if(log.isDebugEnabled()){ if(responseWrapperPartName!=null){ log.debug("ResponseWrapperPartName ="+responseWrapperPartName); }else{ log.debug("ResponseWrapperPartName = NULL"); } } return responseWrapperPartName; } // ===========================================
/** * return ResponseWrapper PartName if one present. * @return */ public String getAnnoResponseWrapperPartName(){ if(!isWrappedParameters()){ return null; } if (responseWrapperPartName == null) { if (getAnnoResponseWrapper() != null && !DescriptionUtils.isEmpty(getAnnoResponseWrapper().partName())) { responseWrapperPartName = getAnnoResponseWrapper().partName(); } else { // There is no default for the ResponseWrapper part name. responseWrapperPartName = null; } } if(log.isDebugEnabled()){ if(responseWrapperPartName!=null){ log.debug("ResponseWrapperPartName ="+responseWrapperPartName); }else{ log.debug("ResponseWrapperPartName = NULL"); } } return responseWrapperPartName; } // ===========================================
/** * This method will drive the attachment of @ResponeWrapper annotation data to the * <code>MethodDescriptionComposite</code> * * @param mdc - <code>MethodDescriptionComposite</code> * @param method - <code>Method</code> */ private void attachResponseWrapperAnnotation(MethodDescriptionComposite mdc, Method method) { ResponseWrapper responseWrapper = (ResponseWrapper)ConverterUtils.getAnnotation( ResponseWrapper.class, method); if (responseWrapper != null) { ResponseWrapperAnnot rwAnnot = ResponseWrapperAnnot.createResponseWrapperAnnotImpl(); rwAnnot.setClassName(responseWrapper.className()); rwAnnot.setLocalName(responseWrapper.localName()); rwAnnot.setTargetNamespace(responseWrapper.targetNamespace()); try { rwAnnot.setPartName(responseWrapper.partName()); } catch (NoSuchMethodError ex) { // Ignore: we are running on Java 1.6 and the JAX-WS 2.2 libs have not been endorsed } mdc.setResponseWrapperAnnot(rwAnnot); } }
/** * This method will drive the attachment of @ResponeWrapper annotation data to the * <code>MethodDescriptionComposite</code> * * @param mdc - <code>MethodDescriptionComposite</code> * @param method - <code>Method</code> */ private void attachResponseWrapperAnnotation(MethodDescriptionComposite mdc, Method method) { ResponseWrapper responseWrapper = (ResponseWrapper)ConverterUtils.getAnnotation( ResponseWrapper.class, method); if (responseWrapper != null) { ResponseWrapperAnnot rwAnnot = ResponseWrapperAnnot.createResponseWrapperAnnotImpl(); rwAnnot.setClassName(responseWrapper.className()); rwAnnot.setLocalName(responseWrapper.localName()); rwAnnot.setTargetNamespace(responseWrapper.targetNamespace()); try { rwAnnot.setPartName(responseWrapper.partName()); } catch (NoSuchMethodError ex) { // Ignore: we are running on Java 1.6 and the JAX-WS 2.2 libs have not been endorsed } mdc.setResponseWrapperAnnot(rwAnnot); } }