Example usage for javax.servlet DispatcherType equals

List of usage examples for javax.servlet DispatcherType equals

Introduction

In this page you can find the example usage for javax.servlet DispatcherType equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Indicates whether some other object is "equal to" this one.

Usage

From source file:org.ireland.jnetty.dispatch.filter.FilterMapping.java

/**
 * True if the dispatcher match specify dispatcherType .
 *///  w  ww  .j  a  va  2 s .  c  o m
public boolean matchDispatcherType(DispatcherType dispatcherType) {
    Assert.notNull(dispatcherType);

    if (_dispatcherTypes == null) {
        return dispatcherType.equals(DispatcherType.REQUEST);
    }

    //_dispatcherTypes != null
    return _dispatcherTypes.contains(dispatcherType);
}