org.apache.coyote.Request.getAttributes()方法的使用及代码示例

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

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

Request.getAttributes介绍

暂无

代码示例

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

/**
 * Remove the specified request attribute if it exists.
 *
 * @param name Name of the request attribute to remove
 */
@Override
public void removeAttribute(String name) {
  // Remove the specified attribute
  // Pass special attributes to the native layer
  if (name.startsWith("org.apache.tomcat.")) {
    coyoteRequest.getAttributes().remove(name);
  }
  boolean found = attributes.containsKey(name);
  if (found) {
    Object value = attributes.get(name);
    attributes.remove(name);
    // Notify interested application event listeners
    notifyAttributeRemoved(name, value);
  }
}

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Remove the specified request attribute if it exists.
 *
 * @param name Name of the request attribute to remove
 */
@Override
public void removeAttribute(String name) {
  // Remove the specified attribute
  // Pass special attributes to the native layer
  if (name.startsWith("org.apache.tomcat.")) {
    coyoteRequest.getAttributes().remove(name);
  }
  boolean found = attributes.containsKey(name);
  if (found) {
    Object value = attributes.get(name);
    attributes.remove(name);
    // Notify interested application event listeners
    notifyAttributeRemoved(name, value);
  }
}

代码示例来源:origin: codefollower/Tomcat-Research

/**
 * Remove the specified request attribute if it exists.
 *
 * @param name Name of the request attribute to remove
 */
@Override
public void removeAttribute(String name) {
  // Remove the specified attribute
  // Check for read only attribute
  // requests are per thread so synchronization unnecessary
  if (readOnlyAttributes.containsKey(name)) {
    return;
  }
  // Pass special attributes to the native layer
  if (name.startsWith("org.apache.tomcat.")) {
    coyoteRequest.getAttributes().remove(name);
  }
  boolean found = attributes.containsKey(name);
  if (found) {
    Object value = attributes.get(name);
    attributes.remove(name);
    // Notify interested application event listeners
    notifyAttributeRemoved(name, value);
  } else {
    return;
  }
}

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Remove the specified request attribute if it exists.
 *
 * @param name Name of the request attribute to remove
 */
@Override
public void removeAttribute(String name) {
  // Remove the specified attribute
  // Check for read only attribute
  // requests are per thread so synchronization unnecessary
  if (readOnlyAttributes.containsKey(name)) {
    return;
  }
  // Pass special attributes to the native layer
  if (name.startsWith("org.apache.tomcat.")) {
    coyoteRequest.getAttributes().remove(name);
  }
  boolean found = attributes.containsKey(name);
  if (found) {
    Object value = attributes.get(name);
    attributes.remove(name);
    // Notify interested application event listeners
    notifyAttributeRemoved(name, value);
  } else {
    return;
  }
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Remove the specified request attribute if it exists.
 *
 * @param name Name of the request attribute to remove
 */
@Override
public void removeAttribute(String name) {
  // Remove the specified attribute
  // Check for read only attribute
  // requests are per thread so synchronization unnecessary
  if (readOnlyAttributes.containsKey(name)) {
    return;
  }
  // Pass special attributes to the native layer
  if (name.startsWith("org.apache.tomcat.")) {
    coyoteRequest.getAttributes().remove(name);
  }
  boolean found = attributes.containsKey(name);
  if (found) {
    Object value = attributes.get(name);
    attributes.remove(name);
    // Notify interested application event listeners
    notifyAttributeRemoved(name, value);
  } else {
    return;
  }
}

代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib

/* 1342 */       this.coyoteRequest.getAttributes().remove(name);

代码示例来源:origin: org.jboss.web/jbossweb

coyoteRequest.getAttributes().remove(name);

代码示例来源:origin: jboss.web/jbossweb

coyoteRequest.getAttributes().remove(name);

代码示例来源:origin: com.tomitribe.tribestream/tribestream-container

request.getCoyoteRequest().getAttributes().entrySet().stream()
    .filter(e -> e.getKey().startsWith("com.tomitribe.tribestream."))
    .forEach(e -> ref.getIn().getAttributes().put(e.getKey(), e.getValue()));

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

coyoteRequest.getAttributes().remove(name);

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

coyoteRequest.getAttributes().remove(name);

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

coyoteRequest.getAttributes().remove(name);

代码示例来源:origin: codefollower/Tomcat-Research

Throwable t = (Throwable)req.getAttribute(
    RequestDispatcher.ERROR_EXCEPTION);
req.getAttributes().remove(RequestDispatcher.ERROR_EXCEPTION);
ReadListener readListener = req.getReadListener();
if (readListener != null) {
Throwable t = (Throwable)req.getAttribute(
    RequestDispatcher.ERROR_EXCEPTION);
req.getAttributes().remove(RequestDispatcher.ERROR_EXCEPTION);
if (res.getWriteListener() != null) {
  ClassLoader oldCL =

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

req.getAttributes().remove(RequestDispatcher.ERROR_EXCEPTION);
ClassLoader oldCL = null;
try {

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

req.getAttributes().remove(RequestDispatcher.ERROR_EXCEPTION);
ClassLoader oldCL = null;
try {

相关文章

微信公众号

最新文章

更多

Request类方法