コード例 #1
0
  /** Returns a list of all incoming endpoints on a service. */
  protected List getIncomingEndpoints() {
    List endpoints = new ArrayList();

    // Add inbound endpoints
    endpoints.addAll(inboundRouter.getEndpoints());

    // Add response endpoints
    if (responseRouter != null && responseRouter.getEndpoints() != null) {
      endpoints.addAll(responseRouter.getEndpoints());
    }
    return endpoints;
  }
コード例 #2
0
 public void testPropertyExtractorResponseRouterConfig() throws Exception {
   Service d =
       muleContext.getRegistry().lookupService("propertyExtractorResponseRouterTestComponent");
   assertNotNull(d);
   ResponseRouterCollection router = d.getResponseRouter();
   assertNotNull(router);
   List routers = router.getRouters();
   assertNotNull(routers);
   assertEquals(1, routers.size());
   AbstractResponseRouter theRouter = (AbstractResponseRouter) routers.get(0);
   // the one we put in the config
   assertTrue(theRouter.getPropertyExtractor() instanceof FunctionExpressionEvaluator);
 }