OpenNMS API 1.1.3

org.opennms.web.graph
Class GraphUtil

java.lang.Object
  extended byorg.opennms.web.graph.GraphUtil

public class GraphUtil
extends java.lang.Object

Provides look and feel utilities for the servlets & JSPs presenting graphs.

Author:
Lawrence Karnowski, OpenNMS

Field Summary
static int MAX_RRD_FILENAME_LENGTH
          Deprecated. Replaced by RrdFileConstants.MAX_RRD_FILENAME_LENGTH
static java.io.FilenameFilter RRD_FILENAME_FILTER
          Deprecated. Replaced by RrdFileConstants.RRD_FILENAME_FILTER
static java.lang.String RRD_SUFFIX
          Deprecated. Replaced by RrdFileConstants.RRD_SUFFIX
 
Constructor Summary
private GraphUtil()
          Private constructor so this class cannot be instantiated.
 
Method Summary
static boolean isValidRRDName(java.lang.String rrd)
          Deprecated. Replaced by RrdFileConstants.isValidRRDName(java.lang.String)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_RRD_FILENAME_LENGTH

public static final int MAX_RRD_FILENAME_LENGTH
Deprecated. Replaced by RrdFileConstants.MAX_RRD_FILENAME_LENGTH

The longest an RRD filename can be, currently 1024 characters.

See Also:
Constant Field Values

RRD_SUFFIX

public static final java.lang.String RRD_SUFFIX
Deprecated. Replaced by RrdFileConstants.RRD_SUFFIX

Suffix common to all RRD filenames.

See Also:
Constant Field Values

RRD_FILENAME_FILTER

public static final java.io.FilenameFilter RRD_FILENAME_FILTER
Deprecated. Replaced by RrdFileConstants.RRD_FILENAME_FILTER

Convenience filter that matches only RRD files.

Constructor Detail

GraphUtil

private GraphUtil()
Private constructor so this class cannot be instantiated.

Method Detail

isValidRRDName

public static boolean isValidRRDName(java.lang.String rrd)
Deprecated. Replaced by RrdFileConstants.isValidRRDName(java.lang.String)

Checks an RRD filename to make sure it is of the proper length and does not contain any unexpected charaters.

The maximum length is specified by the MAX_RRD_FILENAME_LENGTH constant. The only valid characters are letters (A-Z and a-z), numbers (0-9), dashes (-), dots (-), and underscores (_). These precautions are necessary since the RRD filename is used on the commandline and specified in the graph URL.


OpenNMS API 1.1.3

Generated by root on August 19 2004 0130.