private String getImplementorClassName() { for (WebService service : wsAnnotations) { if (!StringUtils.isEmpty(service.endpointInterface())) { return service.endpointInterface(); } } return null; }
if (ws != null && !StringUtils.isEmpty(ws.endpointInterface())) { String seiClassName = ws.endpointInterface().trim(); Class<?> seiClass = null; try {
String epi = webService.endpointInterface(); if (epi.length() > 0) { try {
&& (!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);
private String getImplementorClassName() { for (WebService service : wsAnnotations) { if (!StringUtils.isEmpty(service.endpointInterface())) { return service.endpointInterface(); } } return null; }
/** * 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()))); }
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; }
/** * 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()))); }
/** * 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()))); }
/** * 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; }
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); } }
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); } }
/** * 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; }
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); } }
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); } }
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; }
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; }
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); } }
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; }
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; }