程序包 cn.taketoday.web

类 ContextExposingRequestContext

java.lang.Object
cn.taketoday.core.AttributeAccessorSupport
所有已实现的接口:
cn.taketoday.core.AttributeAccessor, cn.taketoday.core.io.InputStreamSource, cn.taketoday.core.io.OutputStreamSource, HttpInputMessage, HttpMessage, HttpRequest, Serializable

public class ContextExposingRequestContext extends RequestContextDecorator
RequestContext decorator that makes all beans in a given WebApplicationContext accessible as request attributes, through lazy checking once an attribute gets accessed.
从以下版本开始:
4.0 2022/2/5 14:27
作者:
Harry Yang
另请参阅:
  • 字段详细资料

    • serialVersionUID

      private static final long serialVersionUID
      另请参阅:
    • webApplicationContext

      private final cn.taketoday.context.ApplicationContext webApplicationContext
    • exposedContextBeanNames

      @Nullable private final Set<String> exposedContextBeanNames
    • explicitAttributes

      @Nullable private Set<String> explicitAttributes
  • 构造器详细资料

    • ContextExposingRequestContext

      public ContextExposingRequestContext(RequestContext originalRequest, cn.taketoday.context.ApplicationContext context, @Nullable Set<String> exposedContextBeanNames)
      Create a new ContextExposingRequestContext for the given request.
      参数:
      originalRequest - the original RequestContext
      context - the WebApplicationContext that this request runs in
      exposedContextBeanNames - the names of beans in the context which are supposed to be exposed (if this is non-null, only the beans in this Set are eligible for exposure as attributes)
  • 方法详细资料