Package org.atomojo.www.util

Examples of org.atomojo.www.util.ProxyApplication


                     if (links!=null && links.size()>0) {
                        target = links.get(0);
                     }
                  }
                  if (target!=null) {
                     app = new ProxyApplication(appContext,target);
                  }
               } else if (classTerm!=null) {
                  String className = classTerm.getFirstValue();
                  List<Link> libraryLinks = entry.getLinks().get("library");
                  String href = null;
View Full Code Here


         }
         URI source = contentConf.getBaseURI().resolve(href);
         String scheme = source.getScheme();
         if (scheme.equals("http") || scheme.equals("https")) {
            LOG.fine("  Content proxy to: "+source);
            ProxyApplication proxy = new ProxyApplication(parentContext,source.toString());
            proxy.getTunnelService().setEnabled(false);
            return proxy;
         } else {
            final String uri = source.toString();
            final String indexName = contentConf.getAttributeValue("index");
            // hope the directory resource can handle it
View Full Code Here

         try {
            final String uri = content.getSource().toString();
            String scheme = content.getSource().getScheme();
            if (scheme.equals("http") || scheme.equals("https")) {
               getLogger().info("  Proxy: "+content.getSource()+" at "+content.getMatch());
               ProxyApplication proxy = new ProxyApplication(context,uri.toString());
               proxy.getTunnelService().setEnabled(false);
               router.attach(content.getMatch(),proxy);
            } else {
               // hope the directory resource can handle it
               getLogger().info("  Directory: "+content.getSource()+" at "+content.getMatch());
               Application app = new Application(context) {
View Full Code Here

                     if (links!=null && links.size()>0) {
                        target = links.get(0);
                     }
                  }
                  if (target!=null) {
                     app = new ProxyApplication(appContext,target);
                  }
               } else if (classTerm!=null) {
                  String className = classTerm.getFirstValue();
                  List<Link> libraryLinks = entry.getLinks().get("library");
                  String href = null;
View Full Code Here

TOP

Related Classes of org.atomojo.www.util.ProxyApplication

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.