public class OppositeHeaderResponseFilter extends Object implements FilteringHeaderResponse.IHeaderResponseFilter
Constructor and Description |
---|
OppositeHeaderResponseFilter(String name,
FilteringHeaderResponse.IHeaderResponseFilter other)
Construct.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(HeaderItem item)
Determines whether a given HeaderItem should be rendered in the bucket represented by
this filter.
|
String |
getName() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
test
public OppositeHeaderResponseFilter(String name, FilteringHeaderResponse.IHeaderResponseFilter other)
name
- the name used by this filter for its bucket o' stuffother
- the other filter to return the opposite ofpublic String getName()
getName
in interface FilteringHeaderResponse.IHeaderResponseFilter
public boolean accepts(HeaderItem item)
FilteringHeaderResponse.IHeaderResponseFilter
accepts
in interface FilteringHeaderResponse.IHeaderResponseFilter
item
- the item to be renderedCopyright © 2006–2022 Apache Software Foundation. All rights reserved.