Examples of handle()


Examples of org.apache.tapestry.services.ComponentActionRequestHandler.handle()

        train_getPath(request, "/mypage:eventname");

        train_getParameter(request, InternalConstants.PAGE_CONTEXT_NAME, "alpha/beta");

        expect(
                handler.handle(
                        eq("mypage"),
                        eq(""),
                        eq("eventname"),
                        aryEq(new String[0]),
                        aryEq(new String[]
View Full Code Here

Examples of org.apache.tapestry5.services.PageRenderRequestHandler.handle()

        PageRenderRequestHandler handler = new PageRenderRequestHandlerImpl(cache, processor, renderer, activator);

        PageRenderRequestParameters parameters = new PageRenderRequestParameters("foo/Bar", context, true);

        handler.handle(parameters);

        verify();
    }
}
View Full Code Here

Examples of org.apache.tez.dag.history.HistoryEventHandler.handle()

    final HistoryEventHandler historyHandler = appContext.getHistoryHandler();
    ContainerStoppedEvent lEvt = new ContainerStoppedEvent(containerId,
        clock.getTime(),
        exitStatus,
        appContext.getApplicationAttemptId());
    historyHandler.handle(
        new DAGHistoryEvent(appContext.getCurrentDAGID(),lEvt));
  }
 
  protected void deAllocate() {
    sendEvent(new AMSchedulerEventDeallocateContainer(containerId));
View Full Code Here

Examples of org.apache.uima.ducc.common.jd.plugin.IJdProcessExceptionHandler.handle()

    try {
      IJdProcessExceptionHandler jdProcessExceptionHandler = JdProcessExceptionHandlerLoader.load(JdProcessExceptionHandler.class.getName());
      CAS cas = null;
      Exception e = null;
      Properties p = null;
      jdProcessExceptionHandler.handle("test001",cas, e, p);
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
      fail("Exception");
    } catch (IllegalAccessException e) {
      e.printStackTrace();
View Full Code Here

Examples of org.apache.uima.ducc.common.jd.plugin.JdProcessExceptionHandler.handle()

        }
        catch(Exception e) {
          String processId = "0";
          CAS cas = null;
          Properties properties = null;
          jdProcessExceptionHandler.handle(processId, cas, e, properties);
        }
      }
      for(int i=1; i<4; i++) {
        try {
          generateError();
View Full Code Here

Examples of org.apache.xml.security.stax.ext.XMLSecurityHeaderHandler.handle()

            logger.warn("No matching handler found for " + elementName);
            return;
        }
        try {
            XMLSecurityHeaderHandler xmlSecurityHeaderHandler = clazz.newInstance();
            xmlSecurityHeaderHandler.handle(inputProcessorChain, securityProperties, eventQueue, index);
        } catch (InstantiationException e) {
            throw new WSSecurityException(WSSecurityException.ErrorCode.INVALID_SECURITY, e);
        } catch (IllegalAccessException e) {
            throw new WSSecurityException(WSSecurityException.ErrorCode.INVALID_SECURITY, e);
        } catch (WSSecurityException e) {
View Full Code Here

Examples of org.asmatron.messengine.action.ActionHandler.handle()

    assertEquals(TestTypes.requestId, type.getId());
    assertEquals(TestTypes.request, type);

    assertNotNull(handler);
    assertFalse(annotationTester.requestHandled);
    handler.handle(new RequestAction<String, Integer>("5", EmptyCallback
        .get(Integer.class)));
    assertTrue(annotationTester.requestHandled);
  }

  @Test
View Full Code Here

Examples of org.atmosphere.annotation.Processor.handle()

                } catch (Exception e) {
                    logger.warn("Unable to create Processor {}", p);
                }
                processors.put(a, p);
            }
            p.handle(framework, discoveredClass);
            logger.trace("Annotation {} handled by {}", annotation, p.getClass().getName());
        } else {
            logger.trace("Annotation {} unhandled", annotation);
        }
        return this;
View Full Code Here

Examples of org.atmosphere.socketio.SocketIOSessionOutbound.handle()

        Action action = Action.CONTINUE;
        if (session != null) {
            SocketIOSessionOutbound handler = session.getTransportHandler();
            if (handler != null) {
                if (!isDisconnectRequest) {
                    action = handler.handle(request, response, session);
                } else {
                    handler.disconnect();
                    response.setStatus(200);
                }
            } else {
View Full Code Here

Examples of org.atmosphere.socketio.transport.Transport.handle()

                            ((HttpServletResponse) r.getResponse()).sendError(errorCode, message);
                            return this;
                        }
                    });
                }
                transport.handle((AtmosphereResourceImpl) r, atmosphereHandler, getSessionManager(version));
            } else {
                logger.error("Protocol not supported : " + protocol);
            }
        } catch (Exception e) {
            logger.error("", 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.