mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-09-19 18:22:15 +08:00
单点登录:CAS模式
This commit is contained in:
@@ -70,6 +70,14 @@ public class SaRequestForReactor implements SaRequest {
|
||||
return request.getURI().getPath();
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回当前请求的url,例:http://xxx.com/?id=127
|
||||
* @return see note
|
||||
*/
|
||||
public String getUrl() {
|
||||
return request.getURI().toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回当前请求的类型
|
||||
*/
|
||||
|
@@ -73,6 +73,14 @@ public class SaRequestForServlet implements SaRequest {
|
||||
return request.getServletPath();
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回当前请求的url,例:http://xxx.com/?id=127
|
||||
* @return see note
|
||||
*/
|
||||
public String getUrl() {
|
||||
return request.getRequestURL().toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回当前请求的类型
|
||||
*/
|
||||
|
@@ -40,6 +40,11 @@ public class SaRequestForSolon implements SaRequest {
|
||||
return ctx.pathNew();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUrl() {
|
||||
return ctx.url();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMethod() {
|
||||
return ctx.method();
|
||||
|
Reference in New Issue
Block a user