Package org.fabric3.api

Examples of org.fabric3.api.SecuritySubject


    @POST
    @Path("/message")
    public Response create(Message message) {
        System.out.println("Saving message");
        SecuritySubject subject = context.getCurrentSubject();
        message.setCreator(subject.getUsername());
        session.save(message);
        return Response.created(URI.create(message.getId().toString())).build();
    }
View Full Code Here


    protected Pipeline pipeline;

    public void run() {
        int result = counter % 3;
        if (result == 0) {
            pipeline.process(new PipelineMessage("Message " + counter));
        } else if (result == 1) {
            registry.handle(new StringMessage("Test " + counter));
        } else {
            registry.handle(new IntMessage(counter));
        }
View Full Code Here

        if (result == 0) {
            pipeline.process(new PipelineMessage("Message " + counter));
        } else if (result == 1) {
            registry.handle(new StringMessage("Test " + counter));
        } else {
            registry.handle(new IntMessage(counter));
        }
        counter++;
    }
View Full Code Here

    public void run() {
        int result = counter % 3;
        if (result == 0) {
            pipeline.process(new PipelineMessage("Message " + counter));
        } else if (result == 1) {
            registry.handle(new StringMessage("Test " + counter));
        } else {
            registry.handle(new IntMessage(counter));
        }
        counter++;
    }
View Full Code Here

    public static void main(String[] args) throws Exception {
        URL url = new URL("http://localhost:8181/calculator?wsdl");
        QName name = new QName("http://calculator.ws.samples.fabric3.org/", "CalculatorServiceService");
        CalculatorServiceService service = new CalculatorServiceService(url, name);
        CalculatorService calculator = service.getCalculatorServicePort();
        System.out.println("1 + 2 = " + calculator.add(1, 2));
    }
View Full Code Here

public class WsCalcClient {

    public static void main(String[] args) throws Exception {
        URL url = new URL("http://localhost:8181/calculator?wsdl");
        QName name = new QName("http://calculator.ws.samples.fabric3.org/", "CalculatorServiceService");
        CalculatorServiceService service = new CalculatorServiceService(url, name);
        CalculatorService calculator = service.getCalculatorServicePort();
        System.out.println("1 + 2 = " + calculator.add(1, 2));
    }
View Full Code Here

TOP

Related Classes of org.fabric3.api.SecuritySubject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.