org.tinygroup.weblayer.webcontext.setlocacle.impl
类 SetLocaleWebContextImpl
java.lang.Object
org.tinygroup.context.impl.BaseContextImpl
org.tinygroup.context.impl.ContextImpl
org.tinygroup.weblayer.webcontext.AbstractWebContextWrapper
org.tinygroup.weblayer.webcontext.setlocacle.impl.SetLocaleWebContextImpl
- 所有已实现的接口:
- Serializable, org.tinygroup.context.BaseContext, org.tinygroup.context.Context, WebContext, SetLocaleWebContext
public class SetLocaleWebContextImpl
- extends AbstractWebContextWrapper
- implements SetLocaleWebContext
SetLocaleWebContext的实现。
- 作者:
- renhui
- 另请参见:
- 序列化表格
|
字段摘要 |
protected static org.tinygroup.logger.Logger |
log
|
| 从类 org.tinygroup.context.impl.BaseContextImpl 继承的字段 |
itemMap |
| 从类 org.tinygroup.weblayer.webcontext.AbstractWebContextWrapper 继承的方法 |
get, getFromWrapperContext, getObject, getRequest, getResponse, getServletContext, getWrappedWebContext, getWrappedWebContext, init, putSubWebContext, setObject, setRequest, setResponse, setServletContext |
| 从类 org.tinygroup.context.impl.ContextImpl 继承的方法 |
clear, clearSubContext, createSubContext, findNodeMap, get, getParent, getSubContext, getSubContextMap, put, putContext, putSubContext, remove, removeSubContext, renameKey, renameKeyNodeMap, setParent |
| 从类 org.tinygroup.context.impl.BaseContextImpl 继承的方法 |
exist, get, getItemMap, put, remove, size |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 从接口 org.tinygroup.context.Context 继承的方法 |
clearSubContext, createSubContext, get, getParent, getSubContext, getSubContextMap, put, putSubContext, remove, removeSubContext, setParent |
| 从接口 org.tinygroup.context.BaseContext 继承的方法 |
clear, exist, get, get, getItemMap, put, remove, renameKey, size |
log
protected static org.tinygroup.logger.Logger log
SetLocaleWebContextImpl
public SetLocaleWebContextImpl(WebContext wrappedContext)
- 包装一个
RequestContext对象。
- 参数:
wrappedContext - 被包装的RequestContext
setInputCharsetPattern
public void setInputCharsetPattern(Pattern inputCharsetPattern)
setOutputCharsetPattern
public void setOutputCharsetPattern(Pattern outputCharsetPattern)
setOverriders
public void setOverriders(SetLocaleOverrider[] overriders)
setDefaultLocale
public void setDefaultLocale(Locale defaultLocale)
setDefaultCharset
public void setDefaultCharset(String defaultCharset)
setSessionKey
public void setSessionKey(String sessionKey)
setParamKey
public void setParamKey(String paramKey)
getResponseContentType
public String getResponseContentType()
- 取得content type。
- 指定者:
- 接口
SetLocaleWebContext 中的 getResponseContentType
- 返回:
- content type,包括charset的定义
setResponseContentType
public void setResponseContentType(String contentType,
boolean appendCharset)
- 设置content type。 如果content type不包含charset,并且
getCharacterEncoding被设置,则加上charset标记。
如果appendCharset为false,则content
type中将不包含charset标记。
- 指定者:
- 接口
SetLocaleWebContext 中的 setResponseContentType
- 参数:
contentType - content typeappendCharset - 输出字符集
setResponseCharacterEncoding
public void setResponseCharacterEncoding(String charset)
- 设置response输出字符集。注意,此方法必须在第一次
getWriter之前执行。
- 指定者:
- 接口
SetLocaleWebContext 中的 setResponseCharacterEncoding
- 参数:
charset - 输出字符集,如果charset为null ,则从contentType中删除charset标记
prepare
public void prepare()
- 设置locale、输入charset、输出charset。
Copyright © 2006–2014 开源组织. All rights reserved.