Hyperic HQ Plugin API v. 4.4.0.2

org.novadeck.jxla.tools
Class Utils

java.lang.Object
  extended by org.novadeck.jxla.tools.Utils

public class Utils
extends java.lang.Object


Field Summary
static java.lang.String UA_BOT
          defines output value representing bot simulating browser
static java.lang.String UA_IE
          defines output value representing Internet Explorer browser
static java.lang.String UA_KONQUEROR
          defines output value representing Konqueror browser
static java.lang.String UA_LYNX
          defines output value representing Lynx browser
static java.lang.String UA_NETBOX
          defines output value representing NetBox ( NetGem Setup Box) browser
static java.lang.String UA_NETSCAPE
          defines output value representing Netscape browser
static java.lang.String UA_OPERA
          defines output value representing Opera browser
static java.lang.String UA_PHP
          defines output value representing php simulating browser
 
Constructor Summary
Utils()
           
 
Method Summary
static boolean canOutputHit(java.lang.String uri)
           
static org.apache.oro.text.regex.Pattern compileRE(java.lang.String regexp)
          Compile a regular expression into pattern
static java.lang.String getUserAgent(java.lang.String s)
           
static boolean isComment(java.lang.String s)
           
static boolean isEmpty(java.lang.String s)
           
static boolean match(java.lang.String str, org.apache.oro.text.regex.Pattern p)
          test if a string match a pattern ( using regexp )
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UA_IE

public static final java.lang.String UA_IE
defines output value representing Internet Explorer browser

See Also:
Constant Field Values

UA_OPERA

public static final java.lang.String UA_OPERA
defines output value representing Opera browser

See Also:
Constant Field Values

UA_KONQUEROR

public static final java.lang.String UA_KONQUEROR
defines output value representing Konqueror browser

See Also:
Constant Field Values

UA_NETSCAPE

public static final java.lang.String UA_NETSCAPE
defines output value representing Netscape browser

See Also:
Constant Field Values

UA_LYNX

public static final java.lang.String UA_LYNX
defines output value representing Lynx browser

See Also:
Constant Field Values

UA_BOT

public static final java.lang.String UA_BOT
defines output value representing bot simulating browser

See Also:
Constant Field Values

UA_PHP

public static final java.lang.String UA_PHP
defines output value representing php simulating browser

See Also:
Constant Field Values

UA_NETBOX

public static final java.lang.String UA_NETBOX
defines output value representing NetBox ( NetGem Setup Box) browser

See Also:
Constant Field Values
Constructor Detail

Utils

public Utils()
Method Detail

compileRE

public static org.apache.oro.text.regex.Pattern compileRE(java.lang.String regexp)
Compile a regular expression into pattern

Parameters:
regexp - the regular expression to convert
Returns:
null if an error ocurres, a regexp compiled else

match

public static boolean match(java.lang.String str,
                            org.apache.oro.text.regex.Pattern p)
test if a string match a pattern ( using regexp )

Parameters:
str - the string to test
p - the pattern to match
Returns:
true or false

isEmpty

public static final boolean isEmpty(java.lang.String s)

isComment

public static final boolean isComment(java.lang.String s)

getUserAgent

public static java.lang.String getUserAgent(java.lang.String s)

canOutputHit

public static final boolean canOutputHit(java.lang.String uri)

Hyperic HQ Plugin API v. 4.4.0.2

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.