Examples of ExistsResponse


Examples of org.apache.james.imap.message.response.ExistsResponse

        responder.respond(recentResponse);
    }

    private void exists(Responder responder, MessageManager.MetaData metaData) throws MailboxException {
        final long messageCount = metaData.getMessageCount();
        final ExistsResponse existsResponse = new ExistsResponse(messageCount);
        responder.respond(existsResponse);
    }
View Full Code Here

Examples of org.apache.james.imap.message.response.ExistsResponse

    public boolean isAcceptable(ImapMessage message) {
        return message instanceof ExistsResponse;
    }

    protected void doEncode(ImapMessage acceptableMessage, ImapResponseComposer composer, ImapSession session) throws IOException {
        final ExistsResponse existsResponse = (ExistsResponse) acceptableMessage;
        final long numberOfMessages = existsResponse.getNumberOfMessages();
       
        composer.untagged().message(numberOfMessages).message(EXISTS).end();

    }
View Full Code Here

Examples of org.apache.james.imap.message.response.ExistsResponse

        responder.respond(response);
    }

    private void addExistsResponses(final ImapSession session, final SelectedMailbox selected, final ImapProcessor.Responder responder) {
        final long existsCount = selected.existsCount();
        final ExistsResponse response = new ExistsResponse(existsCount);
        responder.respond(response);
    }
View Full Code Here

Examples of org.apache.james.imap.message.response.ExistsResponse

    }

    private void addExistsResponses(final ImapSession session, final SelectedMailbox selected, final ImapProcessor.Responder responder) {
        final long existsCount = selected.existsCount();
        // TODO: use factory
        final ExistsResponse response = new ExistsResponse(existsCount);
        responder.respond(response);
    }
View Full Code Here

Examples of org.apache.james.imap.message.response.ExistsResponse

        responder.respond(recentResponse);
    }

    private void exists(Responder responder, MessageManager.MetaData metaData) throws MailboxException {
        final long messageCount = metaData.getMessageCount();
        final ExistsResponse existsResponse = new ExistsResponse(messageCount);
        responder.respond(existsResponse);
    }
View Full Code Here

Examples of org.apache.james.imap.message.response.ExistsResponse

    public boolean isAcceptable(ImapMessage message) {
        return message instanceof ExistsResponse;
    }

    protected void doEncode(ImapMessage acceptableMessage, ImapResponseComposer composer, ImapSession session) throws IOException {
        final ExistsResponse existsResponse = (ExistsResponse) acceptableMessage;
        final long numberOfMessages = existsResponse.getNumberOfMessages();
        composer.existsResponse(numberOfMessages);

    }
View Full Code Here

Examples of org.apache.zookeeper.proto.ExistsResponse

                if (path.indexOf('\0') != -1) {
                    throw new KeeperException.BadArgumentsException();
                }
                Stat stat = zks.dataTree.statNode(path, existsRequest
                        .getWatch() ? request.cnxn : null);
                rsp = new ExistsResponse(stat);
                break;
            case OpCode.getData:
                GetDataRequest getDataRequest = new GetDataRequest();
                ZooKeeperServer.byteBuffer2Record(request.request,
                        getDataRequest);
View Full Code Here

Examples of org.apache.zookeeper.proto.ExistsResponse

                if (path.indexOf('\0') != -1) {
                    throw new KeeperException.BadArgumentsException();
                }
                Stat stat = zks.getZKDatabase().statNode(path, existsRequest
                        .getWatch() ? cnxn : null);
                rsp = new ExistsResponse(stat);
                break;
            }
            case OpCode.getData: {
                lastOp = "GETD";
                GetDataRequest getDataRequest = new GetDataRequest();
View Full Code Here

Examples of org.apache.zookeeper.proto.ExistsResponse

                if (path.indexOf('\0') != -1) {
                    throw new KeeperException.BadArgumentsException();
                }
                Stat stat = zks.getZKDatabase().statNode(path, existsRequest
                        .getWatch() ? cnxn : null);
                rsp = new ExistsResponse(stat);
                break;
            }
            case OpCode.getData: {
                lastOp = "GETD";
                GetDataRequest getDataRequest = new GetDataRequest();
View Full Code Here

Examples of org.apache.zookeeper.proto.ExistsResponse

                if (path.indexOf('\0') != -1) {
                    throw new KeeperException.BadArgumentsException();
                }
                Stat stat = zks.getZKDatabase().statNode(path, existsRequest
                        .getWatch() ? cnxn : null);
                rsp = new ExistsResponse(stat);
                break;
            }
            case OpCode.getData: {
                lastOp = "GETD";
                GetDataRequest getDataRequest = new GetDataRequest();
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.