javax.servlet.http.HttpServletRequestWrapper.setAttribute()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(118)

本文整理了Java中javax.servlet.http.HttpServletRequestWrapper.setAttribute()方法的一些代码示例,展示了HttpServletRequestWrapper.setAttribute()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpServletRequestWrapper.setAttribute()方法的具体详情如下:
包路径:javax.servlet.http.HttpServletRequestWrapper
类名称:HttpServletRequestWrapper
方法名:setAttribute

HttpServletRequestWrapper.setAttribute介绍

暂无

代码示例

代码示例来源:origin: spring-projects/spring-framework

@Override
public void setAttribute(String name, Object value) {
  super.setAttribute(name, value);
  if (this.explicitAttributes == null) {
    this.explicitAttributes = new HashSet<>(8);
  }
  this.explicitAttributes.add(name);
}

代码示例来源:origin: cloudfoundry/uaa

@Override
public void setAttribute(String name, Object o) {
  super.setAttribute(name, o);
}

代码示例来源:origin: spring-projects/spring-framework

@Override
public void setAttribute(String name, Object value) {
  super.setAttribute(name, value);
  if (ResourceUrlProviderExposingInterceptor.RESOURCE_URL_PROVIDER_ATTR.equals(name)) {
    if (value instanceof ResourceUrlProvider) {
      initLookupPath((ResourceUrlProvider) value);
    }
  }
}

代码示例来源:origin: org.springframework/spring-web

@Override
public void setAttribute(String name, Object value) {
  super.setAttribute(name, value);
  if (this.explicitAttributes == null) {
    this.explicitAttributes = new HashSet<>(8);
  }
  this.explicitAttributes.add(name);
}

代码示例来源:origin: org.springframework/spring-webmvc

@Override
public void setAttribute(String name, Object value) {
  super.setAttribute(name, value);
  if (ResourceUrlProviderExposingInterceptor.RESOURCE_URL_PROVIDER_ATTR.equals(name)) {
    if (value instanceof ResourceUrlProvider) {
      initLookupPath((ResourceUrlProvider) value);
    }
  }
}

代码示例来源:origin: com.liferay.portal/com.liferay.portal.kernel

@Override
public void setAttribute(String name, Object obj) {
  if (_setAttributes == null) {
    _setAttributes = new HashSet<>();
  }
  _setAttributes.add(name);
  super.setAttribute(name, obj);
}

代码示例来源:origin: com.atlassian.jira/jira-core

@Override
public void setAttribute(final String name, final Object value)
{
  super.setAttribute(name, value);
}

代码示例来源:origin: com.github.wuic/wuic-servlet

/**
 * {@inheritDoc}
 */
@Override
public void setAttribute(final String name, final Object o) {
  // Synchronized access
  synchronized (mutex) {
    super.setAttribute(name, o);
  }
}

代码示例来源:origin: apache/cxf

private void doSetParameters(String name, String[] values) {
  if (saveParamsAsAttributes) {
    super.setAttribute(name, values);
  } else {
    params.put(name, values);
  }
}

代码示例来源:origin: org.seasar.cubby/cubby-unit

@Override
public void setAttribute(String name, Object o) {
  if (CubbyConstants.ATTR_ACTION_CONTEXT.equals(name)) {
    this.actionContext = (ActionContext) o;
  }
  super.setAttribute(name, o);
}

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

private void doSetParameters(String name, String[] values) {
  if (saveParamsAsAttributes) {
    super.setAttribute(name, values);
  } else {
    params.put(name, values);
  }
}

代码示例来源:origin: apache/servicemix-bundles

@Override
public void setAttribute(String name, Object value) {
  super.setAttribute(name, value);
  if (this.explicitAttributes == null) {
    this.explicitAttributes = new HashSet<>(8);
  }
  this.explicitAttributes.add(name);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-web

@Override
public void setAttribute(String name, Object value) {
  super.setAttribute(name, value);
  if (this.explicitAttributes == null) {
    this.explicitAttributes = new HashSet<>(8);
  }
  this.explicitAttributes.add(name);
}

代码示例来源:origin: org.seleniumhq.selenium/jetty-rc-repacked

public void setAttribute(String name, Object value)
{
  if (__managedAttributes.containsKey(name))
  {
    if (_attributes==null)
      _attributes=new HashMap(3);
    _attributes.put(name,value);
  }
  else
    super.setAttribute(name,value);
}

代码示例来源:origin: Jasig/uPortal

@Override
public void setAttribute(String name, Object o) {
  this.checkState();
  super.setAttribute(name, o);
}

代码示例来源:origin: hdiv/hdiv

@Override
@SuppressWarnings("deprecation")
public void setAttribute(final String name, final Object o) {
  if (Constants.HDIV_REQUEST_CONTEXT.equals(name)) {
    if (super.getAttribute(Constants.HDIV_REQUEST_CONTEXT) != null) {
      log.warn("The application is trying to modify an Hdiv internal attribute. The change will be avoided.");
      return;
    }
  }
  super.setAttribute(name, o);
}

代码示例来源:origin: org.seleniumhq.selenium.server/selenium-server-coreless

public void setAttribute(String name, Object value)
{
  if (__managedAttributes.containsKey(name))
  {
    if (_attributes==null)
      _attributes=new HashMap(3);
    _attributes.put(name,value);
  }
  else
    super.setAttribute(name,value);
}

代码示例来源:origin: org.jasig.portal/uPortal-rendering

@Override
public void setAttribute(String name, Object o) {
  this.checkState();
  super.setAttribute(name, o);
}

代码示例来源:origin: apache/servicemix-bundles

@Override
public void setAttribute(String name, Object value) {
  super.setAttribute(name, value);
  if (ResourceUrlProviderExposingInterceptor.RESOURCE_URL_PROVIDER_ATTR.equals(name)) {
    if (value instanceof ResourceUrlProvider) {
      initLookupPath((ResourceUrlProvider) value);
    }
  }
}

代码示例来源:origin: org.seleniumhq.selenium.server/selenium-server-coreless

public void setAttribute(String name, Object value)
{
  Object old=getAttribute(name);
  super.setAttribute(name,value);
  for (int i=LazyList.size(contextFilters);i-->0;)
    ((JSR154Filter)LazyList.get(contextFilters, i)).attributeNotify(this,name,old,value);
}

相关文章

HttpServletRequestWrapper类方法