接口 org.tinygroup.weblayer.WebContext
的使用

使用 WebContext 的软件包
org.tinygroup.weblayer   
org.tinygroup.weblayer.exceptionhandler   
org.tinygroup.weblayer.exceptionhandler.impl   
org.tinygroup.weblayer.filter   
org.tinygroup.weblayer.impl   
org.tinygroup.weblayer.mvc   
org.tinygroup.weblayer.mvc.impl   
org.tinygroup.weblayer.tinyprocessor   
org.tinygroup.weblayer.webcontext   
org.tinygroup.weblayer.webcontext.basic   
org.tinygroup.weblayer.webcontext.basic.impl   
org.tinygroup.weblayer.webcontext.basic.response   
org.tinygroup.weblayer.webcontext.buffered   
org.tinygroup.weblayer.webcontext.buffered.impl   
org.tinygroup.weblayer.webcontext.buffered.response   
org.tinygroup.weblayer.webcontext.cache   
org.tinygroup.weblayer.webcontext.cache.impl   
org.tinygroup.weblayer.webcontext.lazycommit   
org.tinygroup.weblayer.webcontext.lazycommit.impl   
org.tinygroup.weblayer.webcontext.parser   
org.tinygroup.weblayer.webcontext.parser.impl   
org.tinygroup.weblayer.webcontext.parser.upload   
org.tinygroup.weblayer.webcontext.rewrite   
org.tinygroup.weblayer.webcontext.rewrite.impl   
org.tinygroup.weblayer.webcontext.session   
org.tinygroup.weblayer.webcontext.session.impl   
org.tinygroup.weblayer.webcontext.setlocacle   
org.tinygroup.weblayer.webcontext.setlocacle.impl   
org.tinygroup.weblayer.webcontext.util   
org.tinygroup.weblayer.webcontextfactory   
 

org.tinygroup.weblayerWebContext 的使用
 

返回 WebContextorg.tinygroup.weblayer 中的方法
protected  WebContext AbstractTinyFilter.getAlreadyWrappedContext(WebContext wrappedContext)
          返回已经包装的上下文
 WebContext TinyFilterHandler.getContext()
           
 WebContext WebContext.getWrappedWebContext()
          获取包装的WebContext
 WebContext AbstractTinyFilter.wrapContext(WebContext wrappedContext)
           
 

参数类型为 WebContextorg.tinygroup.weblayer 中的方法
 void TinyFilterHandler.commitHeaders(WebContext wrapperedContext)
          头部提交,保证内容只提交一次
 boolean TinyProcessorManager.execute(String url, WebContext context)
          根据请求路径,获取servlet处理器进行逻辑处理
 void FilterWrapper.filterWrapper(WebContext context, TinyFilterHandler hander)
           
protected  WebContext AbstractTinyFilter.getAlreadyWrappedContext(WebContext wrappedContext)
          返回已经包装的上下文
protected  void AbstractTinyFilter.initContext(WebContext context)
           
 void WebContextProcessor.postProcess(WebContext context)
          后置操作
 void TinyFilter.postProcess(WebContext context)
          后置操作
 void AbstractTinyFilter.postProcess(WebContext context)
           
 void WebContextProcessor.preProcess(WebContext context)
          前置操作
 void TinyFilter.preProcess(WebContext context)
          前置操作
 void AbstractTinyFilter.preProcess(WebContext context)
           
 void TinyProcessor.process(String urlString, WebContext context)
          处理
 void AbstractTinyProcessor.process(String urlString, WebContext context)
           
abstract  void AbstractTinyProcessor.reallyProcess(String urlString, WebContext context)
          tinyprocessor的逻辑处理方法,由子类来完成
 void TinyFilterHandler.setContext(WebContext context)
           
 WebContext AbstractTinyFilter.wrapContext(WebContext wrappedContext)
           
 

参数类型为 WebContextorg.tinygroup.weblayer 中的构造方法
TinyFilterHandler(String servletPath, javax.servlet.FilterChain filterChain, WebContext context, TinyFilterManager tinyFilterManager, TinyProcessorManager tinyProcessorManager)
           
 

org.tinygroup.weblayer.exceptionhandlerWebContext 的使用
 

参数类型为 WebContextorg.tinygroup.weblayer.exceptionhandler 中的方法
 boolean WebExceptionHandlerManager.handler(Throwable t, WebContext webContext)
           
 void WebExceptionHandler.handler(Throwable t, WebContext webContext)
          异常处理方法
 

org.tinygroup.weblayer.exceptionhandler.implWebContext 的使用
 

参数类型为 WebContextorg.tinygroup.weblayer.exceptionhandler.impl 中的方法
 boolean WebExceptionHandlerManagerImpl.handler(Throwable e, WebContext webContext)
           
 void DefaultWebExceptionHandler.handler(Throwable e, WebContext webContext)
           
 

org.tinygroup.weblayer.filterWebContext 的使用
 

返回 WebContextorg.tinygroup.weblayer.filter 中的方法
protected  WebContext SetLocaleTinyFilter.getAlreadyWrappedContext(WebContext wrappedContext)
           
 WebContext SessionTinyFilter.getAlreadyWrappedContext(WebContext wrappedContext)
           
 WebContext RewriteTinyFilter.getAlreadyWrappedContext(WebContext wrappedContext)
           
 WebContext ParserTinyFilter.getAlreadyWrappedContext(WebContext wrappedContext)
           
 WebContext PageCacheTinyFilter.getAlreadyWrappedContext(WebContext wrappedContext)
           
 WebContext LazyCommitTinyFilter.getAlreadyWrappedContext(WebContext wrappedContext)
           
 WebContext BufferedTinyFilter.getAlreadyWrappedContext(WebContext wrappedContext)
           
 WebContext BasicTinyFilter.getAlreadyWrappedContext(WebContext wrappedContext)
           
 

参数类型为 WebContextorg.tinygroup.weblayer.filter 中的方法
protected  WebContext SetLocaleTinyFilter.getAlreadyWrappedContext(WebContext wrappedContext)
           
 WebContext SessionTinyFilter.getAlreadyWrappedContext(WebContext wrappedContext)
           
 WebContext RewriteTinyFilter.getAlreadyWrappedContext(WebContext wrappedContext)
           
 WebContext ParserTinyFilter.getAlreadyWrappedContext(WebContext wrappedContext)
           
 WebContext PageCacheTinyFilter.getAlreadyWrappedContext(WebContext wrappedContext)
           
 WebContext LazyCommitTinyFilter.getAlreadyWrappedContext(WebContext wrappedContext)
           
 WebContext BufferedTinyFilter.getAlreadyWrappedContext(WebContext wrappedContext)
           
 WebContext BasicTinyFilter.getAlreadyWrappedContext(WebContext wrappedContext)
           
protected  void BasicTinyFilter.initContext(WebContext context)
           
 void SetLocaleTinyFilter.postProcess(WebContext context)
           
 void SessionTinyFilter.postProcess(WebContext context)
           
 void RewriteTinyFilter.postProcess(WebContext context)
           
 void ParserTinyFilter.postProcess(WebContext context)
           
 void PageCacheTinyFilter.postProcess(WebContext context)
           
 void LazyCommitTinyFilter.postProcess(WebContext context)
           
 void BufferedTinyFilter.postProcess(WebContext context)
           
 void BasicTinyFilter.postProcess(WebContext context)
           
 void SetLocaleTinyFilter.preProcess(WebContext context)
           
 void SessionTinyFilter.preProcess(WebContext context)
           
 void RewriteTinyFilter.preProcess(WebContext context)
           
 void ParserTinyFilter.preProcess(WebContext context)
           
 void PageCacheTinyFilter.preProcess(WebContext context)
           
 void LazyCommitTinyFilter.preProcess(WebContext context)
           
 void BufferedTinyFilter.preProcess(WebContext context)
           
 void BasicTinyFilter.preProcess(WebContext context)
           
 

org.tinygroup.weblayer.implWebContext 的使用
 

实现 WebContextorg.tinygroup.weblayer.impl 中的类
 class WebContextImpl
          web上下文接口实现
 

参数类型为 WebContextorg.tinygroup.weblayer.impl 中的方法
 boolean TinyProcessorManagerImpl.execute(String url, WebContext context)
           
 void TinyFilterWrapper.filterWrapper(WebContext context, TinyFilterHandler hander)
           
 void DataSouceTinyFilter.postProcess(WebContext context)
           
 void DataSouceTinyFilter.preProcess(WebContext context)
           
 void ServiceTinyProcessor.reallyProcess(String urlString, WebContext context)
           
 

参数类型为 WebContextorg.tinygroup.weblayer.impl 中的构造方法
WebContextImpl(WebContext wrappedContext)
           
 

org.tinygroup.weblayer.mvcWebContext 的使用
 

返回 WebContextorg.tinygroup.weblayer.mvc 中的方法
 WebContext HandlerExecutionChain.getContext()
           
 

参数类型为 WebContextorg.tinygroup.weblayer.mvc 中的方法
 void MappingModelExecute.execute(HandlerExecutionChain chain, WebContext context)
          执行方法
 void WebContextAware.setContext(WebContext webContext)
           
 void HandlerExecutionChain.setContext(WebContext context)
           
 

org.tinygroup.weblayer.mvc.implWebContext 的使用
 

参数类型为 WebContextorg.tinygroup.weblayer.mvc.impl 中的方法
 void MappingModelExecuteImpl.execute(HandlerExecutionChain chain, WebContext context)
           
 

org.tinygroup.weblayer.tinyprocessorWebContext 的使用
 

参数类型为 WebContextorg.tinygroup.weblayer.tinyprocessor 中的方法
 void VelocityLayoutViewTinyProcessor.reallyProcess(String servletPath, WebContext context)
           
 void UiEngineTinyProcessor.reallyProcess(String servletPath, WebContext context)
           
 void TinyProcessorWapper.reallyProcess(String urlString, WebContext context)
           
 void PageFlowTinyProcessor.reallyProcess(String urlString, WebContext context)
           
 void MvcTinyProcessor.reallyProcess(String urlString, WebContext context)
           
 void FullContextUrlRedirectTinyProcessor.reallyProcess(String servletPath, WebContext context)
           
 

org.tinygroup.weblayer.webcontextWebContext 的使用
 

org.tinygroup.weblayer.webcontextWebContext 的子接口
 interface TwoPhaseCommitWebContext
          扩展于WebContext,支持先提交headers,再提交全体内容。
 

实现 WebContextorg.tinygroup.weblayer.webcontext 中的类
 class AbstractWebContextWrapper
          功能说明:抽象的包装上下文,类属性值都是从被包装的上下文对象中获得

系统版本: v1.0
开发人员: renhui
开发时间: 2013-4-28
功能描述: 写明作用,调用方式,使用场景,以及特殊情况

 class CommitMonitor
          保存commit的状态,用来防止重复commit。
 class DefaultWebContext
          功能说明:默认的上下文实现,如果filter没有自定义增强上下文的对象,那么就返回此对象 系统版本: v1.0
开发人员: renhui
开发时间: 2013-7-1
功能描述: 写明作用,调用方式,使用场景,以及特殊情况
 class SimpleWebContext
          功能说明: 实现了WebContext接口,包含request、response和servletContext的信息。
 

返回 WebContextorg.tinygroup.weblayer.webcontext 中的方法
 WebContext CommitMonitor.getTopWebContext()
           
 WebContext AbstractResponseWrapper.getWebContext()
          取得支持它们的getWebContext
protected  WebContext AbstractRequestWrapper.getWebContext()
          取得支持它们的WebContext
 WebContext AbstractWebContextWrapper.getWrappedWebContext()
           
 WebContext AbstractWebContextWrapper.getWrappedWebContext(String contextName)
           
 

参数类型为 WebContextorg.tinygroup.weblayer.webcontext 中的方法
protected
<T> T
AbstractWebContextWrapper.getFromWrapperContext(String name, WebContext webContext)
           
 void AbstractWebContextWrapper.putSubWebContext(String contextName, WebContext webContext)
           
 void CommitMonitor.setTopWebContext(WebContext topWebContext)
           
 

参数类型为 WebContextorg.tinygroup.weblayer.webcontext 中的构造方法
AbstractRequestWrapper(WebContext context, javax.servlet.http.HttpServletRequest request)
          创建一个request wrapper。
AbstractResponseWrapper(WebContext context, javax.servlet.http.HttpServletResponse response)
          创建一个response wrapper。
AbstractWebContextWrapper(WebContext wrappedContext)
           
CommitMonitor(WebContext context, TinyFilterHandler handler)
           
DefaultWebContext(WebContext wrappedContext)
           
SimpleWebContext(WebContext webContext, TinyFilterHandler handler, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          创建一个新的RequestContext对象。
 

org.tinygroup.weblayer.webcontext.basicWebContext 的使用
 

org.tinygroup.weblayer.webcontext.basicWebContext 的子接口
 interface BasicWebContext
          这是一个基础性的web context,提供了interceptor机制,主要用于构建可扩展的安全方案。
 

org.tinygroup.weblayer.webcontext.basic.implWebContext 的使用
 

实现 WebContextorg.tinygroup.weblayer.webcontext.basic.impl 中的类
 class BasicWebContextImpl
          过滤header中的crlf,将status message用HTML entities转义,限制cookie的总大小。
 

参数类型为 WebContextorg.tinygroup.weblayer.webcontext.basic.impl 中的构造方法
BasicWebContextImpl(WebContext wrappedContext)
           
 

org.tinygroup.weblayer.webcontext.basic.responseWebContext 的使用
 

参数类型为 WebContextorg.tinygroup.weblayer.webcontext.basic.response 中的构造方法
BasicResponseImpl(WebContext context, javax.servlet.http.HttpServletResponse response, Object[] interceptors)
           
 

org.tinygroup.weblayer.webcontext.bufferedWebContext 的使用
 

org.tinygroup.weblayer.webcontext.bufferedWebContext 的子接口
 interface BufferedWebContext
          对response.
 

org.tinygroup.weblayer.webcontext.buffered.implWebContext 的使用
 

实现 WebContextorg.tinygroup.weblayer.webcontext.buffered.impl 中的类
 class BufferedWebContextImpl
           
 

参数类型为 WebContextorg.tinygroup.weblayer.webcontext.buffered.impl 中的构造方法
BufferedWebContextImpl(WebContext wrappedContext)
           
 

org.tinygroup.weblayer.webcontext.buffered.responseWebContext 的使用
 

参数类型为 WebContextorg.tinygroup.weblayer.webcontext.buffered.response 中的构造方法
BufferedResponseImpl(WebContext webContext, javax.servlet.http.HttpServletResponse response)
          创建一个BufferedResponseImpl
 

org.tinygroup.weblayer.webcontext.cacheWebContext 的使用
 

org.tinygroup.weblayer.webcontext.cacheWebContext 的子接口
 interface PageCacheWebContext
          功能说明:处理缓存页面过滤的上下文 系统版本: v1.0
开发人员: renhui
开发时间: 2013-8-22
功能描述: 写明作用,调用方式,使用场景,以及特殊情况
 

参数类型为 WebContextorg.tinygroup.weblayer.webcontext.cache 中的方法
 String CacheOperater.getCacheContent(String accessPath, WebContext webcontext)
          获取访问路径的缓存内容; 1、判断请求路径是否可以缓存 2、请求路径对应的缓存是否已经失效 3、获取请求路径对应的缓存内容
 String CacheMapping.getCacheKey(String accessPath, WebContext webContext)
           
 boolean CacheMatcher.isMatch(String accessPath, WebContext webContext)
          访问路径是否匹配
 void CacheOperater.putCache(String accessPath, String output, WebContext webcontext)
          把请求路径对应的页面内容放入缓存
 

org.tinygroup.weblayer.webcontext.cache.implWebContext 的使用
 

实现 WebContextorg.tinygroup.weblayer.webcontext.cache.impl 中的类
 class PageCacheWebContextImpl
          功能说明:缓存页面上下文实现类 系统版本: v1.0
开发人员: renhui
开发时间: 2013-8-22
功能描述: 写明作用,调用方式,使用场景,以及特殊情况
 

参数类型为 WebContextorg.tinygroup.weblayer.webcontext.cache.impl 中的构造方法
PageCacheWebContextImpl(WebContext wrappedContext)
           
 

org.tinygroup.weblayer.webcontext.lazycommitWebContext 的使用
 

org.tinygroup.weblayer.webcontext.lazycommitWebContext 的子接口
 interface LazyCommitWebContext
          延迟提交response。
 

org.tinygroup.weblayer.webcontext.lazycommit.implWebContext 的使用
 

实现 WebContextorg.tinygroup.weblayer.webcontext.lazycommit.impl 中的类
 class LazyCommitWebContextImpl
          延迟提交response的实现。
 

参数类型为 WebContextorg.tinygroup.weblayer.webcontext.lazycommit.impl 中的构造方法
LazyCommitWebContextImpl(WebContext wrappedContext)
          包装一个RequestContext对象。
 

org.tinygroup.weblayer.webcontext.parserWebContext 的使用
 

org.tinygroup.weblayer.webcontext.parserWebContext 的子接口
 interface ParserWebContext
          自动解析request parameters和cookie parameters,并透明地处理upload请求的web context实现。
 

org.tinygroup.weblayer.webcontext.parser.implWebContext 的使用
 

实现 WebContextorg.tinygroup.weblayer.webcontext.parser.impl 中的类
 class ParserWebContextImpl
          自动解析request parameters和cookie parameters,并透明地处理upload请求的request context实现。
 

参数类型为 WebContextorg.tinygroup.weblayer.webcontext.parser.impl 中的方法
 String ParamValueEncryptFilter.valueFilter(String value, WebContext webContext)
           
 String ParamValueDecryptFilter.valueFilter(String value, WebContext webContext)
           
 

参数类型为 WebContextorg.tinygroup.weblayer.webcontext.parser.impl 中的构造方法
ParserWebContextImpl(WebContext wrappedContext)
          包装一个RequestContext对象。
 

org.tinygroup.weblayer.webcontext.parser.uploadWebContext 的使用
 

参数类型为 WebContextorg.tinygroup.weblayer.webcontext.parser.upload 中的方法
 String ParamValueFilter.valueFilter(String value, WebContext webContext)
          参数过滤方法
 

org.tinygroup.weblayer.webcontext.rewriteWebContext 的使用
 

org.tinygroup.weblayer.webcontext.rewriteWebContext 的子接口
 interface RewriteWebContext
          重写URL及参数的web context,类似于apache的mod_rewrite模块。
 

org.tinygroup.weblayer.webcontext.rewrite.implWebContext 的使用
 

实现 WebContextorg.tinygroup.weblayer.webcontext.rewrite.impl 中的类
 class RewriteWebContextImpl
          重写URL及参数的request context,类似于apache的mod_rewrite模块。
 

参数类型为 WebContextorg.tinygroup.weblayer.webcontext.rewrite.impl 中的构造方法
RewriteWebContextImpl(WebContext wrappedContext, RewriteRule[] rules)
          包装一个RequestContext对象。
 

org.tinygroup.weblayer.webcontext.sessionWebContext 的使用
 

org.tinygroup.weblayer.webcontext.sessionWebContext 的子接口
 interface SessionWebContext
          支持session的WebContext实现。
 

org.tinygroup.weblayer.webcontext.session.implWebContext 的使用
 

实现 WebContextorg.tinygroup.weblayer.webcontext.session.impl 中的类
 class SessionWebContextImpl
          支持session的HttpRequestContext实现。
 

参数类型为 WebContextorg.tinygroup.weblayer.webcontext.session.impl 中的构造方法
SessionWebContextImpl(WebContext wrappedContext, SessionConfig sessionConfig)
          构造函数。
 

org.tinygroup.weblayer.webcontext.setlocacleWebContext 的使用
 

org.tinygroup.weblayer.webcontext.setlocacleWebContext 的子接口
 interface SetLocaleWebContext
          实现了Servlet 2.4规范中的response的方法。
 

org.tinygroup.weblayer.webcontext.setlocacle.implWebContext 的使用
 

实现 WebContextorg.tinygroup.weblayer.webcontext.setlocacle.impl 中的类
 class SetLocaleWebContextImpl
          SetLocaleWebContext的实现。
 

参数类型为 WebContextorg.tinygroup.weblayer.webcontext.setlocacle.impl 中的构造方法
SetLocaleWebContextImpl(WebContext wrappedContext)
          包装一个RequestContext对象。
 

org.tinygroup.weblayer.webcontext.utilWebContext 的使用
 

类型参数类型为 WebContextorg.tinygroup.weblayer.webcontext.util 中的方法
static
<R extends WebContext>
R
WebContextUtil.findWebContext(javax.servlet.http.HttpServletRequest request, Class<R> WebContextInterface)
          在指定的request context及其级联的request context中找到一个指定类型的request context。
static
<R extends WebContext>
R
WebContextUtil.findWebContext(WebContext webContext, Class<R> webContextInterface)
          在指定的request context及其级联的request context中找到一个指定类型的request context。
 

返回 WebContextorg.tinygroup.weblayer.webcontext.util 中的方法
static WebContext WebContextUtil.getWebContext(javax.servlet.http.HttpServletRequest request)
          取得和当前request相关联的WebContext对象。
 

参数类型为 WebContextorg.tinygroup.weblayer.webcontext.util 中的方法
static
<R extends WebContext>
R
WebContextUtil.findWebContext(WebContext webContext, Class<R> webContextInterface)
          在指定的request context及其级联的request context中找到一个指定类型的request context。
static void WebContextUtil.setWebContext(WebContext WebContext)
          将WebContext对象和request相关联。
 

org.tinygroup.weblayer.webcontextfactoryWebContext 的使用
 

类型参数类型为 WebContextorg.tinygroup.weblayer.webcontextfactory 中的类
 interface WebContextFactory<R extends WebContext>
          对WebContext进行包装,产生新的包装后的WebContext
 

参数类型为 WebContextorg.tinygroup.weblayer.webcontextfactory 中的方法
 R WebContextFactory.wrapContext(WebContext wrappedContext)
          获取包装的webcontext
 



Copyright © 2006–2014 开源组织. All rights reserved.