Package org.stringtree.mojasef.routing

Examples of org.stringtree.mojasef.routing.URLMount


    public void init(StringKeeper context) {
        createMounts(context);
        for (Map.Entry<String, Object> entry : ((Map<String, Object>)context.getObject(key)).entrySet()) {
            String path = entry.getKey();
            Object value = entry.getValue();
            mounts.add(new URLMount(path, value));
         }
    }
View Full Code Here


            if (!StringUtils.isBlank(pattern) && !StringUtils.isBlank(application)) {
                String prefix = pattern;
                if ("*".equals(prefix)) prefix = "";
                Object app = ContextClassUtils.ensureObject(application, tail, context, false);
                if (app != null) {
                    dest.add(new URLMount(prefix, app));
                    MethodCallUtils.call(app, "init", context);
                    MethodCallUtils.call(app, "mojasef_init", context);
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.stringtree.mojasef.routing.URLMount

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.