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