@Override protected void publishEndpoint(Endpoint endpoint, WebService annotation) { endpoint.publish(calculateEndpointAddress(endpoint, annotation.serviceName())); }
@Override protected void publishEndpoint(Endpoint endpoint, WebService annotation) { endpoint.publish(buildHttpContext(endpoint, annotation.serviceName())); }
@Override protected void publishEndpoint(Endpoint endpoint, WebService annotation) { endpoint.publish(buildHttpContext(endpoint, annotation.serviceName())); }
@Override protected void publishEndpoint(Endpoint endpoint, WebService annotation) { endpoint.publish(calculateEndpointAddress(endpoint, annotation.serviceName())); }
String sn = ann.serviceName(); if (StringUtils.hasText(sn)) { setServiceName(sn);
String sn = ann.serviceName(); if (StringUtils.hasText(sn)) { setServiceName(sn);
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; }
serviceName = wsAnnotations.get(x).serviceName();
|| !StringUtils.isEmpty(seiAnnotation.serviceName()) || !StringUtils.isEmpty(seiAnnotation.endpointInterface()))) { String expString = BUNDLE.getString("ILLEGAL_ATTRIBUTE_IN_SEI_ANNOTATION_EXC");
public String serviceName() { if (ws == null) { return null; } return ws.serviceName() != null && ws.serviceName().isEmpty() ? null : ws.serviceName(); }
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; }
private QName getServiceName(WebService wsAnnotation) { QName serviceQName = null; if (wsAnnotation != null) { serviceQName = new QName(wsAnnotation.targetNamespace(), wsAnnotation.serviceName()); } return serviceQName; }
@Override protected void publishEndpoint(Endpoint endpoint, WebService annotation) { endpoint.publish(buildHttpContext(endpoint, annotation.serviceName())); }
@Override protected void publishEndpoint(Endpoint endpoint, WebService annotation) { endpoint.publish(calculateEndpointAddress(endpoint, annotation.serviceName())); }
@Override protected void publishEndpoint(Endpoint endpoint, WebService annotation) { endpoint.publish(buildHttpContext(endpoint, annotation.serviceName())); }
@Override protected void publishEndpoint(Endpoint endpoint, WebService annotation) { endpoint.publish(calculateEndpointAddress(endpoint, annotation.serviceName())); }
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 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; }