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

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

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

origin: org.tinygroup/org.tinygroup.urlrestful

private String getHttpMethod(RewriteSubstitutionContext context) {
  WebContext webContext = context.getParserWebContext();
  String httpMethod = webContext.get(HTTP_METHOD_KEY);
  if (StringUtil.isBlank(httpMethod)) {
    httpMethod = webContext.getRequest().getMethod();
  }
  return httpMethod;
}
origin: org.tinygroup/org.tinygroup.templateweblayer

@SuppressWarnings("unchecked")
public <T> T get(String name) {
  T value = super.get(name);
  if (value != null) {
    return value;
  }
  return (T) webContext.get(name);
}
origin: org.tinygroup/weblayer

HttpServletRequest request = context.getRequest();
boolean isDebug = true;
String isReleaseMode = context.get("TINY_IS_RELEASE_MODE");
if (isReleaseMode != null && isReleaseMode.length() > 0) {
  isDebug = Boolean.parseBoolean(isReleaseMode);
String contextPath = context.get("TINY_CONTEXT_PATH");
try {
  String lastModifiedSign;
origin: org.tinygroup/org.tinygroup.imda

      .getWriter()
      .write(jsonConverter.convert(context
          .get("modelProcessResult")));
} else {// 返回页面
  if (customizeConfig != null
origin: org.tinygroup/org.tinygroup.tinymvc

String[] parameterNames = discoverer.getParameterNames(method);
for (int i = 0; i < paramTypes.length; i++) {
  args[i] = context.get(parameterNames[i]);
  Class type = paramTypes[i];
  if (args[i] == null) {
origin: org.tinygroup/weblayer

public void preProcess(WebContext context) {
  String dataSourceName = context.get(DATASOURCE);
  if (dataSourceName != null && !"".equals(dataSourceName.trim())) {
    DataSourceInfo.setDataSource(dataSourceName);
  }
}
origin: org.tinygroup/weblayer

private boolean isPageCached(WebContext wrapperContext) {
  PageCacheWebContext pageCacheWebContext = WebContextUtil
      .findWebContext(wrapperContext, PageCacheWebContext.class);
  String accessPath = wrapperContext.get(WebContextUtil.TINY_REQUEST_URI);
  if (pageCacheWebContext != null) {
    return pageCacheWebContext.isCached(accessPath);
  }
  return false;
}
origin: org.tinygroup/org.tinygroup.weblayerbase

/**
 * 创建一个新的<code>RequestContext</code>对象。
 *
 * @param webContext
 *            当前请求所在的<code>ServletContext</code>
 * @param request
 *            <code>HttpServletRequest</code>对象
 * @param response
 *            <code>HttpServletResponse</code>对象
 */
public SimpleWebContext(WebContext webContext, FilterHandler handler,
    HttpServletRequest request, HttpServletResponse response) {
  super(webContext, handler);
  Object object = webContext
      .get(WebContext.REQUEST_ATTRIBUTE_FROM_WEBCONTEXT);
  getAttributeFromWebContext = object != null
      && Boolean.FALSE
          .equals(Boolean.parseBoolean(object.toString())) ? false
      : true;
  setRequest(new RequestWrapper(request));
  setResponse(new CommittingAwareResponse(response, this));
}
origin: org.tinygroup/weblayer

public void reallyProcess(String urlString, WebContext context) {
  logger.logMessage(LogLevel.INFO, "{}开始处理",urlString);
  String serviceId = getRequestId(urlString);
  FlowExecutor executor=SpringUtil.getBean(FlowExecutor.PAGE_FLOW_BEAN); 
  String nodeId = context.get(NODE_ID);
  if(nodeId==null||"".equals(nodeId)){
    executor.execute(serviceId, context);
  }else{
    executor.execute(serviceId,nodeId, context);
  }
  
  logger.logMessage(LogLevel.INFO, "{}处理结束",urlString);
}
origin: org.tinygroup/weblayer

    method.getDeclaringClass(), method);
for (int i = 0; i < paramTypes.length; i++) {
  args[i] = context.get(parameterNames[i]);
  Class type = paramTypes[i];
  if (args[i] == null) {
org.tinygroup.weblayerWebContextget

Javadoc

获取指定范围内的对象,相当于调用request、session、servletcontext的getAttribute方法

Popular methods of WebContext

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

Popular in Java

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Kernel (java.awt.image)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook extensions
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