Examples of Controller


Examples of com.dotcms.repackage.org.apache.struts.tiles.Controller

     * @throws Exception from InstantiationException Can't create requested controller
     */
    protected String processDefinition(ComponentDefinition definition) throws
            Exception
    {
        Controller controller = null;
        try
        {
            controller = definition.getOrCreateController();

            String role = definition.getRole();
View Full Code Here

Examples of com.dubture.symfony.core.model.Controller

               
                if (t == null) {
                    continue;
                }
               
                Controller ctrl = new Controller((ModelElement)t, path.toString());
                reporter.reportType(ctrl, ":", range);
            }

           
        // complete template path: "Bundle:Controller:|
View Full Code Here

Examples of com.dyuproject.web.rest.mvc.Controller

    }
   
    private void handle(int sub, String[] pathInfo, String mime, HttpServletRequest request,
            HttpServletResponse response) throws ServletException, IOException
    {
        Controller c = _controllers.get(pathInfo[sub]);
        if(c==null)
        {
            log.warn("No controller matched on: " + pathInfo[sub]);
            response.sendError(404);
            return;
        }           
        if(sub+1==pathInfo.length)
        {           
            RESTControllerContext.handle(c, mime, request, response);
            return;
        }
        String verbOrIdAttr = c.getIdentifierAttribute();
        if(verbOrIdAttr==null)
        {
            log.warn(pathInfo[sub+1] + " is not a verb nor an id of " + pathInfo[sub]);
            response.sendError(404);
            return;
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.Controller

  public void create( Shell shell ) {
    whenNull( shell ).throwIllegalArgument( "Shell must not be null" );
    prepareShell( shell );
    RemoteUI remoteUI = new RemoteUI( shell );
    shell.setLayout( new ZIndexStackLayout() );
    Controller controller = new Controller( shell, remoteUI, configuration.getAdapter( UIDescriptor.class ) );
    UIImpl ui = prepareUi( shell, remoteUI, configuration, controller );
    configure( configuration, ui );
    setUiColors( shell, remoteUI, configuration );
    prepareController( controller, ui );
  }
View Full Code Here

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

    }

    @Override
    public Controller getController() {
      // create and return a new instance of the Controller class
      return new Controller() {
        public <A extends Annotation> A getAnnotation(Class<A> annotation) {
          return route.getController().getClass().getAnnotation(annotation);
        }
      };
    }
View Full Code Here

Examples of com.firefly.annotation.Controller

    for (Class<?> i : interfaces) {
      ret.add(i.getName());
    }

    // 把annotation的值作为key
    Controller controller = c.getAnnotation(Controller.class);
    if (controller != null && controller.value().length() > 0)
      ret.add(controller.value());
    Component component = c.getAnnotation(Component.class);
    if (component != null && component.value().length() > 0)
      ret.add(component.value());
    Interceptor interceptor = c.getAnnotation(Interceptor.class);
    if (interceptor != null && interceptor.value().length() > 0)
View Full Code Here

Examples of com.google.speedtracer.client.view.Controller

    // setup debug logger.
    Logging.getLogger().listenTo(dataDispatcher);

    dataDispatcher.getTabChangeDispatcher().addListener(this);
    // The top Controller bar for our top level actions.
    controller = new Controller(Root.getContainer(), dataDispatcher, this,
        resources);

    // Create the initial ApplicationState.
    addPageState(tabDescription.getUrl(), new ApplicationState(dataDispatcher));
View Full Code Here

Examples of com.icl.saxon.Controller

        transformerFactory.setURIResolver(uriResolver);
        Source source = new StreamSource(url.openStream(), url.toExternalForm());
        Transformer transformer = transformerFactory.newTransformer(source);

        if (!isShowXslMessages()) {
          Controller controller = (Controller) transformer;
          try {
            controller.makeMessageEmitter();
            controller.getMessageEmitter().setWriter(new NullWriter());
          } catch (TransformerException te) {
            getLog().error("Failed to redirect xsl:message output.", te);
          }
        }
View Full Code Here

Examples of com.iggroup.oss.restdoclet.doclet.type.Controller

         if (isAnnotated(classDoc,
            org.springframework.stereotype.Controller.class)) {
            LOG.info("Found controller.  Generating javadoc xml for "
               + classDoc.qualifiedName() + ".java");
            marshallController(
               new ControllerBuilder().build(new Controller(), classDoc),
               DocletUtils.documentationFile(classDoc));
            found = true;
         }
      }
      if (!found) {
View Full Code Here

Examples of com.jfinal.core.Controller

2012-9-6 下午8:32:53
*/
public class ManagerPowerInterceptor implements Interceptor {

  public void intercept(ActionInvocation ai) {
    Controller ctrl=ai.getController();
    ctrl.setAttr("root",ctrl.getRequest().getContextPath());
    ctrl.setAttr("StaticCfg", new StaticCfg());
    String user_token=ctrl.getCookie("user_token");
    Record po=(Record)MemcacheTool.mcc.get(user_token);
    if(po==null){
      /*String ckey=ai.getControllerKey();
      if(ckey.contains("webadmin")){
        ctrl.redirect(ctrl.getRequest().getContextPath()+"/webadmin");
      }else*/
      ctrl.renderText("{\"statusCode\":301,\"message\":\"登录超时,请重新登录!\"}");
    }else{
      /*boolean v=true;
      String code=null;
      PowerBind p=ai.getController().getClass().getAnnotation(PowerBind.class);
      if(p!=null){
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.