Package org.atomojo.app.client

Examples of org.atomojo.app.client.LinkSet


      public AppConf(AppDef appDef,String match,Element confElement,LinkSet inheritedLinks)
      {
         this.appDef = appDef;
         this.match = match;
         this.confElement = confElement;
         this.links = new LinkSet();
         this.links.mergeLinkSet(inheritedLinks);
         this.parameters = new TreeMap<String,String>();
      }
View Full Code Here


         }
      } else {
         for (Configuration.AppConf appConf : hostConf.getApplications()) {
            try {
               getLogger().info("  Application: "+appConf.getApplicationDef().getName()+" at "+appConf.getMatch());
               LinkSet set = new LinkSet();
               set.addLinkSet(hostConf.getLinks());
               set.addLinkSet(appConf.getLinks());
               Application app = appConf.getApplication(this.context,set);
               router.attach(appConf.getMatch(),app);
               if (internalName!=null) {
                  String route = "/"+internalName+appConf.getMatch();
                  getLogger().info("   adding internal route: "+route);
View Full Code Here

               }
               getLogger().info(T_APP_MATCH.toString());
               Term classTerm = entry.getTerm(T_APP_CLASS);
               Term proxyTerm = entry.getTerm(T_APP_PROXY);
               Context appContext = context.createChildContext();
               LinkSet set = new LinkSet();
               set.addLinkSet(entry.getLinks());
               set.addLinkSet(hostConf.getLinks());
               appContext.getAttributes().put(WebComponent.LINKS_ATTR,set);
               appContext.getAttributes().put(ScriptManager.ATTR,scriptManager);
               appContext.getAttributes().put(ResourceManager.ATTR,resourceManager);
               for (URI t : entry.getTerms().keySet()) {
                  String value = entry.getTerm(t).getFirstValue();
View Full Code Here

      username = null;
      password = null;
      String relation = context.getParameters().getFirstValue("app.link");
      getLogger().info("app.link="+relation);
      if (relation!=null) {
         LinkSet linkSet = (LinkSet)context.getAttributes().get("org.atomojo.www.app.links");
         List<Link> links = linkSet.get(relation);
         if (links!=null && links.size()>0) {
            Link link = links.get(0);
            base = link.getLink().toString();
            username = link.getUsername();
            password = link.getPassword();
View Full Code Here

TOP

Related Classes of org.atomojo.app.client.LinkSet

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.