Package scenic3.controller

Source Code of scenic3.controller.AppUrls

package scenic3.controller;

import scenic3.ScenicController;
import scenic3.Urls;
import scenic3.controller.xxx.AaaController;

/**
* Stub impl of Urls
* @author shuji.w6e
* @since 0.2.0
*/
public class AppUrls implements Urls {

    @Override
    public ScenicController createController(String requestPath, String method) {
        return createController(requestPath);
    }

    @Override
    public ScenicController createController(String requestPath) {
        if (requestPath.equals("/path/to/null")) return null;
        if (requestPath.equals("/path/to/aaa")) return new AaaController();
        return null;
    }

}
TOP

Related Classes of scenic3.controller.AppUrls

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.