mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 12:56:28 +08:00
OpenContext添加charset字段
This commit is contained in:
@@ -54,6 +54,11 @@ public class DefaultOpenContext extends OpenContext implements Serializable {
|
||||
*/
|
||||
private Locale locale;
|
||||
|
||||
/**
|
||||
* charset
|
||||
*/
|
||||
private String charset;
|
||||
|
||||
public void initContext() {
|
||||
this.setContext(this);
|
||||
}
|
||||
|
@@ -49,6 +49,11 @@ public abstract class OpenContext {
|
||||
*/
|
||||
public abstract Locale getLocale();
|
||||
|
||||
/**
|
||||
* 获取charset
|
||||
*/
|
||||
public abstract String getCharset();
|
||||
|
||||
protected void setContext(OpenContext openContext) {
|
||||
THREAD_LOCAL.set(openContext);
|
||||
}
|
||||
|
Reference in New Issue
Block a user