congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
WebContext.init
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.tinygroup/org.tinygroup.weblayerbase

protected void service(HttpServletRequest request,
            HttpServletResponse response) throws ServletException, IOException {
  String servletPath = request.getServletPath();
  if (servletPath == null || servletPath.length() == 0) {
    servletPath = request.getPathInfo();
  }
  logger.logMessage(LogLevel.DEBUG, "servlet请求路径:<{}>", servletPath);
  WebContext context = new WebContextImpl();
  context.init(request, response,
      ServletContextHolder.getServletContext());
  tinyProcessorManager.execute(servletPath, context);
}
origin: org.tinygroup/weblayer

protected void service(HttpServletRequest request,
    HttpServletResponse response) throws ServletException, IOException {
  String servletPath = request.getServletPath();
  if(servletPath==null||servletPath.length()==0){
    servletPath=request.getPathInfo();
  }
  logger.logMessage(LogLevel.DEBUG, "servlet请求路径:<{}>",servletPath
      );
  WebContext context = new WebContextImpl();
  context.init(request, response,ServletContextHolder.getServletContext());
  tinyProcessorManager.execute(servletPath, context);
}
origin: org.tinygroup/weblayer

webContent.put("uiengine",
    SpringUtil.getBean("uiComponentManager"));
webContent.init(request, response,ServletContextHolder.getServletContext());
if (isPagelet) {
  velocityHelper.processTempleate(webContent,
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

        .getConfiguration()));
putRequestInfo(request, context);
context.init(request, response,
    ServletContextHolder.getServletContext());
if (servletPath.endsWith("/")) {
org.tinygroup.weblayerWebContextinit

Javadoc

初始化web上下文方法

Popular methods of WebContext

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

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Runner (org.openjdk.jmh.runner)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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