Examples of RexProSession


Examples of com.tinkerpop.rexster.protocol.session.RexProSession

            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);

                //configure the graph object
                if (message.metaGetGraphName() != null) {
                    try {
                        session.setGraphObj(message.metaGetGraphName(), message.metaGetGraphObjName());
                    } catch (RexProException ex) {
                        //graph config problem
                        request.writeResponseMessage(
                                MessageUtil.createErrorResponse(
                                        message.Request, RexProMessage.EMPTY_SESSION_AS_BYTES,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.