private static String getStringAttributeFromWebServiceProviderAnnotation ( AnnotationInfo annotationInfo , String attribute , String defaultForServiceProvider ) { //the two values can not be found in webserviceProvider annotation so just return the default value to save time if ( attribute . equals ( JaxWsConstants . ENDPOINTINTERFACE_ATTRIBUTE ) || attribute . equals ( JaxWsConstants . NAME_ATTRIBUTE ) ) { return defaultForServiceProvider ; } AnnotationValue attrValue = annotationInfo . getValue ( attribute ) ; String attrFromSP = attrValue == null ? null : attrValue . getStringValue ( ) . trim ( ) ; return StringUtils . isEmpty ( attrFromSP ) ? defaultForServiceProvider : attrFromSP ; }
Return the attribute value of WebServiceProvider annotation