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

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

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

WebService.endpointInterface介绍

暂无

代码示例

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

private String getImplementorClassName() {
  for (WebService service : wsAnnotations) {
    if (!StringUtils.isEmpty(service.endpointInterface())) {
      return service.endpointInterface();
    }
  }
  return null;
}

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

if (ws != null && !StringUtils.isEmpty(ws.endpointInterface())) {
  String seiClassName = ws.endpointInterface().trim();
  Class<?> seiClass = null;
  try {

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

String epi = webService.endpointInterface();
if (epi.length() > 0) {
  try {

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

&& (!StringUtils.isEmpty(seiAnnotation.portName())
|| !StringUtils.isEmpty(seiAnnotation.serviceName())
|| !StringUtils.isEmpty(seiAnnotation.endpointInterface()))) {
String expString = BUNDLE.getString("ILLEGAL_ATTRIBUTE_IN_SEI_ANNOTATION_EXC");
throw new WebServiceException(expString);

代码示例来源:origin: apache/cxf

private String getImplementorClassName() {
  for (WebService service : wsAnnotations) {
    if (!StringUtils.isEmpty(service.endpointInterface())) {
      return service.endpointInterface();
    }
  }
  return null;
}

代码示例来源:origin: stoicflame/enunciate

/**
 * A quick check to see if a declaration is an endpoint interface.
 */
public boolean isEndpointInterface(TypeElement declaration) {
 WebService ws = declaration.getAnnotation(WebService.class);
 return declaration.getAnnotation(XmlTransient.class) == null
  && ws != null
  && ((declaration.getKind() == ElementKind.INTERFACE)
  //if this is a class declaration, then it has an "implicit" endpoint interface if it doesn't reference another.
  || (ws.endpointInterface() == null) || ("".equals(ws.endpointInterface())));
}

代码示例来源:origin: org.jboss.ejb3/jboss-ejb3-core

private static String getEndpointInterface(Container container)
{
 WebService ws = (javax.jws.WebService) ((EJBContainer) container).resolveAnnotation(javax.jws.WebService.class);
 if (ws != null)
 {
   return ws.endpointInterface();
 }
 return null;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

/**
 * A quick check to see if a declaration is an endpoint interface.
 */
public boolean isEndpointInterface(TypeDeclaration declaration) {
 WebService ws = declaration.getAnnotation(WebService.class);
 return (declaration.getAnnotation(XmlTransient.class) == null)
  && (ws != null) && ((declaration instanceof InterfaceDeclaration)
  //if this is a class declaration, then it has an implicit endpoint interface if it doesn't reference another.
  || (ws.endpointInterface() == null) || ("".equals(ws.endpointInterface())));
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

/**
 * A quick check to see if a declaration is an endpoint interface.
 */
public boolean isEndpointInterface(TypeDeclaration declaration) {
 WebService ws = declaration.getAnnotation(WebService.class);
 return (declaration.getAnnotation(XmlTransient.class) == null)
  &&  (ws != null) && ((declaration instanceof InterfaceDeclaration)
  //if this is a class declaration, then it has an implicit endpoint interface if it doesn't reference another.
  || (ws.endpointInterface() == null) || ("".equals(ws.endpointInterface())));
}

代码示例来源:origin: stoicflame/enunciate

/**
 * A quick check to see if a declaration is an endpoint implementation.
 */
protected boolean isEndpointImplementation(TypeElement declaration) {
 if (declaration.getKind() == ElementKind.CLASS && !declaration.getQualifiedName().equals(getQualifiedName())) {
  WebService webServiceInfo = declaration.getAnnotation(WebService.class);
  return webServiceInfo != null && getQualifiedName().toString().equals(webServiceInfo.endpointInterface());
 }
 return false;
}

代码示例来源: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.codehaus.enunciate/enunciate-core

/**
 * A quick check to see if a declaration is an endpoint implementation.
 */
protected boolean isEndpointImplementation(TypeDeclaration declaration) {
 if (declaration instanceof ClassDeclaration && !declaration.getQualifiedName().equals(getQualifiedName())) {
  WebService webServiceInfo = declaration.getAnnotation(WebService.class);
  return webServiceInfo != null && getQualifiedName().equals(webServiceInfo.endpointInterface());
 }
 return false;
}

代码示例来源:origin: javaee/metro-jax-ws

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: javaee/metro-jax-ws

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 String getAnnoWebServiceEndpointInterface() {
  // TODO: Validation: Not allowed on WebServiceProvider
  if (webService_EndpointInterface == null) {
    if (!isProviderBased() && getAnnoWebService() != null
        && !DescriptionUtils.isEmpty(getAnnoWebService().endpointInterface())) {
      webService_EndpointInterface = getAnnoWebService().endpointInterface();
    } else {
      // This element is not valid on a WebServiceProvider annotation
      webService_EndpointInterface = "";
    }
  }
  return webService_EndpointInterface;
}

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

public String getAnnoWebServiceEndpointInterface() {
  // TODO: Validation: Not allowed on WebServiceProvider
  if (webService_EndpointInterface == null) {
    if (!isProviderBased() && getAnnoWebService() != null
        && !DescriptionUtils.isEmpty(getAnnoWebService().endpointInterface())) {
      webService_EndpointInterface = getAnnoWebService().endpointInterface();
    } else {
      // This element is not valid on a WebServiceProvider annotation
      webService_EndpointInterface = "";
    }
  }
  return webService_EndpointInterface;
}

代码示例来源:origin: org.jboss.eap/wildfly-webservices-server-integration

void verifyJwsEndpoint(final Class<?> endpointClass, final WebService webServiceAnnotation,
    final ClassLoader moduleClassLoader, final DeploymentReflectionIndex deploymentReflectionIndex) throws DeploymentUnitProcessingException {
  final String endpointInterfaceClassName = webServiceAnnotation.endpointInterface();
  try {
    final Class<?> endpointInterfaceClass = endpointInterfaceClassName.length() > 0 ? moduleClassLoader
        .loadClass(endpointInterfaceClassName) : null;
    final JwsWebServiceEndpointVerifier wsEndpointVerifier = new JwsWebServiceEndpointVerifier(
        endpointClass, endpointInterfaceClass, deploymentReflectionIndex);
    wsEndpointVerifier.verify();
    if (wsEndpointVerifier.failed()) {
      wsEndpointVerifier.logFailures();
      throw WSLogger.ROOT_LOGGER.jwsWebServiceClassVerificationFailed(endpointClass);
    }
  } catch (ClassNotFoundException e) {
    throw WSLogger.ROOT_LOGGER.declaredEndpointInterfaceClassNotFound(endpointInterfaceClassName, endpointClass);
  }
}

代码示例来源: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;
}

相关文章