Tabnine Logo
WebContext.putSubContext
Code IndexAdd Tabnine to your IDE (free)

How to use
putSubContext
method
in
org.tinygroup.weblayer.WebContext

Best Java code snippets using org.tinygroup.weblayer.WebContext.putSubContext (Showing top 3 results out of 315)

origin: org.tinygroup/weblayer

public void doFilter(ServletRequest servletRequest,
    ServletResponse servletResponse, FilterChain filterChain)
    throws IOException, ServletException {
  HttpServletRequest request = (HttpServletRequest) servletRequest;
  HttpServletResponse response = (HttpServletResponse) servletResponse;
  WebContext context = new WebContextImpl();
  context.put("springUtil", SpringUtil.class);
  context.put("context", context);
  context.putSubContext("applicationproperties", new ContextImpl(ConfigurationUtil.getConfigurationManager().getApplicationPropertiesMap()));
  putRequstInfo(request, context);
  context.init(request, response,
      ServletContextHolder.getServletContext());
  String servletPath = request.getServletPath();
  if (servletPath == null || servletPath.length() == 0) {
    servletPath = request.getPathInfo();
  }
  if (isExcluded(servletPath)) {
    logger.logMessage(LogLevel.DEBUG, "请求路径:<{}>,被拒绝", servletPath);
    filterChain.doFilter(request, response);
    return;
  }
  TinyFilterHandler hander = new TinyFilterHandler(servletPath,
      filterChain, context, tinyFilterManager, tinyProcessorManager);
  if (wrapper != null) {
    wrapper.filterWrapper(context, hander);
  } else {
    hander.tinyFilterProcessor(request,response);
  }
}
origin: org.tinygroup/org.tinygroup.weblayer

    .getBeanContainer(getClass().getClassLoader()));
postDataProcess(servletPath, request, context);
context.putSubContext("applicationproperties", new ContextImpl(
    ConfigurationUtil.getConfigurationManager()
        .getConfiguration()));
origin: org.tinygroup/org.tinygroup.imda

context.putSubContext("serviceResultContext", event
    .getServiceRequest().getContext());
org.tinygroup.weblayerWebContextputSubContext

Popular methods of WebContext

  • getRequest
    返回请求上下文关联的http请求对象
  • getResponse
    返回请求上下文中关联的http响应对象
  • get
  • put
  • getServletContext
    取得servletContext对象
  • getWrappedWebContext
    获取包装过的WebContext
  • init
    初始化web上下文方法
  • setRequest
    设置请求上下文中关联的http请求对象
  • setResponse
    设置请求上下文中关联的http响应对象
  • exist
  • isRequestFinished
    请求是否已终止,例如请求已被重定向了,该请求将被终止,返回true。还有访问的页面已被缓存,可以直接从缓存中获取页面信息,也将返回true, 默认实现是返回false。
  • isRequestFinished

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Notification (javax.management)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now