javax.jws.WebService.serviceName()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(6.1k)|赞(0)|评价(0)|浏览(184)

本文整理了Java中javax.jws.WebService.serviceName()方法的一些代码示例,展示了WebService.serviceName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebService.serviceName()方法的具体详情如下:
包路径:javax.jws.WebService
类名称:WebService
方法名:serviceName

WebService.serviceName介绍

暂无

代码示例

代码示例来源:origin: spring-projects/spring-framework

  1. @Override
  2. protected void publishEndpoint(Endpoint endpoint, WebService annotation) {
  3. endpoint.publish(calculateEndpointAddress(endpoint, annotation.serviceName()));
  4. }

代码示例来源:origin: spring-projects/spring-framework

  1. @Override
  2. protected void publishEndpoint(Endpoint endpoint, WebService annotation) {
  3. endpoint.publish(buildHttpContext(endpoint, annotation.serviceName()));
  4. }

代码示例来源:origin: org.springframework/spring-web

  1. @Override
  2. protected void publishEndpoint(Endpoint endpoint, WebService annotation) {
  3. endpoint.publish(buildHttpContext(endpoint, annotation.serviceName()));
  4. }

代码示例来源:origin: org.springframework/spring-web

  1. @Override
  2. protected void publishEndpoint(Endpoint endpoint, WebService annotation) {
  3. endpoint.publish(calculateEndpointAddress(endpoint, annotation.serviceName()));
  4. }

代码示例来源:origin: spring-projects/spring-framework

  1. String sn = ann.serviceName();
  2. if (StringUtils.hasText(sn)) {
  3. setServiceName(sn);

代码示例来源:origin: org.springframework/spring-web

  1. String sn = ann.serviceName();
  2. if (StringUtils.hasText(sn)) {
  3. setServiceName(sn);

代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws

  1. public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
  2. Class<?> clazz = ClassHelper.getRealClass(getServletBus(), bean);
  3. if (clazz.isAnnotationPresent(WebService.class)) {
  4. WebService ws = clazz.getAnnotation(WebService.class);
  5. String url = urlPrefix + ws.serviceName();
  6. Message message = new Message("SELECTED_SERVICE", LOG, beanName,
  7. clazz.getName(),
  8. url);
  9. LOG.info(message.toString());
  10. createAndPublishEndpoint(url, bean);
  11. registerHandler(url, new ServletAdapter(shadowCxfServlet));
  12. } else {
  13. Message message = new Message("REJECTED_NO_ANNOTATION", LOG, beanName,
  14. clazz.getName());
  15. LOG.fine(message.toString());
  16. }
  17. return bean;
  18. }

代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws

  1. serviceName = wsAnnotations.get(x).serviceName();

代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws

  1. || !StringUtils.isEmpty(seiAnnotation.serviceName())
  2. || !StringUtils.isEmpty(seiAnnotation.endpointInterface()))) {
  3. String expString = BUNDLE.getString("ILLEGAL_ATTRIBUTE_IN_SEI_ANNOTATION_EXC");

代码示例来源:origin: kumuluz/kumuluzee

  1. public String serviceName() {
  2. if (ws == null) {
  3. return null;
  4. }
  5. return ws.serviceName() != null && ws.serviceName().isEmpty() ? null : ws.serviceName();
  6. }

代码示例来源:origin: org.ow2.petals/petals-kernel

  1. public static final String getWebServiceName(Class<?> wsClass) {
  2. String serviceName = null;
  3. WebService anno = wsClass.getAnnotation(WebService.class);
  4. if ((anno.serviceName() == null) || (anno.serviceName().trim().length() == 0)) {
  5. serviceName = wsClass.getSimpleName();
  6. } else {
  7. serviceName = anno.serviceName();
  8. }
  9. return serviceName;
  10. }

代码示例来源:origin: org.objectweb.celtix/celtix-rt

  1. private QName getServiceName(WebService wsAnnotation) {
  2. QName serviceQName = null;
  3. if (wsAnnotation != null) {
  4. serviceQName = new QName(wsAnnotation.targetNamespace(), wsAnnotation.serviceName());
  5. }
  6. return serviceQName;
  7. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-web

  1. @Override
  2. protected void publishEndpoint(Endpoint endpoint, WebService annotation) {
  3. endpoint.publish(buildHttpContext(endpoint, annotation.serviceName()));
  4. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-web

  1. @Override
  2. protected void publishEndpoint(Endpoint endpoint, WebService annotation) {
  3. endpoint.publish(calculateEndpointAddress(endpoint, annotation.serviceName()));
  4. }

代码示例来源:origin: apache/servicemix-bundles

  1. @Override
  2. protected void publishEndpoint(Endpoint endpoint, WebService annotation) {
  3. endpoint.publish(buildHttpContext(endpoint, annotation.serviceName()));
  4. }

代码示例来源:origin: apache/servicemix-bundles

  1. @Override
  2. protected void publishEndpoint(Endpoint endpoint, WebService annotation) {
  3. endpoint.publish(calculateEndpointAddress(endpoint, annotation.serviceName()));
  4. }

代码示例来源:origin: com.sun.xml.ws/jaxws-tools

  1. protected void verifySeiAnnotations(WebService webService, TypeElement d) {
  2. if (webService.endpointInterface().length() > 0) {
  3. builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTERFACE_ON_INTERFACE(
  4. d.getQualifiedName(), webService.endpointInterface()), d);
  5. }
  6. if (webService.serviceName().length() > 0) {
  7. builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT(
  8. "serviceName", d.getQualifiedName()), d);
  9. }
  10. if (webService.portName().length() > 0) {
  11. builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT(
  12. "portName", d.getQualifiedName()), d);
  13. }
  14. }

代码示例来源:origin: org.glassfish.metro/webservices-tools

  1. protected void verifySeiAnnotations(WebService webService, TypeElement d) {
  2. if (webService.endpointInterface().length() > 0) {
  3. builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTERFACE_ON_INTERFACE(
  4. d.getQualifiedName(), webService.endpointInterface()), d);
  5. }
  6. if (webService.serviceName().length() > 0) {
  7. builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT(
  8. "serviceName", d.getQualifiedName()), d);
  9. }
  10. if (webService.portName().length() > 0) {
  11. builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT(
  12. "portName", d.getQualifiedName()), d);
  13. }
  14. }

代码示例来源:origin: org.apache.axis2/axis2-metadata

  1. public static WebServiceAnnot createFromAnnotation(Annotation annotation) {
  2. WebServiceAnnot returnAnnot = null;
  3. if (annotation != null && annotation instanceof javax.jws.WebService) {
  4. javax.jws.WebService ws = (javax.jws.WebService) annotation;
  5. return new WebServiceAnnot(ws.name(),
  6. ws.targetNamespace(),
  7. ws.serviceName(),
  8. ws.wsdlLocation(),
  9. ws.endpointInterface(),
  10. ws.portName());
  11. }
  12. return returnAnnot;
  13. }

代码示例来源:origin: apache/axis2-java

  1. public static WebServiceAnnot createFromAnnotation(Annotation annotation) {
  2. WebServiceAnnot returnAnnot = null;
  3. if (annotation != null && annotation instanceof javax.jws.WebService) {
  4. javax.jws.WebService ws = (javax.jws.WebService) annotation;
  5. return new WebServiceAnnot(ws.name(),
  6. ws.targetNamespace(),
  7. ws.serviceName(),
  8. ws.wsdlLocation(),
  9. ws.endpointInterface(),
  10. ws.portName());
  11. }
  12. return returnAnnot;
  13. }

相关文章