Package org.jboss.errai.bus.client

Examples of org.jboss.errai.bus.client.CommandMessage


        for (int i = 0; i < pkg.length; i++) {
            Map<String, Object> parts = decodeToMap(pkg[i]);
            parts.remove(MessageParts.SessionID.name());

            CommandMessage msg = CommandMessage.create().setParts(parts);
            msg.setResource("Session", session);

            if (parts.containsKey("__MarshalledTypes")) {
                TypeDemarshallHelper.demarshallAll((String) parts.get("__MarshalledTypes"), msg);
            }
View Full Code Here


                            }
                        }

                        handler.doLogin(credentials);

                        CommandMessage challenge = CommandMessage.create()
                                .toSubject("AuthorizationService")
                                .command(SecurityCommands.AuthRequest)
                                .set(SecurityParts.ReplyTo, SUBJECT);

                        for (int i = 0; i < credentialNames.length; i++) {
                            switch (CredentialTypes.valueOf(credentialNames[i])) {
                                case Name:
                                    challenge.set(CredentialTypes.Name, credentials[i].getValue());
                                    break;
                                case Password:
                                    challenge.set(CredentialTypes.Password, credentials[i].getValue());
                                    break;
                            }
                        }

                        challenge.sendNowWith(ErraiBus.get());
                       
                        break;

                    case SecurityResponse:
                        String name = msg.get(String.class, SecurityParts.Name);
View Full Code Here

TOP

Related Classes of org.jboss.errai.bus.client.CommandMessage

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.