Package net.floodlightcontroller.debugevent.web

Source Code of net.floodlightcontroller.debugevent.web.DebugEventRoutable

package net.floodlightcontroller.debugevent.web;

import org.restlet.Context;
import org.restlet.Restlet;
import org.restlet.routing.Router;

import net.floodlightcontroller.restserver.RestletRoutable;

public class DebugEventRoutable implements RestletRoutable {

    @Override
    public Restlet getRestlet(Context context) {
        Router router = new Router(context);
        router.attach("/{param1}/{param2}/", DebugEventResource.class);
        router.attach("/{param1}/{param2}", DebugEventResource.class);
        router.attach("/{param1}/", DebugEventResource.class);
        router.attach("/{param1}", DebugEventResource.class);
        router.attach("/", DebugEventResource.class);
        return router;
    }

    @Override
    public String basePath() {
        return "/wm/debugevent";
    }

}
TOP

Related Classes of net.floodlightcontroller.debugevent.web.DebugEventRoutable

TOP
Copyright © 2018 www.massapi.com. 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.