Package org.torproject.metrics.web
Class TableParameterChecker
- java.lang.Object
-
- org.torproject.metrics.web.TableParameterChecker
-
public class TableParameterChecker extends java.lang.Object
Checks request parameters passed to generate tables.
-
-
Constructor Summary
Constructors Constructor Description TableParameterChecker()
Initializes map with valid parameters for each of the graphs.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String[]>
checkParameters(java.lang.String tableType, java.util.Map<java.lang.String,java.lang.String[]> requestParameters)
Checks request parameters for the given table type and returns a map of recognized parameters, or null if the table type doesn't exist or the parameters are invalid.static TableParameterChecker
getInstance()
Returns the singleton instance of this class.
-
-
-
Method Detail
-
getInstance
public static TableParameterChecker getInstance()
Returns the singleton instance of this class.
-
checkParameters
public java.util.Map<java.lang.String,java.lang.String[]> checkParameters(java.lang.String tableType, java.util.Map<java.lang.String,java.lang.String[]> requestParameters)
Checks request parameters for the given table type and returns a map of recognized parameters, or null if the table type doesn't exist or the parameters are invalid.
-
-