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

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

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

WebService.serviceName介绍

暂无

代码示例

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

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

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

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

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

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

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

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

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

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

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

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

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

public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
  Class<?> clazz = ClassHelper.getRealClass(getServletBus(), bean);
  if (clazz.isAnnotationPresent(WebService.class)) {
    WebService ws = clazz.getAnnotation(WebService.class);
    String url = urlPrefix + ws.serviceName();
    Message message = new Message("SELECTED_SERVICE", LOG, beanName,
                   clazz.getName(),
                   url);
    LOG.info(message.toString());
    createAndPublishEndpoint(url, bean);
    registerHandler(url, new ServletAdapter(shadowCxfServlet));
  } else {
    Message message = new Message("REJECTED_NO_ANNOTATION", LOG, beanName,
                     clazz.getName());
    LOG.fine(message.toString());
  }
  return bean;
}

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

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

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

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

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

public String serviceName() {
  if (ws == null) {
    return null;
  }
  return ws.serviceName() != null && ws.serviceName().isEmpty() ? null : ws.serviceName();
}

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

public static final String getWebServiceName(Class<?> wsClass) {
  String serviceName = null;
  WebService anno = wsClass.getAnnotation(WebService.class);
  if ((anno.serviceName() == null) || (anno.serviceName().trim().length() == 0)) {
    serviceName = wsClass.getSimpleName();
  } else {
    serviceName = anno.serviceName();
  }
  return serviceName;
}

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

private QName getServiceName(WebService wsAnnotation) {
  QName serviceQName = null;
  if (wsAnnotation != null) {
    serviceQName = new QName(wsAnnotation.targetNamespace(), wsAnnotation.serviceName());
  }
  return serviceQName;
}

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

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

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

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

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

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

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

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

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

protected void verifySeiAnnotations(WebService webService, TypeElement d) {
  if (webService.endpointInterface().length() > 0) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTERFACE_ON_INTERFACE(
        d.getQualifiedName(), webService.endpointInterface()), d);
  }
  if (webService.serviceName().length() > 0) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT(
        "serviceName", d.getQualifiedName()), d);
  }
  if (webService.portName().length() > 0) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT(
        "portName", d.getQualifiedName()), d);
  }
}

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

protected void verifySeiAnnotations(WebService webService, TypeElement d) {
  if (webService.endpointInterface().length() > 0) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTERFACE_ON_INTERFACE(
        d.getQualifiedName(), webService.endpointInterface()), d);
  }
  if (webService.serviceName().length() > 0) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT(
        "serviceName", d.getQualifiedName()), d);
  }
  if (webService.portName().length() > 0) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT(
        "portName", d.getQualifiedName()), d);
  }
}

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

public static WebServiceAnnot createFromAnnotation(Annotation annotation) {
  WebServiceAnnot returnAnnot = null;
  if (annotation != null && annotation instanceof javax.jws.WebService) {
    javax.jws.WebService ws = (javax.jws.WebService) annotation;
    return new WebServiceAnnot(ws.name(),
                  ws.targetNamespace(),
                  ws.serviceName(),
                  ws.wsdlLocation(),
                  ws.endpointInterface(),
                  ws.portName());
                 
  }
  return returnAnnot;
}

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

public static WebServiceAnnot createFromAnnotation(Annotation annotation) {
  WebServiceAnnot returnAnnot = null;
  if (annotation != null && annotation instanceof javax.jws.WebService) {
    javax.jws.WebService ws = (javax.jws.WebService) annotation;
    return new WebServiceAnnot(ws.name(),
                  ws.targetNamespace(),
                  ws.serviceName(),
                  ws.wsdlLocation(),
                  ws.endpointInterface(),
                  ws.portName());
                 
  }
  return returnAnnot;
}

相关文章