Class DefaultFilterChain
java.lang.Object
org.apache.sshd.common.filter.DefaultFilterChain
- All Implemented Interfaces:
FilterChain
A default implementation of a
FilterChain.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAfter(Filter filter, FilterContext after) addBefore(Filter filter, FilterContext before) Adds the given filter at the front of the filter chain.Adds the given filter at the end of the filter chain.getFirst()getLast()booleanisEmpty()
-
Constructor Details
-
DefaultFilterChain
public DefaultFilterChain()
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceFilterChain
-
addFirst
Description copied from interface:FilterChainAdds the given filter at the front of the filter chain.- Specified by:
addFirstin interfaceFilterChain- Parameters:
filter- to add
-
addLast
Description copied from interface:FilterChainAdds the given filter at the end of the filter chain.- Specified by:
addLastin interfaceFilterChain- Parameters:
filter- to add
-
addBefore
- Specified by:
addBeforein interfaceFilterChain
-
addAfter
- Specified by:
addAfterin interfaceFilterChain
-
getFirst
- Specified by:
getFirstin interfaceFilterChain
-
getLast
- Specified by:
getLastin interfaceFilterChain
-