本文整理汇总了Java中net.floodlightcontroller.virtualnetwork.NoOp类的典型用法代码示例。如果您正苦于以下问题:Java NoOp类的具体用法?Java NoOp怎么用?Java NoOp使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
NoOp类属于net.floodlightcontroller.virtualnetwork包,在下文中一共展示了NoOp类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getRestlet
import net.floodlightcontroller.virtualnetwork.NoOp; //导入依赖的package包/类
@Override
public Restlet getRestlet(Context context) {
Router router = new Router(context);
router.attach("/vips/", VipsResource.class); // GET, POST
router.attach("/vips/{vip}", VipsResource.class); // GET, PUT, DELETE
router.attach("/pools/", PoolsResource.class); // GET, POST
router.attach("/pools/{pool}", PoolsResource.class); // GET, PUT, DELETE
router.attach("/members/", MembersResource.class); // GET, POST
router.attach("/members/{member}", MembersResource.class); // GET, PUT, DELETE
router.attach("/pools/{pool}/members", PoolMemberResource.class); //GET
router.attach("/health_monitors/", MonitorsResource.class); //GET, POST
router.attach("/health_monitors/{monitor}", MonitorsResource.class); //GET, PUT, DELETE
router.attachDefault(NoOp.class);
return router;
}