Package org.restlet

Examples of org.restlet.Redirector


    }

     public synchronized Restlet createRoot() {
        Router router = new Router(getContext());

        router.attach("/",new Redirector(null,"/engine",Redirector.MODE_CLIENT_TEMPORARY));
        router.attach("/engine",EngineResource.class)
            .setMatchingMode(Template.MODE_EQUALS);
        router.attach("/engine/",EngineResource.class)
            .setMatchingMode(Template.MODE_EQUALS);
View Full Code Here


        attach("/affectedfeatures", AffectedFeaturesResource.class);
        attach("/filteredchanges", new FilteredChangesResource());
        attach("/applychanges", new ApplyChangesResource());
        attach("/mergefeature", MergeFeatureResource.class);

        Redirector redirector = new Redirector(getContext(), "console/",
                Redirector.MODE_CLIENT_PERMANENT);
        attach("/console/{resource}", ConsoleResourceResource.class);
        attach("/console/", ConsoleResourceResource.class);
        attach("/console", redirector);
    }
View Full Code Here

TOP

Related Classes of org.restlet.Redirector

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.