org.opengts.war.track.taglib
Class RTConfigTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.opengts.war.track.taglib.RTConfigTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, StringTools.KeyValueMap, Constants

public class RTConfigTag
extends javax.servlet.jsp.tagext.BodyTagSupport
implements Constants, StringTools.KeyValueMap

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface org.opengts.war.track.Constants
_DEFAULT_BASE_URI, COMMAND_LOGOUT, DEFAULT_ATTACH_URI, DEFAULT_BASE_URI, DEFAULT_DEMO_LOGIN_URI, DEFAULT_MARKER_URI, FORM_COMMAND, FORM_COMMAND_CSV, FORM_MONTH_CHG, LAST_GEOCODE_ADDRESS, LAST_GEOCODE_CACHE, LAST_GEOCODE_LATITUDE, LAST_GEOCODE_LONGITUDE, LAST_REVERSEGEOCODE, PAGE_ACCOUNT_INFO, PAGE_ACCOUNT_NEW, PAGE_ALERT_PANEL, PAGE_CODE_INFO, PAGE_CORRIDOR_INFO, PAGE_DEVICE_ALERTS, PAGE_DEVICE_INFO, PAGE_DEVICE_PROPS, PAGE_DRIVER_INFO, PAGE_ENTITY_INFO, PAGE_GROUP_INFO, PAGE_HTML_WRAP, PAGE_J1587_SHOW, PAGE_LAF_INFO, PAGE_LOGIN, PAGE_MAP_DEVICE, PAGE_MAP_FLEET, PAGE_MENU_REPORT, PAGE_MENU_RPT_DEVDETAIL, PAGE_MENU_RPT_GRPDETAIL, PAGE_MENU_RPT_GRPSUMMRY, PAGE_MENU_RPT_IFTA, PAGE_MENU_RPT_PERFORM, PAGE_MENU_RPT_SYSADMIN, PAGE_MENU_TOP, PAGE_OFFLINE, PAGE_PASSWD, PAGE_PASSWD_EMAIL, PAGE_REPORT_SHOW, PAGE_ROLE_INFO, PAGE_RPTJOB_ADMIN, PAGE_RULE_INFO, PAGE_SYSADMIN_ACCOUNTS, PAGE_SYSADMIN_DEVICES, PAGE_SYSADMIN_INFO, PAGE_SYSPROP_ADMIN, PAGE_USER_INFO, PAGE_WORKORDER_INFO, PAGE_WORKZONE_INFO, PAGE_ZONE_INFO, PARM_ACCOUNT, PARM_ACCOUNT_A, PARM_DEVICE, PARM_DEVICE_COMMAND, PARM_ENCPASS, PARM_GROUP, PARM_LOCALE, PARM_MAP_LIMIT, PARM_MAP_LIMIT_TYPE, PARM_PASSWORD, PARM_PASSWORD_A, PARM_REGION, PARM_REQSTATE, PARM_RESTOREPW, PARM_RULE, PARM_SA_RELOGIN, PARM_SA_RELOGIN_ACCT, PARM_SA_RELOGIN_SESS, PARM_SA_RELOGIN_USER, PARM_USER, PARM_USER_A, PARM_USEREMAIL
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
RTConfigTag()
           
 
Method Summary
 int doAfterBody()
          Invoked after body content is evaluated
 int doEndTag()
          Tag handler override May return: EVAL_PAGE SKIP_PAGE
 void doInitBody()
          Invoked before the body of the tag is evaluated but after body content is set
 int doStartTag()
          Tag handler override May return: EVAL_BODY_INCLUDE (only if BodyTag interface NOT implemented) EVAL_BODY_TAG (only if BodyTag interface IS implemented) EVAL_BODY_BUFFERED SKIP_BODY
 java.lang.String getAndFalse()
          Gets the "andFalse" attribute
 java.lang.String getAndKey()
          Gets the "andKey" attribute
 java.lang.String getAndTrue()
          Gets the "andTrue" attribute
 java.lang.String getAttributeValue(java.lang.String key, java.lang.String dft)
          Gets the Session attribute for the specified key
 java.lang.String getCompare()
          Gets the "compare" type
 java.lang.String getCompare(java.lang.String dft)
          Gets the "compare" type
 java.lang.String getIf()
          Gets the "if" attribute
 java.lang.String getIfDefined()
          Gets the "ifDefined" attribute
 java.lang.String getIfElse()
          Gets the "ifElse" attribute
 java.lang.String getIfElseKey()
          Gets the "ifElseKey" attribute
 java.lang.String getIfFalse()
          Gets the "ifFalse" attribute
 java.lang.String getIfKey()
          Gets the "ifKey" attribute
 java.lang.String getIfTrue()
          Gets the "ifTrue" attribute
 java.lang.String getKeyValue(java.lang.String key, java.lang.String arg, java.lang.String dft)
           
 java.lang.String getOrFalse()
          Gets the "orFalse" attribute
 java.lang.String getOrKey()
          Gets the "orKey" attribute
 java.lang.String getOrTrue()
          Gets the "orTrue" attribute
 java.lang.String getValue()
          Gets the comparison value
 java.lang.String getValue(java.lang.String dft)
          Gets the comparison value
 boolean hasElse()
          Returns true if an 'else' exists
 boolean isMatch()
          Returns true if the attribute key matches the current comparison value, based on the comparison type.
 void release()
          Release resources
 void setAndFalse(java.lang.String k)
          Sets the "andFalse" attribute
 void setAndTrue(java.lang.String k)
          Sets the "andTrue" attribute
 void setBodyContent(javax.servlet.jsp.tagext.BodyContent body)
           
 void setCompare(java.lang.String comp)
          Sets the "compare" type
 void setIf(java.lang.String k)
          Sets the "if" attribute
 void setIfDefined(java.lang.String k)
          Sets the "ifDefined" attribute
 void setIfElse(java.lang.String k)
          Sets the "ifElseKey" attribute
 void setIfElseKey(java.lang.String k)
          Sets the "ifElseKey" attribute
 void setIfFalse(java.lang.String k)
          Sets the "ifFalse" attribute
 void setIfKey(java.lang.String k)
          Sets the "ifKey" attribute
 void setIfTrue(java.lang.String k)
          Sets the "ifTrue" attribute
 void setOrFalse(java.lang.String k)
          Sets the "orFalse" attribute
 void setOrTrue(java.lang.String k)
          Sets the "orTrue" attribute
 void setValue(java.lang.String val)
          Sets the comparison value
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
getBodyContent, getPreviousOut
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

RTConfigTag

public RTConfigTag()
Method Detail

getIfKey

public java.lang.String getIfKey()
Gets the "ifKey" attribute

Returns:
The "ifKey" attribute

getIf

public java.lang.String getIf()
Gets the "if" attribute

Returns:
The "if" attribute

getIfDefined

public java.lang.String getIfDefined()
Gets the "ifDefined" attribute

Returns:
The "ifDefined" attribute

getIfTrue

public java.lang.String getIfTrue()
Gets the "ifTrue" attribute

Returns:
The "ifTrue" attribute

getIfFalse

public java.lang.String getIfFalse()
Gets the "ifFalse" attribute

Returns:
The "ifFalse" attribute

setIfKey

public void setIfKey(java.lang.String k)
Sets the "ifKey" attribute

Parameters:
k - The "ifKey" attribute value

setIf

public void setIf(java.lang.String k)
Sets the "if" attribute

Parameters:
k - The "if" attribute value

setIfDefined

public void setIfDefined(java.lang.String k)
Sets the "ifDefined" attribute

Parameters:
k - The "ifDefined" attribute value

setIfTrue

public void setIfTrue(java.lang.String k)
Sets the "ifTrue" attribute

Parameters:
k - The "ifTrue" attribute value

setIfFalse

public void setIfFalse(java.lang.String k)
Sets the "ifFalse" attribute

Parameters:
k - The "ifFalse" attribute value

getIfElseKey

public java.lang.String getIfElseKey()
Gets the "ifElseKey" attribute

Returns:
The "ifElseKey" attribute

getIfElse

public java.lang.String getIfElse()
Gets the "ifElse" attribute

Returns:
The "ifElse" attribute

setIfElseKey

public void setIfElseKey(java.lang.String k)
Sets the "ifElseKey" attribute

Parameters:
k - The "ifElseKey" attribute value

setIfElse

public void setIfElse(java.lang.String k)
Sets the "ifElseKey" attribute

Parameters:
k - The "ifElseKey" attribute value

hasElse

public boolean hasElse()
Returns true if an 'else' exists

Returns:
True is an 'else' exists

getAndKey

public java.lang.String getAndKey()
Gets the "andKey" attribute

Returns:
The "andKey" attribute

getAndTrue

public java.lang.String getAndTrue()
Gets the "andTrue" attribute

Returns:
The "andTrue" attribute

setAndTrue

public void setAndTrue(java.lang.String k)
Sets the "andTrue" attribute

Parameters:
k - The "andTrue" attribute value

getAndFalse

public java.lang.String getAndFalse()
Gets the "andFalse" attribute

Returns:
The "andFalse" attribute

setAndFalse

public void setAndFalse(java.lang.String k)
Sets the "andFalse" attribute

Parameters:
k - The "andFalse" attribute value

getOrKey

public java.lang.String getOrKey()
Gets the "orKey" attribute

Returns:
The "orKey" attribute

getOrTrue

public java.lang.String getOrTrue()
Gets the "orTrue" attribute

Returns:
The "orTrue" attribute

setOrTrue

public void setOrTrue(java.lang.String k)
Sets the "orTrue" attribute

Parameters:
k - The "orTrue" attribute value

getOrFalse

public java.lang.String getOrFalse()
Gets the "orFalse" attribute

Returns:
The "orFalse" attribute

setOrFalse

public void setOrFalse(java.lang.String k)
Sets the "orFalse" attribute

Parameters:
k - The "orFalse" attribute value

getAttributeValue

public java.lang.String getAttributeValue(java.lang.String key,
                                          java.lang.String dft)
Gets the Session attribute for the specified key

Parameters:
key - The attribute key
dft - The default value
Returns:
The value for the specified key

getKeyValue

public java.lang.String getKeyValue(java.lang.String key,
                                    java.lang.String arg,
                                    java.lang.String dft)
Specified by:
getKeyValue in interface StringTools.KeyValueMap

getCompare

public java.lang.String getCompare(java.lang.String dft)
Gets the "compare" type

Returns:
The "compare" type

getCompare

public java.lang.String getCompare()
Gets the "compare" type

Returns:
The "compare" type

setCompare

public void setCompare(java.lang.String comp)
Sets the "compare" type

Parameters:
comp - The "compare" type

getValue

public java.lang.String getValue(java.lang.String dft)
Gets the comparison value

Overrides:
getValue in class javax.servlet.jsp.tagext.TagSupport
Parameters:
dft - The default returned value if the comparison value has not been defined
Returns:
The comparison value

getValue

public java.lang.String getValue()
Gets the comparison value

Returns:
The comparison value

setValue

public void setValue(java.lang.String val)
Sets the comparison value

Parameters:
val - The comparison value

isMatch

public boolean isMatch()
Returns true if the attribute key matches the current comparison value, based on the comparison type.


doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspTagException
Tag handler override May return: EVAL_BODY_INCLUDE (only if BodyTag interface NOT implemented) EVAL_BODY_TAG (only if BodyTag interface IS implemented) EVAL_BODY_BUFFERED SKIP_BODY

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspTagException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspTagException
Tag handler override May return: EVAL_PAGE SKIP_PAGE

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspTagException

setBodyContent

public void setBodyContent(javax.servlet.jsp.tagext.BodyContent body)
Specified by:
setBodyContent in interface javax.servlet.jsp.tagext.BodyTag
Overrides:
setBodyContent in class javax.servlet.jsp.tagext.BodyTagSupport

doInitBody

public void doInitBody()
                throws javax.servlet.jsp.JspException
Invoked before the body of the tag is evaluated but after body content is set

Specified by:
doInitBody in interface javax.servlet.jsp.tagext.BodyTag
Overrides:
doInitBody in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Invoked after body content is evaluated

Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

release

public void release()
Release resources

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.BodyTagSupport