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

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

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

HttpServletRequestWrapper.removeAttribute介绍

暂无

代码示例

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

  1. @Override
  2. public void removeAttribute(String name) {
  3. super.removeAttribute(name);
  4. }

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

  1. @Override
  2. public void removeAttribute(String name) {
  3. _attributes.remove(name);
  4. super.removeAttribute(name);
  5. }

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

  1. @Override
  2. public void removeAttribute(final String name)
  3. {
  4. super.removeAttribute(name);
  5. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. public void removeAttribute(final String name) {
  6. // Synchronized access
  7. synchronized (mutex) {
  8. super.removeAttribute(name);
  9. }
  10. }

代码示例来源:origin: org.jasig.portal/uportal3-impl

  1. /**
  2. * @see javax.servlet.ServletRequest#removeAttribute(java.lang.String)
  3. */
  4. public void removeAttribute(String name) {
  5. if (name == null)
  6. throw new IllegalArgumentException("Attribute name cannot be null");
  7. //TODO is this the desired behavior?
  8. this.attributeValueMap.remove(name);
  9. super.removeAttribute(name);
  10. }

代码示例来源:origin: org.sakaiproject.kernel/sakai-kernel-impl

  1. public void removeAttribute(String name)
  2. {
  3. if (m_attributes.containsKey(name))
  4. {
  5. m_attributes.remove(name);
  6. }
  7. else
  8. {
  9. super.removeAttribute(name);
  10. }
  11. // if this is a special attribute, set it back through all wrapped requests of this class
  12. if (Tool.NATIVE_URL.equals(name))
  13. {
  14. m_wrappedReq.removeAttribute(name);
  15. }
  16. }

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

  1. @Override
  2. public void removeAttribute(String name) {
  3. this.checkState();
  4. super.removeAttribute(name);
  5. }

代码示例来源:origin: org.apache.wink/wink-server

  1. @Override
  2. public void removeAttribute(String name) {
  3. getCorrectRequest().removeAttribute(name);
  4. }

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

  1. @Override
  2. public void removeAttribute(String name) {
  3. this.checkState();
  4. super.removeAttribute(name);
  5. }

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

  1. @Override
  2. @SuppressWarnings("deprecation")
  3. public void removeAttribute(final String name) {
  4. if (Constants.HDIV_REQUEST_CONTEXT.equals(name)) {
  5. if (super.getAttribute(Constants.HDIV_REQUEST_CONTEXT) != null) {
  6. log.warn("The application is trying to remove an Hdiv internal attribute. The change will be avoided.");
  7. return;
  8. }
  9. }
  10. super.removeAttribute(name);
  11. }

代码示例来源:origin: org.onehippo.ecm.hst.components/hst-core

  1. @Override
  2. public void removeAttribute(String name) {
  3. if (name == null) {
  4. throw new IllegalArgumentException("attribute name cannot be null.");
  5. }
  6. if (isContainerAttributeName(name)) {
  7. super.removeAttribute(name);
  8. } else {
  9. Object value = getAttributeMap().remove(name);
  10. String prefix = getFullNamespacePrefix(this.componentWindow.getReferenceNamespace(), false);
  11. super.removeAttribute(prefix + name);
  12. }
  13. }

代码示例来源:origin: org.onehippo.cms7.hst.components/hst-core

  1. @Override
  2. public void removeAttribute(String name) {
  3. if (name == null) {
  4. throw new IllegalArgumentException("attribute name cannot be null.");
  5. }
  6. if (isContainerAttributeName(name)) {
  7. super.removeAttribute(name);
  8. } else {
  9. getAttributeMap().remove(name);
  10. String prefix = getFullNamespacePrefix(this.componentWindow.getReferenceNamespace(), false);
  11. super.removeAttribute(prefix + name);
  12. }
  13. }

代码示例来源:origin: OpenNMS/opennms

  1. @Override
  2. public void removeAttribute(String name)
  3. {
  4. Object oldValue = this.getAttribute(name);
  5. super.removeAttribute(name);
  6. if (oldValue != null)
  7. {
  8. requestAttributeListener.attributeRemoved(new ServletRequestAttributeEvent(servletContext, this, name,
  9. oldValue));
  10. }
  11. }
  12. }

代码示例来源:origin: org.opennms.container/org.opennms.container.bridge

  1. @Override
  2. public void removeAttribute(String name) {
  3. Object oldValue = this.getAttribute(name);
  4. super.removeAttribute(name);
  5. if (oldValue != null) {
  6. requestAttributeListener.attributeRemoved(new ServletRequestAttributeEvent(servletContext, this, name, oldValue));
  7. }
  8. }
  9. }

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

  1. public void removeAttribute(String name)
  2. {
  3. Object old=getAttribute(name);
  4. super.removeAttribute(name);
  5. for (int i=LazyList.size(contextFilters);i-->0;)
  6. ((JSR154Filter)LazyList.get(contextFilters, i)).attributeNotify(this,name,old,null);
  7. }

代码示例来源:origin: OpenNMS/opennms

  1. @Override
  2. public void removeAttribute(String name) {
  3. Object oldValue = this.getAttribute(name);
  4. super.removeAttribute(name);
  5. if (oldValue != null) {
  6. requestAttributeListener.attributeRemoved(new ServletRequestAttributeEvent(servletContext, this, name, oldValue));
  7. }
  8. }
  9. }

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

  1. public void removeAttribute(String name)
  2. {
  3. Object old=getAttribute(name);
  4. super.removeAttribute(name);
  5. for (int i=LazyList.size(contextFilters);i-->0;)
  6. ((JSR154Filter)LazyList.get(contextFilters, i)).attributeNotify(this,name,old,null);
  7. }

代码示例来源:origin: org.opennms.container/org.opennms.container.bridge

  1. @Override
  2. public void removeAttribute(String name)
  3. {
  4. Object oldValue = this.getAttribute(name);
  5. super.removeAttribute(name);
  6. if (oldValue != null)
  7. {
  8. requestAttributeListener.attributeRemoved(new ServletRequestAttributeEvent(servletContext, this, name,
  9. oldValue));
  10. }
  11. }
  12. }

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

  1. @Override
  2. public void removeAttribute(final String name) {
  3. final Object oldValue = this.getAttribute(name);
  4. if ( oldValue != null )
  5. {
  6. super.removeAttribute(name);
  7. if ( this.servletContext.getServletRequestAttributeListener() != null )
  8. {
  9. this.servletContext.getServletRequestAttributeListener().attributeRemoved(new ServletRequestAttributeEvent(this.servletContext, this, name, oldValue));
  10. }
  11. }
  12. }

代码示例来源:origin: org.apache.felix/org.apache.felix.http.base

  1. @Override
  2. public void removeAttribute(final String name) {
  3. final Object oldValue = this.getAttribute(name);
  4. if ( oldValue != null )
  5. {
  6. super.removeAttribute(name);
  7. if ( this.servletContext.getServletRequestAttributeListener() != null )
  8. {
  9. this.servletContext.getServletRequestAttributeListener().attributeRemoved(new ServletRequestAttributeEvent(this.servletContext, this, name, oldValue));
  10. }
  11. }
  12. }

相关文章

HttpServletRequestWrapper类方法