Package org.atomojo.app.client

Examples of org.atomojo.app.client.LinkSet


               }
               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


      {
         this.addr = addr;
         this.port = port;
         this.protocol = protocol;
         this.hosts = new HashMap<String,Host>();
         this.links = new LinkSet();
      }
View Full Code Here

            Element logE = logs.next();
            for (Name attName : logE.getAttributes().keySet()) {
               logConf.put(attName.toString(),logE.getAttributeValue(attName));
            }
         }
         this.linkSet = new LinkSet();
         Iterator<Element> links = conf.getElementsByName(LINK);
         while (links.hasNext()) {
            Element linkE = links.next();
            String href = linkE.getAttributeValue("href");
            if (href!=null) {
View Full Code Here

      }
     
      protected Context createContext(Context parentContext, Element useConf)
      {
         Context appContext = parentContext.createChildContext();
         LinkSet confLinks = linkSet;
         boolean hasLinks = false;
         Iterator<Element> appLinks = useConf.getElementsByName(LINK);
         while (appLinks.hasNext()) {
            if (!hasLinks) {
               LinkSet set = new LinkSet();
               set.addLinkSet(linkSet);
               confLinks = set;
            }
            Element linkE = appLinks.next();
            String href = linkE.getAttributeValue("href");
            if (href!=null) {
View Full Code Here

            getLogger().warning("No identity manager found for login management.");
         }
      } else {
         getLogger().info("Identity Manager: "+idManager);
      }
      LinkSet links = (LinkSet)getContext().getAttributes().get(LoginApplication.LINKS_ATTR);
      if (links!=null) {
         List<Link> services = links.get("auth-service");
         if (services!=null && services.size()>0) {
            confService = new Reference(services.get(0).getLink().toString());
         } else {
            getLogger().warning("The service link is missing login.");
         }
View Full Code Here

      if (challengeRealm==null) {
         challengeRealm = "Users";
      }
      confService = null;
      idManager = (IdentityManager)getContext().getAttributes().get(IdentityManager.ATTR);
      LinkSet links = (LinkSet)getContext().getAttributes().get(LoginApplication.LINKS_ATTR);
      if (links!=null) {
         List<Link> services = links.get("auth-service");
         if (services!=null && services.size()>0) {
            confService = new Reference(services.get(0).getLink().toString());
         } else {
            getLogger().warning("The service link is missing login.");
         }
View Full Code Here

      };
   }

   protected void doInit() {
      super.doInit();
      LinkSet links = (LinkSet)getContext().getAttributes().get(LoginApplication.LINKS_ATTR);
      if (links!=null) {
         List<Link> services = links.get("secure-base");
         if (services!=null && services.size()>0) {
            confSecureBase = new Reference(services.get(0).getLink().toString());
         }
      } else {
         getLogger().warning("The "+LoginApplication.LINKS_ATTR+" attribute is missing for "+this.getClass().getName());
View Full Code Here

   public IndexApplication(Context context)
   {
      super(context);
      getTunnelService().setEnabled(false);
      manager = (ScriptManager)context.getAttributes().get(ScriptManager.ATTR);
      LinkSet linkset = (LinkSet)context.getAttributes().get(LINKS_ATTR);
      String relation = context.getParameters().getFirstValue("http://www.atomojo.org/O/www/configuration/application/link-relation");
      if (relation==null) {
         relation = "resources";
      }
      List<Link> links = linkset.get(relation);
      if (links!=null && links.size()>0) {
         base = links.get(0);
      }
      if (base==null) {
         getLogger().severe("The link relation "+relation+" cannot be found in the context.");
View Full Code Here

      {
         this.addr = addr;
         this.port = port;
         this.secure = secure;
         this.hosts = new HashMap<String,Host>();
         this.links = new LinkSet();
      }
View Full Code Here

      public Host(String name,String internalName)
      {
         this.name = name;
         this.internalName = internalName;
         this.apps = new ArrayList<AppConf>();
         this.links = new LinkSet();
         this.contents = new ArrayList<Content>();
         this.parameters = new TreeMap<String,String>();
         this.logConf = new HashMap<String,String>();
      }
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.