Enum Class的使用
cn.dev33.satoken.router.SaHttpMethod
使用SaHttpMethod的程序包
-
cn.dev33.satoken.router中SaHttpMethod的使用
修饰符和类型方法说明static SaHttpMethodString 转 enumstatic SaHttpMethod[]SaHttpMethod.toEnumArray(String... methods) String[] 转 enum[]static SaHttpMethodReturns the enum constant of this class with the specified name.static SaHttpMethod[]SaHttpMethod.values()Returns an array containing the constants of this enum class, in the order they are declared.参数类型为SaHttpMethod的cn.dev33.satoken.router中的方法修饰符和类型方法说明static booleanSaRouter.isMatch(SaHttpMethod[] methods, String methodString) Http请求方法匹配static booleanSaRouter.isMatchCurrMethod(SaHttpMethod[] methods) Http请求方法匹配 (使用当前请求方式)static SaRouterStaffSaRouter.match(SaHttpMethod... methods) Http请求方式匹配 (Enum)SaRouterStaff.match(SaHttpMethod... methods) Http请求方法匹配 (Enum)static SaRouterStaffSaRouter.notMatch(SaHttpMethod... methods) Http请求方法匹配排除 (Enum)SaRouterStaff.notMatch(SaHttpMethod... methods) Http请求方法匹配排除 (Enum)