Package org.switchyard

Examples of org.switchyard.ExchangeSecurity


    private Exchange exchange;

    @Override
    public WorkAck doWork(Work work) {
        String cmd = work.getCommand();
        ExchangeSecurity es = exchange.getSecurity();
        String msg = String.format(MSG, cmd, es.getCallerPrincipal(), es.isCallerInRole("friend"), es.isCallerInRole("enemy"));
        LOGGER.info(msg);
        return new WorkAck().setCommand(cmd).setReceived(true);
    }
View Full Code Here


    private Exchange exchange;

    @Override
    public WorkAck doWork(Work work) {
        String cmd = work.getCommand();
        ExchangeSecurity es = exchange.getSecurity();
        String msg = String.format(MSG, cmd, es.getCallerPrincipal(), es.isCallerInRole("friend"), es.isCallerInRole("enemy"));
        LOGGER.info(msg);
        return new WorkAck().setCommand(cmd).setReceived(true);
    }
View Full Code Here

    @Inject
    private Exchange exchange;

    @Override
    public String process(String in) {
        ExchangeSecurity es = exchange.getSecurity();
        String msg = String.format(MSG, in, es.getCallerPrincipal(), es.isCallerInRole("friend"), es.isCallerInRole("enemy"));
        LOGGER.info(msg);
        return "Processed by BackEndService: " + in;
    }
View Full Code Here

    private TestEJBBeanLocal testEjb;

    @Override
    public WorkAck doWork(Work work) {
        String cmd = work.getCommand();
        ExchangeSecurity es = exchange.getSecurity();
        String msg1 = String.format(MSG_1, cmd, es.getCallerPrincipal(), es.isCallerInRole("friend"), es.isCallerInRole("enemy"));
        LOGGER.info(msg1);
        // BackEndService invocation
        String back = backEndService.process(cmd);
        String msg2 = String.format(MSG_2, back);
        LOGGER.info(msg2);
View Full Code Here

    private Exchange exchange;

    @Override
    public WorkAck doWork(Work work) {
        String cmd = work.getCommand();
        ExchangeSecurity es = exchange.getSecurity();
        String msg = String.format(MSG, cmd, es.getCallerPrincipal(), es.isCallerInRole("friend"), es.isCallerInRole("enemy"));
        LOGGER.info(msg);
        return new WorkAck().setCommand(cmd).setReceived(true);
    }
View Full Code Here

        _type = type;
    }

    @Override
    public final void greet(final String name) {
        ExchangeSecurity es = exchange.getSecurity();
        String msg = String.format(MSG, _type, name, es.getCallerPrincipal(), es.isCallerInRole("friend"), es.isCallerInRole("enemy"));
        _logger.info(msg);
    }
View Full Code Here

TOP

Related Classes of org.switchyard.ExchangeSecurity

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.