Package com.tinkerpop.rexster.protocol.msg

Examples of com.tinkerpop.rexster.protocol.msg.SessionResponseMessage


public class SessionResponseMessageTemplate extends RexProMessageTemplate<SessionResponseMessage> {

    @Override
    protected SessionResponseMessage instantiateMessage() {
        return new SessionResponseMessage();
    }
View Full Code Here


    protected int messageArraySize() {
        return super.messageArraySize() + 1;
    }

    protected SessionResponseMessage instantiateMessage() {
        return new SessionResponseMessage();
    }
View Full Code Here

        }
        pk.writeArrayEnd();
    }

    protected SessionResponseMessage readMessageArray(final Unpacker un, final SessionResponseMessage msg) throws IOException {
        SessionResponseMessage message = super.readMessageArray(un, msg);
        if (!un.trySkipNil()){
            message.Languages = new String[un.readArrayBegin()];
            for (int i=0; i<message.Languages.length; i++) {
                message.Languages[i] = un.readString();
            }
View Full Code Here

            }

            final RexProMessage rcvMessage = sendRequest(sessionRequestMessageToSend, 3);

            if (rcvMessage != null && rcvMessage instanceof SessionResponseMessage) {
                final SessionResponseMessage sessionResponseMessage = (SessionResponseMessage) rcvMessage;
                this.availableLanguages = new ArrayList<String>();
                for (String lang : sessionResponseMessage.Languages) {
                    this.availableLanguages.add(lang);
                }
View Full Code Here

        } else {
            final EngineController engineController = EngineController.getInstance();
            final List<String> engineLanguages = engineController.getAvailableEngineLanguages();

            final SessionResponseMessage responseMessage = MessageUtil.createNewSession(
                    message.Request, engineLanguages);

            // construct a session with the right channel
            if(!RexProSessions.hasSessionKey(responseMessage.sessionAsUUID().toString())) {
                RexProSession session = RexProSessions.createSession(
                        responseMessage.sessionAsUUID().toString(),
                        this.rexsterApplication
                );

                //set on the request object
                request.setSession(session);
View Full Code Here

TOP

Related Classes of com.tinkerpop.rexster.protocol.msg.SessionResponseMessage

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.