OpenNMS API 1.2.3

org.opennms.web.vulnerability.filter
Class NegativePortFilter

java.lang.Object
  extended byorg.opennms.web.vulnerability.filter.NegativePortFilter
All Implemented Interfaces:
Filter

public class NegativePortFilter
extends java.lang.Object
implements Filter

Encapsulates negative port filtering functionality, that is filtering OUT this value instead of only filtering IN this value.


Field Summary
protected  int port
           
static java.lang.String TYPE
           
 
Constructor Summary
NegativePortFilter(int port)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
          Returns a terse string (including a "=") that describes this filter in such a way to easily be included in an HTTP GET parameter.
 int getPort()
           
 java.lang.String getSql()
          Returns an expresions for a SQL where clause.
 java.lang.String getTextDescription()
          Returns a terse but human-readable string describing this filter in such a way to easily be included in a search results list.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

port

protected int port
Constructor Detail

NegativePortFilter

public NegativePortFilter(int port)
Method Detail

getSql

public java.lang.String getSql()
Description copied from interface: Filter
Returns an expresions for a SQL where clause. Remember to include a trailing space, but no leading AND or OR.

Specified by:
getSql in interface Filter

getDescription

public java.lang.String getDescription()
Description copied from interface: Filter
Returns a terse string (including a "=") that describes this filter in such a way to easily be included in an HTTP GET parameter.

Some examples:

Specified by:
getDescription in interface Filter

getTextDescription

public java.lang.String getTextDescription()
Description copied from interface: Filter
Returns a terse but human-readable string describing this filter in such a way to easily be included in a search results list.

Some examples (corresponding to the examples in getDescription):

Specified by:
getTextDescription in interface Filter

toString

public java.lang.String toString()

getPort

public int getPort()

equals

public boolean equals(java.lang.Object obj)

OpenNMS API 1.2.3

Generated by eevans on May 29 2005 2015.