mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
新增restful模式
This commit is contained in:
@@ -33,6 +33,7 @@ public class DefaultWebContext extends WebContext implements Serializable {
|
||||
private Locale locale;
|
||||
private Map<String, String> headers;
|
||||
private Map<String, String[]> paramtreMap;
|
||||
private String realIp;
|
||||
|
||||
@Override
|
||||
public String getParameter(String name) {
|
||||
|
@@ -58,6 +58,11 @@ public abstract class WebContext {
|
||||
*/
|
||||
public abstract Map<String, String> getHeaders();
|
||||
|
||||
/**
|
||||
* 获取真实ip地址
|
||||
*/
|
||||
public abstract String getRealIp();
|
||||
|
||||
protected void setContext(WebContext openContext) {
|
||||
THREAD_LOCAL.set(openContext);
|
||||
}
|
||||
|
Reference in New Issue
Block a user