Examples of SessionRequestMessage


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

    public void testBindingsDontStickAroundAfterRequests() throws Exception {
        final RexsterClient client = getClient();

        //create a session
        for (Map.Entry<String, Map<String,String>> entry : getAvailableGraphs(client).entrySet()) {
            final SessionRequestMessage outMsg = new SessionRequestMessage();
            outMsg.setRequestAsUUID(UUID.randomUUID());
            outMsg.metaSetGraphName(entry.getKey());

            RexProMessage inMsg = client.execute(outMsg);
            Assert.assertNotNull(inMsg.Session);
            Assert.assertTrue(inMsg instanceof SessionResponseMessage);
View Full Code Here

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

        final RexsterClient client = getClient();
        RexProMessage inMsg;

        for (Map.Entry<String, Map<String,String>> entry : getAvailableGraphs(client).entrySet()) {
            //create a session
            final SessionRequestMessage outMsg = new SessionRequestMessage();
            outMsg.setRequestAsUUID(UUID.randomUUID());

            inMsg = client.execute(outMsg);
            Assert.assertNotNull(inMsg.Session);
            Assert.assertTrue(inMsg instanceof SessionResponseMessage);
View Full Code Here

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

    public void testGraphObjMetaOnSessionWithExistingGraphObjFails() throws Exception {
        final RexsterClient client = getClient();

        for (Map.Entry<String, Map<String,String>> entry : getAvailableGraphs(client).entrySet()) {
            //create a session
            final SessionRequestMessage outMsg = new SessionRequestMessage();
            outMsg.setRequestAsUUID(UUID.randomUUID());
            outMsg.metaSetGraphName(entry.getKey());

            RexProMessage inMsg = client.execute(outMsg);
            Assert.assertNotNull(inMsg.Session);
            Assert.assertTrue(inMsg instanceof SessionResponseMessage);
View Full Code Here

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

    public void testQueryIsolation() throws Exception {
        final RexsterClient client = getClient();
        RexProMessage inMsg;

        //create a session
        final SessionRequestMessage outMsg = new SessionRequestMessage();
        outMsg.setRequestAsUUID(UUID.randomUUID());

        inMsg = client.execute(outMsg);
        Assert.assertNotNull(inMsg.Session);
        Assert.assertTrue(inMsg instanceof SessionResponseMessage);
View Full Code Here

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

    public void testDisabledQueryIsolation() throws Exception {
        final RexsterClient client = getClient();
        RexProMessage inMsg;

        //create a session
        final SessionRequestMessage outMsg = new SessionRequestMessage();
        outMsg.setRequestAsUUID(UUID.randomUUID());

        inMsg = client.execute(outMsg);
        Assert.assertNotNull(inMsg.Session);
        Assert.assertTrue(inMsg instanceof SessionResponseMessage);
View Full Code Here

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

    public void testDisabledQueryIsolationInSession() throws Exception {
        final RexsterClient client = getClient();
        RexProMessage inMsg;

        //create a session
        final SessionRequestMessage outMsg = new SessionRequestMessage();
        outMsg.setRequestAsUUID(UUID.randomUUID());

        inMsg = client.execute(outMsg);
        Assert.assertNotNull(inMsg.Session);
        Assert.assertTrue(inMsg instanceof SessionResponseMessage);
View Full Code Here

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

    public void testTransactionMetaFlagWithoutSession() throws Exception {
        final RexsterClient client = getClient();
        RexProMessage inMsg;

        //create a session
        final SessionRequestMessage outMsg = new SessionRequestMessage();
        outMsg.setRequestAsUUID(UUID.randomUUID());

        inMsg = client.execute(outMsg);
        Assert.assertNotNull(inMsg.Session);
        Assert.assertTrue(inMsg instanceof SessionResponseMessage);
View Full Code Here

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

        final RexProRequest request = ctx.getMessage();
        request.process();

        final RexProMessage message = request.getRequestMessage();
        if (message instanceof SessionRequestMessage && !message.hasSession()) {
            final SessionRequestMessage specificMessage = (SessionRequestMessage) message;

            if (!specificMessage.metaGetKillSession()) {
                final String username = specificMessage.Username;
                final String password = specificMessage.Password;
                if (!authenticate(username, password)) {
                    // there is no session to this message...that's a problem
                    final ErrorResponseMessage errorMessage = new ErrorResponseMessage();
View Full Code Here

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

public class SessionRequestMessageTemplate extends RexProMessageTemplate<SessionRequestMessage> {

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

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

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

    protected SessionRequestMessage instantiateMessage() {
        return new SessionRequestMessage();
    }
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.