Examples of Action


Examples of com.eclipsesource.tabris.tracking.internal.piwik.model.action.Action

      .withParam( "token_auth", FAKE_TOKEN )
      .withParam( "res", "1280x1024" ), giveEmptyResponse().withStatus( 200 ) );

    Piwik piwik = new Piwik( driver.getBaseUrl(), new PiwikConfiguration( "apiVersion", 2 ) );

    piwik.track( new Action( "actionUrl" ),
                 new VisitorInformation().setScreenResolution( "1280x1024" ),
                 new AdvancedConfiguration( FAKE_TOKEN ) );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.ui.Action

  @Test
  public void testGetsActionConfigurationFromController() {
    Controller controller = mock( Controller.class );
    UIImpl ui = new UIImpl( display, controller, mock( UIConfiguration.class ) );
    Action action = mock( Action.class );

    ui.getActionConfiguration( action );

    verify( controller ).getActionConfiguration( action );
  }
View Full Code Here

Examples of com.elibom.jogger.middleware.router.interceptor.Action

    }

    @Override
    public Action getAction() {
      // create and return a new instance of the Action class
      return new Action() {
        public <A extends Annotation> A getAnnotation(Class<A> annotationClass) {
          return findAnnotation(route.getAction(), annotationClass);
        }

        /**
 
View Full Code Here

Examples of com.findwise.hydra.Document.Action

  private SolrServer solr;

  @Override
  public void output(LocalDocument doc) throws IOException, SolrServerException, RequiredArgumentMissingException {
    final Action action = doc.getAction();

    if (action == Action.ADD || action == Action.UPDATE) {
      add(doc);
    } else if (action == Action.DELETE) {
      delete(doc);
View Full Code Here

Examples of com.ghosthack.turismo.action.Action

        put("/indexes/:name/docs", new Docs());

        delete("/indexes/:name/docs", new DeleteDocs());
       
        get("/indexes", new Action() {
            public void run() {
                // dummy response for embedded server
                print("{\"idx\": {\"status\": \"LIVE\", \"code\": \"dbajo\", " +
                        "\"started\": true, \"public_search\": true, " +
                        "\"creation_time\": \"2011-04-22T05:37:43\", \"size\": 0}}");
            }
        });

        get("/indexes/:name", new Action() {
            public void run() {
                // dummy response for embedded server
                print("{\"status\": \"LIVE\", \"code\": \"dbajo\", " +
                        "\"started\": true, \"public_search\": true, " +
                        "\"creation_time\": \"2011-04-22T05:37:43\", \"size\": 0}");
            }
        });

        put("/indexes/:name", new Action() {
            public void run() {
                // dummy
                res().setStatus(204);
            }
        });

        delete("/indexes/:name", new Action() {
            public void run() {
                // dummy
                res().setStatus(204);
            }
        });
View Full Code Here

Examples of com.github.zhongl.hs4j.kit.annotations.HandlerSocket.Action

  @Override
  protected InvocationHandler createInvocationHandlerWith(Method method, String database, String table) {
    final HandlerSocket handlerSocket = method.getAnnotation(HandlerSocket.class);
    if ((handlerSocket == null)) return null;
    final Action action = handlerSocket.value();
    if (action == FIND) assertMethodReturnType(method, ResultIterator.class);
    else assertMethodReturnType(method, void.class);
    final IndexSession session = getOrCreateIndexSessionWith(method, database, table);
    return action.createInvocationHandlerWith(method, session);
  }
View Full Code Here

Examples of com.google.appengine.tools.util.Action

      List<String> helpLines = new LinkedList<String>();
      helpLines.add("usage: AppCfg [options] <action> [<app-dir>] [<argument>]");
      helpLines.add("");
      helpLines.add("Action must be one of:");
      for (String actionName : actionsAndOptions.actionNames) {
        Action action = actionsAndOptions.getAction(actionName);
        if (action != null) {
          helpLines.add("  " + actionName + ": " + action.getShortDescription());
        }
      }
      helpLines.add("Use 'help <action>' for a detailed description.");
      helpLines.add("");
      helpLines.add("options:");
View Full Code Here

Examples of com.google.gwt.autobean.rebind.model.AutoBeanMethod.Action

          }
        }
      }

      // GET, SET, or CALL
      Action action = Action.which(method);
      builder.setAction(action);
      if (Action.CALL.equals(action)) {
        JMethod staticImpl = findStaticImpl(beanType, method);
        if (staticImpl == null && objectMethods.contains(method)) {
          // Don't complain about lack of implementation for Object methods
View Full Code Here

Examples of com.google.sitebricks.routing.Action

      }
    });
  }

  private Action action(final String reply) {
    return new Action() {
      @Override
      public boolean shouldCall(Request request) {
        return true;
      }
View Full Code Here

Examples of com.googlecode.sonic.action.Action

    Class<?> clazz = Thread.currentThread().getContextClassLoader()
        .loadClass(clazzCanonicalName);
    Method method = clazz.getDeclaredMethod(methodName);
    if (Modifier.isPublic(method.getModifiers())
        && !Modifier.isAbstract(method.getModifiers())) {
      Action action = (Action) clazz.newInstance();
      setRequestAndResponse(action, request, response);
      log.info(clazzCanonicalName + "#" + method.getName() + " -> start");
      ActionResult actionResult = (ActionResult) method.invoke(action);
      log.info(clazzCanonicalName + "#" + method.getName() + " -> end");
      return getDestination(clazz, method, actionResult);
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.