Examples of reconnect()


Examples of javax.naming.ldap.LdapContext.reconnect()

        server.setResponseSeq(new LdapMessage[] { new LdapMessage(
                LdapASN1Constant.OP_BIND_RESPONSE, new BindResponse(), null) });

        expected = new Control[] { new SortControl("", Control.NONCRITICAL) };
        context.reconnect(expected);

        controls = context.getConnectControls();
        assertNotNull(controls);
        assertEquals(1, controls.length);
        c = controls[0];
View Full Code Here

Examples of javax.naming.ldap.LdapContext.reconnect()

        assertTrue(c instanceof SortControl);
        assertEquals(Control.NONCRITICAL, ((SortControl) c).isCritical());

        server.setResponseSeq(new LdapMessage[] { new LdapMessage(
                LdapASN1Constant.OP_BIND_RESPONSE, new BindResponse(), null) });
        context.reconnect(null);

        assertNull(context.getConnectControls());
    }

    public void testReconnect_share_connection() throws Exception {
View Full Code Here

Examples of javax.naming.ldap.LdapContext.reconnect()

        server.setResponseSeq(new LdapMessage[] { new LdapMessage(
                LdapASN1Constant.OP_BIND_RESPONSE, new BindResponse(), null) });

        // doesn't create new connection
        context.reconnect(null);

        server.setResponseSeq(new LdapMessage[] { new LdapMessage(
                LdapASN1Constant.OP_SEARCH_RESULT_DONE,
                new EncodableLdapResult(), null) });
        // another and context share the same connection now
View Full Code Here

Examples of javax.naming.ldap.LdapContext.reconnect()

        context.reconnect(null);

        server.setResponseSeq(new LdapMessage[] { new LdapMessage(
                LdapASN1Constant.OP_BIND_RESPONSE, new BindResponse(), null) });
        // use original connection
        another.reconnect(null);
    }

    public void testFederation() throws Exception {
        server.setResponseSeq(new LdapMessage[] { new LdapMessage(
                LdapASN1Constant.OP_BIND_RESPONSE, new BindResponse(), null) });
View Full Code Here

Examples of javax.naming.ldap.LdapContext.reconnect()

            ctx = new InitialLdapContext(env, controls);
            logger.debug("Active Directory LDAP context initialized");           
            ctx.addToEnvironment(Context.SECURITY_PRINCIPAL, activeDirectoryDomain + "\\" + loginName);
            ctx.addToEnvironment(Context.SECURITY_CREDENTIALS, password);
            // javax.naming.AuthenticationException
            ctx.reconnect(controls);
            logger.debug("Active Directory LDAP bind successful");           
        } else { // standard LDAP           
            env.put(Context.SECURITY_PRINCIPAL, searchKey + "=" + loginName + "," + searchBase);
            env.put(Context.SECURITY_CREDENTIALS, password);
            ctx = new InitialLdapContext(env, null);
View Full Code Here

Examples of javax.naming.ldap.LdapContext.reconnect()

        // -------------------------------------------------------------------

        ctx.addToEnvironment( Context.SECURITY_PRINCIPAL, "uid=admin,ou=system" );
        ctx.addToEnvironment( Context.SECURITY_CREDENTIALS, "secret" );
        ctx.addToEnvironment( Context.SECURITY_AUTHENTICATION, "simple" );
        ctx.reconnect( null );

        // -------------------------------------------------------------------
        // do a search and confirm
        // -------------------------------------------------------------------
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.ISession.reconnect()

    if(Dialogs.showYesNo(app.getMainFrame(), i18n.MSG))
    {
         // Can't work with ISessionAction because if a result window is on top
         // the session in a ISessionAction is null.
         ISession activeSession = getApplication().getSessionManager().getActiveSession();
      activeSession.reconnect();
    }
  }
}
View Full Code Here

Examples of org.asem.eclipse.mii.model.abs.Connection.reconnect()

     *            a non-null List of connections
     */
    private void addConnections(List connections) {
        for (Iterator iter = connections.iterator(); iter.hasNext();) {
            Connection conn = (Connection) iter.next();
            conn.reconnect();
        }
    }

    /*
     * (non-Javadoc)
 
View Full Code Here

Examples of org.cruxframework.crux.core.client.websocket.WebSocket.reconnect()

    {
      @Override
      public void onClose(SocketCloseEvent event)
      {
        logger.info("Compilation Notifier Socket was closed. Trying to reconnect...");
        socket.reconnect();
      }
    });
   
    socket.addOpenHandler(new SocketOpenHandler()
    {
View Full Code Here

Examples of org.drools.ruleflow.instance.RuleFlowProcessInstance.reconnect()

                              processInstance );
        }

        processInstance.internalSetNodeInstanceCounter( nodeInstanceCounter );
        if ( wm != null ) {
            processInstance.reconnect();
        }
        return processInstance;
  }

  public NodeInstance readNodeInstance(MarshallerReaderContext context,
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.