Package javango.core

Examples of javango.core.RegUrl


public class Urls implements javango.api.Urls {
  List<Url> l = new ArrayList<Url>();
 
  @Inject
  public Urls(Injector injector) {
    l.add(new RegUrl("^$", Main.class, "index"));
    l.add(new SubappUrl(injector, "^jquery/", JqueryUrls.class));
    l.add(new RegUrl("^resetdb/$", Main.class, "resetdb"));
    l.add(new RegUrl("^([^/]+)/search/$", Main.class, "search"));
    l.add(new RegUrl("^([^/]+)/$", Main.class, "changeList"));
    l.add(new RegUrl("^([^/]+)/add/$", Main.class, "add"));
    l.add(new RegUrl("^([^/]+)/([^/]+)/delete/$", Main.class, "delete"));
    l.add(new RegUrl("^([^/]+)/([^/]+)/$", Main.class, "change"));
  }
View Full Code Here


    List<Url> l = new ArrayList<javango.api.Url>();
   
    @Inject
    public SubAppUrls() { 
      l.add(new RegUrl("view/", SubAppUrls.class, "view"));
    }
View Full Code Here

  Injector injector;
 
  List<Url> l = new ArrayList<Url>();

  public Urls() {
    l.add(new RegUrl("^$", Views.class, "index"));
      l.add(new RegUrl("^(\\d+)/$", Views.class, "detail"));
      l.add(new RegUrl("^(\\d+)/results/$", Views.class, "results"));
      l.add(new RegUrl("^(\\d+)/vote/$", Views.class, "vote"));
      l.add(new SubappUrl(injector, "^admin/", javango.contrib.admin.Urls.class));
  }
View Full Code Here

  java.util.List<Url> urls = new java.util.ArrayList<Url>();
 
  @Inject
  public Urls() {
    urls.add(new RegUrl("^/$", Views.class, "index"));
  }
View Full Code Here

TOP

Related Classes of javango.core.RegUrl

Copyright © 2018 www.massapicom. 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.