All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkiverse.cxf.metrics.server.it.HelloServiceImpl Maven / Gradle / Ivy

The newest version!
package io.quarkiverse.cxf.metrics.server.it;

import jakarta.jws.WebMethod;
import jakarta.jws.WebParam;
import jakarta.jws.WebService;

/**
 * The simplest Hello service implementation.
 */
@WebService(serviceName = "HelloService")
public class HelloServiceImpl implements HelloService {

    @WebMethod
    @Override
    public String hello(@WebParam(name = "text") String text) {
        try {
            /* We have to slow down a bit so that the native test is able to see some elapsedTime */
            Thread.sleep(20);
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        }
        return "Hello " + text + "!";
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy