Examples of handle()


Examples of org.jboss.messaging.core.local.PagingFilteredQueue.handle()

      //Send one more ref
     
      tx = createXATx();
      msgs[140] = CoreMessageFactory.createCoreMessage(140, false, null);
      refs[140] = ms.reference(msgs[140]);
      queue.handle(null, refs[140], tx);
      refs[140].releaseMemoryReference();
      tx.prepare();
      tx.commit();
     
      //verify 40 refs in storage
View Full Code Here

Examples of org.jboss.messaging.core.local.RoundRobinPointToPointRouter.handle()

     
      Message msg = CoreMessageFactory.createCoreMessage(123, true, null);
     
      MessageReference ref = ms.reference(msg);
           
      Delivery del = router.handle(null, ref, null);
      assertNotNull(del);
      checkReceiverGotRef(receivers, 0);
      resetReceivers(receivers);
     
      del = router.handle(null, ref, null);
View Full Code Here

Examples of org.jboss.security.auth.callback.AppCallbackHandler.handle()

   public void testUserNamePassword() throws Exception
   {
      AppCallbackHandler apc = new AppCallbackHandler("jduke","theduke".toCharArray());
      //Create the Callbacks
      Callback[] cb = new Callback[]{ncb,pcb};
      apc.handle(cb);
      assertTrue("jduke", "jduke".equals(ncb.getName()));
      assertTrue("theduke","theduke".equals(new String(pcb.getPassword())) );
   }
  
   public void testMapCallback() throws Exception
View Full Code Here

Examples of org.jboss.security.auth.callback.JASPICallbackHandler.handle()

            }

            if (callbacks.size() > 0)
            {
               Callback[] cb = new Callback[callbacks.size()];
               cbh.handle(callbacks.toArray(cb));
            }

            if (trace)
               log.tracef("Setting authenticated subject (%s) on security context (%s)", executionSubject, sc);
View Full Code Here

Examples of org.jboss.ws.extensions.security.auth.callback.UsernameTokenCallbackHandler.handle()

         UsernameTokenCallback callback = new UsernameTokenCallback();
         Map options = new HashMap();
         callback.init(options);
         // add the username token callback handler to provide the parameters
         CallbackHandler handler = new UsernameTokenCallbackHandler(nonce, created);
         handler.handle((Callback[])options.get("callbacks"));
         // calculate the hash and apply the encoding.
         MessageDigest md = MessageDigest.getInstance("SHA");
         callback.preDigest(md);
         md.update(passBytes);
         callback.postDigest(md);
View Full Code Here

Examples of org.jbpm.simulation.handler.ElementHandler.handle()

        manager.setCatchingEvents(catchingEvents);
        ElementHandler handler = HandlerRegistry.getMainHandler();
        // show what was found
        for (FlowElement fe : triggerElements) {
            if (fe instanceof StartEvent || fe instanceof Activity || fe instanceof IntermediateCatchEvent) {
                handler.handle(fe, manager);
            }
        }
       
        manager.complete();
       
View Full Code Here

Examples of org.jitterbit.integration.client.project.jitterpack.StartupJitterPackHandler.handle()

    private void importJitterpak() {
        assert (jitterpak != null);
        StartupJitterPackHandler handler = getJitterPackHandler(jitterpak);
        UnpackCallback callback = getUnpackCallback(jitterpak);
        handler.handle(jitterpak, callback);
    }

    private StartupJitterPackHandler getJitterPackHandler(File jp) {
        try {
            return (StartupJitterPackHandler) ClientPlatform.getAppContext().getBean("ui.StartupJitterpackHandler");
View Full Code Here

Examples of org.logicblaze.lingo.jms.ReplyHandler.handle()

            }
            if (handler == null) {
                log.warn("Response received for unknown request: " + message);
            }
            else {
                boolean complete = handler.handle(message);
                if (complete) {
                    synchronized (this) {
                        requests.remove(correlationID);
                    }
                }
View Full Code Here

Examples of org.mockito.internal.InternalMockHandler.handle()

        mock.intReturningMethod();
        Invocation invocation = super.getLastInvocation();

        //when:
        Object result = handler.handle(invocation);

        //then null value is not a valid result for a primitive
        assertNotNull(result);
        assertEquals(0, result);
    }
View Full Code Here

Examples of org.mockito.internal.MockitoInvocationHandler.handle()

                    return invocation;
                }
            }
        };
        try {
            return mockHandler.handle(invocation);
        } catch (MockitoAssertionError e) {
            InvocationControlAssertionError.updateErrorMessageForMethodInvocation(e);
            throw e;
        }
    }
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.