Search in sources :

Example 1 with HelloWorldResponse

use of sdk.ddf.soap.hello.HelloWorldResponse in project ddf by codice.

the class SoapEndpoint method helloWorldOp.

public HelloWorldResponse helloWorldOp(HelloWorld helloWorld) {
    String name = null;
    try {
        Subject subject = SecurityUtils.getSubject();
        name = SubjectUtils.getName(subject);
    } catch (Exception e) {
        LOGGER.debug("Unable to retrieve user from request.", e);
    }
    HelloWorldResponse helloWorldResponse = new HelloWorldResponse();
    helloWorldResponse.setResult("Hello " + name);
    return helloWorldResponse;
}
Also used : Subject(org.apache.shiro.subject.Subject) HelloWorldResponse(sdk.ddf.soap.hello.HelloWorldResponse)

Aggregations

Subject (org.apache.shiro.subject.Subject)1 HelloWorldResponse (sdk.ddf.soap.hello.HelloWorldResponse)1