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

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

本文整理了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

  1. private String getImplementorClassName() {
  2. for (WebService service : wsAnnotations) {
  3. if (!StringUtils.isEmpty(service.endpointInterface())) {
  4. return service.endpointInterface();
  5. }
  6. }
  7. return null;
  8. }

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

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

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

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

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

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

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

  1. private String getImplementorClassName() {
  2. for (WebService service : wsAnnotations) {
  3. if (!StringUtils.isEmpty(service.endpointInterface())) {
  4. return service.endpointInterface();
  5. }
  6. }
  7. return null;
  8. }

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

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

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

  1. private static String getEndpointInterface(Container container)
  2. {
  3. WebService ws = (javax.jws.WebService) ((EJBContainer) container).resolveAnnotation(javax.jws.WebService.class);
  4. if (ws != null)
  5. {
  6. return ws.endpointInterface();
  7. }
  8. return null;
  9. }

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

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

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

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

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

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

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

  1. /**
  2. * A quick check to see if a declaration is an endpoint implementation.
  3. */
  4. protected boolean isEndpointImplementation(TypeDeclaration declaration) {
  5. if (declaration instanceof ClassDeclaration && !declaration.getQualifiedName().equals(getQualifiedName())) {
  6. WebService webServiceInfo = declaration.getAnnotation(WebService.class);
  7. return webServiceInfo != null && getQualifiedName().equals(webServiceInfo.endpointInterface());
  8. }
  9. return false;
  10. }

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

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

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

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

  1. public String getAnnoWebServiceEndpointInterface() {
  2. // TODO: Validation: Not allowed on WebServiceProvider
  3. if (webService_EndpointInterface == null) {
  4. if (!isProviderBased() && getAnnoWebService() != null
  5. && !DescriptionUtils.isEmpty(getAnnoWebService().endpointInterface())) {
  6. webService_EndpointInterface = getAnnoWebService().endpointInterface();
  7. } else {
  8. // This element is not valid on a WebServiceProvider annotation
  9. webService_EndpointInterface = "";
  10. }
  11. }
  12. return webService_EndpointInterface;
  13. }

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

  1. void verifyJwsEndpoint(final Class<?> endpointClass, final WebService webServiceAnnotation,
  2. final ClassLoader moduleClassLoader, final DeploymentReflectionIndex deploymentReflectionIndex) throws DeploymentUnitProcessingException {
  3. final String endpointInterfaceClassName = webServiceAnnotation.endpointInterface();
  4. try {
  5. final Class<?> endpointInterfaceClass = endpointInterfaceClassName.length() > 0 ? moduleClassLoader
  6. .loadClass(endpointInterfaceClassName) : null;
  7. final JwsWebServiceEndpointVerifier wsEndpointVerifier = new JwsWebServiceEndpointVerifier(
  8. endpointClass, endpointInterfaceClass, deploymentReflectionIndex);
  9. wsEndpointVerifier.verify();
  10. if (wsEndpointVerifier.failed()) {
  11. wsEndpointVerifier.logFailures();
  12. throw WSLogger.ROOT_LOGGER.jwsWebServiceClassVerificationFailed(endpointClass);
  13. }
  14. } catch (ClassNotFoundException e) {
  15. throw WSLogger.ROOT_LOGGER.declaredEndpointInterfaceClassNotFound(endpointInterfaceClassName, endpointClass);
  16. }
  17. }

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

相关文章