| Modifier and Type | Field and Description |
|---|---|
static LoginedValidator |
instance |
static String |
sessionUserKeyName |
| Constructor and Description |
|---|
LoginedValidator() |
| Modifier and Type | Method and Description |
|---|---|
Class<?>[] |
groups(Logined anno)
校验分组
|
String |
message(Logined anno) |
void |
setChecker(LoginedChecker checker) |
org.noear.solon.core.handle.Result |
validateOfContext(org.noear.solon.core.handle.Context ctx,
Logined anno,
String name,
StringBuilder tmp)
验证上下文
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSupportValueType, validateOfValuepublic static final LoginedValidator instance
public static String sessionUserKeyName
public void setChecker(LoginedChecker checker)
public org.noear.solon.core.handle.Result validateOfContext(org.noear.solon.core.handle.Context ctx,
Logined anno,
String name,
StringBuilder tmp)
ValidatorvalidateOfContext in interface Validator<Logined>ctx - 上下文anno - 验证注解name - 参数名(可能没有)tmp - 临时字符构建器(用于构建 message;起到复用之效)Copyright © 2025. All rights reserved.