Package org.apache.harmony.jndi.provider.ldap

Examples of org.apache.harmony.jndi.provider.ldap.LdapMessage


                        // ignore
                    }
                } else {

          while (true) {
            LdapMessage temp = null;
            synchronized (responses) {
              if (responses.size() == 0) {
                break;
              }
              temp = responses.removeFirst();
            }
           
                        final MockLdapMessage response = new MockLdapMessage(
                temp);
                        LdapMessage request = new LdapMessage(null) {
                            public void decodeValues(Object[] values) {
                                response.setMessageId(ASN1Integer
                                        .toIntValue(values[0]));
                            }
                        };
                        request.decode(in);
                        try {
                            Thread.sleep(10);
                        } catch (InterruptedException e) {
                            //ignore
                        }
View Full Code Here


                } else {

                    boolean isContinue = false;

                    while (true) {
                        LdapMessage temp = null;
                        synchronized (responses) {
                            if (responses.size() == 0) {
                                break;
                            }
                            temp = responses.removeFirst();
                        }

                        final MockLdapMessage response = new MockLdapMessage(
                                temp);

                        if (!isContinue) {
                            LdapMessage request = new LdapMessage(null) {
                                public void decodeValues(Object[] values) {
                                    response.setMessageId(ASN1Integer
                                            .toIntValue(values[0]));
                                }
                            };

                            request.decode(in);

                            if (response.getOperationIndex() == LdapASN1Constant.OP_SEARCH_RESULT_ENTRY
                                    || response.getOperationIndex() == LdapASN1Constant.OP_SEARCH_RESULT_REF) {
                                isContinue = true;
                                searchID = response.getMessageId();
View Full Code Here

            }
        }
    }

    public void disconnectNotify() throws IOException {
        MockLdapMessage message = new MockLdapMessage(new LdapMessage(
                LdapASN1Constant.OP_EXTENDED_RESPONSE,
                new DisconnectResponse(), null));
        message.setMessageId(0);
        OutputStream out = socket.getOutputStream();
        out.write(message.encode());
View Full Code Here

TOP

Related Classes of org.apache.harmony.jndi.provider.ldap.LdapMessage

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.