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

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

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

origin: org.tinygroup/org.tinygroup.pageflowbasiccomponent

public void execute(Context context) {
  WebContext webContext = (WebContext) context;
  try {
    webContext.getResponse().getWriter().write(String.valueOf(context.get(resultKey)));
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
}
origin: org.tinygroup/org.tinygroup.pageflowbasiccomponent

public void execute(Context context) {
  try {
    WebContext webContext = (WebContext) context;
    webContext.getResponse().sendRedirect(path);
  } catch (Exception e) {
    logger.errorMessage("Redirect到地址[{}]出错,错误原因:{}", e, path,
        e.getMessage());
  }
}
origin: org.tinygroup/weblayer

public void execute(Context context) {
  try {
    WebContext webContext = (WebContext) context;
    webContext.getResponse().sendRedirect(path);
  } catch (Exception e) {
    logger.errorMessage("Redirect到地址[{}]出错,错误原因:{}", e, path,
        e.getMessage());
  }
}
origin: org.tinygroup/org.tinygroup.weblayerbase

public void reallyProcess(String urlString, WebContext context)
    throws ServletException, IOException {
  HttpServletRequest request = context.getRequest();
  HttpServletResponse response = context.getResponse();
  servlet.service(request, response);
}
origin: org.tinygroup/org.tinygroup.pageflowbasiccomponent

public void execute(Context context) {
  WebContext webContext = (WebContext) context;
  try {
    webContext.getResponse().getWriter().write(objectToJson.convert(context.get(resultKey)));
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
}
origin: org.tinygroup/org.tinygroup.pageflowbasiccomponent

public void execute(Context context) {
  try {
    WebContext webContext = (WebContext) context;
    HttpServletRequest request = webContext.getRequest();
    request.getRequestDispatcher(path).forward(request,
        webContext.getResponse());
  } catch (Exception e) {
    logger.errorMessage("Forward到地址[{}]出错,错误原因:{}", e, path,
        e.getMessage());
  }
}
origin: org.tinygroup/weblayer

public void execute(Context context) {
  try {
    WebContext webContext = (WebContext) context;
    HttpServletRequest request = webContext.getRequest();
    request.getRequestDispatcher(path).forward(request,
        webContext.getResponse());
  } catch (Exception e) {
    logger.errorMessage("Forward到地址[{}]出错,错误原因:{}", e, path,
        e.getMessage());
  }
}
origin: org.tinygroup/org.tinygroup.pageflowbasiccomponent

public void execute(Context context) {
  WebContext webContext = (WebContext) context;
  try {
    webContext.getResponse().getWriter().write(objectToXml.convert(context.get(resultKey)));
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
}
origin: org.tinygroup/weblayer

public void reallyProcess(String urlString, WebContext context) {
  HttpServletRequest request = context.getRequest();
  HttpServletResponse response = context.getResponse();
  try {
    servlet.service(request, response);
  } catch (Exception e) {
    logger.errorMessage("servlet:{}执行出错", e, servlet.getServletName());
    throw new RuntimeException("servlet执行出错", e);
  }
}
origin: org.tinygroup/org.tinygroup.weblayerbase

/**
 * 包装一个<code>RequestContext</code>对象。
 *
 * @param wrappedContext 被包装的<code>RequestContext</code>
 */
public LazyCommitWebContextImpl(WebContext wrappedContext) {
  super(wrappedContext);
  setResponse(new ResponseWrapper(wrappedContext.getResponse()));
}
origin: org.tinygroup/weblayer

/**
 * 包装一个<code>RequestContext</code>对象。
 *
 * @param wrappedContext 被包装的<code>RequestContext</code>
 */
public LazyCommitWebContextImpl(WebContext wrappedContext) {
  super(wrappedContext);
  setResponse(new ResponseWrapper(wrappedContext.getResponse()));
}
origin: org.tinygroup/org.tinygroup.weblayerbase

public AbstractWebContextWrapper(WebContext wrappedContext) {
  assertNotNull(wrappedContext, "wrappedContext");
  this.wrappedContext = wrappedContext;
  this.request = wrappedContext.getRequest();
  this.response = wrappedContext.getResponse();
  this.servletContext = wrappedContext.getServletContext();
}
origin: org.tinygroup/weblayer

public AbstractWebContextWrapper(WebContext wrappedContext) {
  assertNotNull(wrappedContext, "wrappedContext");
  this.wrappedContext = wrappedContext;
  this.request = wrappedContext.getRequest();
  this.response = wrappedContext.getResponse();
  this.servletContext = wrappedContext.getServletContext();
}
origin: org.tinygroup/org.tinygroup.weblayerbase

  public void initContext(Object[] interceptors) {
    this.interceptors = addDefaultInterceptors(interceptors);
    setResponse(new BasicResponseImpl(this, getWrappedWebContext().getResponse(), this.interceptors));
  }
}
origin: org.tinygroup/weblayer

  public void initContext(Object[] interceptors) {
     this.interceptors = addDefaultInterceptors(interceptors);
     setResponse(new BasicResponseImpl(this, getWrappedWebContext().getResponse(), this.interceptors));
  }
}
origin: org.tinygroup/org.tinygroup.weblayerbase

/**
 * 构造函数。
 */
public SessionWebContextImpl(WebContext wrappedContext,
               SessionConfig sessionConfig) {
  super(wrappedContext);
  this.sessionConfig = sessionConfig;
  setRequest(new SessionRequestWrapper(wrappedContext.getRequest()));
  setResponse(new SessionResponseWrapper(wrappedContext.getResponse()));
}
origin: org.tinygroup/weblayer

/** 构造函数。 */
public SessionWebContextImpl(WebContext wrappedContext, SessionConfig sessionConfig) {
  super(wrappedContext);
  this.sessionConfig = sessionConfig;
  setRequest(new SessionRequestWrapper(wrappedContext.getRequest()));
  setResponse(new SessionResponseWrapper(wrappedContext.getResponse()));
}
origin: org.tinygroup/weblayer

/**
 * 包装一个<code>RequestContext</code>对象。
 * 
 * @param wrappedContext
 *            被包装的<code>RequestContext</code>
 */
public SetLocaleWebContextImpl(WebContext wrappedContext) {
  super(wrappedContext);
  setRequest(new RequestWrapper(wrappedContext.getRequest()));
  setResponse(new ResponseWrapper(wrappedContext.getResponse()));
}
origin: org.tinygroup/org.tinygroup.weblayerbase

/**
 * 包装一个<code>RequestContext</code>对象。
 *
 * @param wrappedContext 被包装的<code>RequestContext</code>
 */
public SetLocaleWebContextImpl(WebContext wrappedContext) {
  super(wrappedContext);
  setRequest(new RequestWrapper(wrappedContext.getRequest()));
  setResponse(new ResponseWrapper(wrappedContext.getResponse()));
}
origin: org.tinygroup/org.tinygroup.weblayerbase

public void filterWrapper(WebContext context, FilterHandler handler)
    throws IOException, ServletException {
  HttpServletRequest request = context.getRequest();
  HttpServletResponse response = context.getResponse();
  String servletPath = handler.getServletPath();
  List<Filter> matchFilters = getMatchFilters(servletPath, filterMap);
  logger.logMessage(LogLevel.DEBUG,
      "the pre wrapper httpFilters for the request path:[{0}] is [{1}]",
      servletPath, matchFilters);
  TinyFilterChain filterChain = new TinyFilterChain(matchFilters, handler);
  filterChain.doFilter(request, response);
}
org.tinygroup.weblayerWebContextgetResponse

Javadoc

返回请求上下文中关联的http响应对象

Popular methods of WebContext

  • getRequest
    返回请求上下文关联的http请求对象
  • get
  • put
  • getServletContext
    取得servletContext对象
  • getWrappedWebContext
    获取包装过的WebContext
  • init
    初始化web上下文方法
  • 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 17 PhpStorm Plugins
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