com.ptc.netmarkets.rule
Class NmRuleHelper

java.lang.Object
  extended bycom.ptc.netmarkets.rule.NmRuleHelper

public class NmRuleHelper
extends Object



Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
static int MAX_XML_LENGTH
          The maximum length, in bytes, of an XML file that is used as the specification of a rule.
static String NAME
          The name of the query param used for the rule name.
static String OBJ_TYPE
          The name of the query param used for the object type.
static String OID
          The name of the URL query param that holds the oid of the container.
private static String RESOURCE
           
static String RULE_TYPE
          The name of the query param used for the rule type.
static NmRuleService service
          

Supported API: false
static String UPLOAD_FILE
          The name of the parameter used for the filename of the name of the temporary file that contains uploaded XML data.
static boolean VERBOSE
           
static String XML_FILE
          The name of the query param used for the xml file.
 
Constructor Summary
NmRuleHelper()
           
 
Method Summary
static Hashtable getRequestParams(NmCommandBean cb)
          Extracts the parameters of a command bean's request in the form of a hashtable.
static void printRequestParameters(Hashtable params)
          Print out the request parameters contained in the hashtable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

NAME

public static final String NAME
The name of the query param used for the rule name.

Supported API: false

See Also:
Constant Field Values

RULE_TYPE

public static final String RULE_TYPE
The name of the query param used for the rule type.

Supported API: false

See Also:
Constant Field Values

XML_FILE

public static final String XML_FILE
The name of the query param used for the xml file.

Supported API: false

See Also:
Constant Field Values

OBJ_TYPE

public static final String OBJ_TYPE
The name of the query param used for the object type.

Supported API: false

See Also:
Constant Field Values

OID

public static final String OID
The name of the URL query param that holds the oid of the container.

Supported API: false

See Also:
Constant Field Values

MAX_XML_LENGTH

public static final int MAX_XML_LENGTH
The maximum length, in bytes, of an XML file that is used as the specification of a rule. This is used prevent denial of service attacks that are perpetrated by uploading very large files to the server.

Supported API: false


UPLOAD_FILE

public static final String UPLOAD_FILE
The name of the parameter used for the filename of the name of the temporary file that contains uploaded XML data.

Supported API: false

See Also:
Constant Field Values

service

public static final NmRuleService service


Supported API: false


VERBOSE

public static final boolean VERBOSE
Constructor Detail

NmRuleHelper

public NmRuleHelper()
Method Detail

getRequestParams

public static Hashtable getRequestParams(NmCommandBean cb)
Extracts the parameters of a command bean's request in the form of a hashtable.

Supported API: false

Parameters:
cb -
Returns:
Hashtable

printRequestParameters

public static final void printRequestParameters(Hashtable params)
Print out the request parameters contained in the hashtable.