org.opengts.war.track
Class Track

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.opengts.war.tools.CommonServlet
              extended by org.opengts.war.track.Track
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, Constants

public class Track
extends CommonServlet
implements Constants

See Also:
Serialized Form

Field Summary
static java.lang.String COMMAND_DEVICE_LIST
           
static java.lang.String DATA_RESPONSE_ERROR
           
static java.lang.String DATA_RESPONSE_LOGOUT
           
static java.lang.String DATA_RESPONSE_PING_ERROR
           
static java.lang.String DATA_RESPONSE_PING_OK
           
static java.lang.String PAGE_AUTHENTICATE
           
static java.lang.String PAGE_COPYRIGHT
           
static java.lang.String PAGE_DEBUG_PUSHPINS
           
static java.lang.String PAGE_GEOCODE
           
static java.lang.String PAGE_LOGINFRAME
           
static java.lang.String PAGE_RELOAD
           
static java.lang.String PAGE_REVERSEGEOCODE
           
static java.lang.String PAGE_RULE_EVAL
           
static java.lang.String PAGE_RUNSTATE
           
static java.lang.String PAGE_STATISTICS
           
static java.lang.String PAGE_VERSION
           
 
Fields inherited from class org.opengts.war.tools.CommonServlet
CSS_ADMIN_COMBO_BOX, CSS_ADMIN_SELECT_TABLE, CSS_ADMIN_SELECT_TITLE, CSS_ADMIN_TABLE_BODY_COL, CSS_ADMIN_TABLE_BODY_COL_SEL, CSS_ADMIN_TABLE_BODY_ROW_EVEN, CSS_ADMIN_TABLE_BODY_ROW_ODD, CSS_ADMIN_TABLE_HEADER_COL, CSS_ADMIN_TABLE_HEADER_COL_NS, CSS_ADMIN_TABLE_HEADER_COL_SEL, CSS_ADMIN_TABLE_HEADER_ROW, CSS_ADMIN_VIEW_TABLE, CSS_ADMIN_VIEW_TABLE_DATA, CSS_ADMIN_VIEW_TABLE_HEADER, CSS_ADMIN_VIEW_TABLE_TEXTAREA, CSS_CONTENT_FRAME, CSS_CONTENT_MAP, CSS_CONTENT_MAP_FULL, CSS_CONTENT_MENU, CSS_CONTENT_MESSAGE, CSS_MENU_DESCRIPTION, CSS_MENU_INSTRUCTIONS, CSS_MENU_TITLE, CSS_MENUBAR_OK, CSS_MESSAGE, CSS_TEXT_INPUT, CSS_TEXT_ONCLICK, CSS_TEXT_READONLY, CSS_TEXTAREA_INPUT, CSS_TEXTAREA_READONLY, DEFAULT_HOST_PROPERTIES_ID, HOST_PROPERTIES, HOST_PROPERTIES_ID, ID_CONTENT_MESSAGE, PARM_ARGUMENT, PARM_COMMAND, PARM_CONTENT, PARM_LOCALE, PARM_PAGE, SECTION_BANNER_IMAGE, SECTION_BANNER_IMAGE_HEIGHT, SECTION_BANNER_IMAGE_SOURCE, SECTION_BANNER_IMAGE_WIDTH, SECTION_BANNER_STYLE, SECTION_BANNER_WIDTH, SECTION_BODY_ONLOAD, SECTION_BODY_ONUNLOAD, SECTION_CONTENT_BODY, SECTION_CONTENT_CLASS_CELL, SECTION_CONTENT_CLASS_MESSAGE, SECTION_CONTENT_CLASS_TABLE, SECTION_CONTENT_HTML, SECTION_CONTENT_ID_MESSAGE, SECTION_CONTENT_MENUBAR, SECTION_CONTENT_MESSAGE, SECTION_CSSFILE, SECTION_JAVASCRIPT, SECTION_NAVIGATION, SECTION_PAGE_NAME, SECTION_PAGE_URL, SECTION_REQUESTPROPS, SECTION_STYLESHEET
 
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
 
Constructor Summary
Track()
           
 
Method Summary
protected static java.io.File _resolveFile(java.lang.String fileName)
           
protected static void _writeFile(javax.servlet.http.HttpServletResponse response, java.io.File file)
           
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static java.lang.String GetBaseURL(RequestProperties reqState)
           
static long GetInitializedTime()
           
static void main(java.lang.String[] argv)
           
static void setDisplayRequest(boolean display)
           
static void writeErrorResponse(RequestProperties reqState, java.lang.String errMsg)
           
static void writeMessageResponse(RequestProperties reqState, java.lang.String msg)
           
 
Methods inherited from class org.opengts.war.tools.CommonServlet
println, setResponseContentType, setResponseContentType, writeHTML, writePageFrame, writePageFrame
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_RESPONSE_LOGOUT

public static final java.lang.String DATA_RESPONSE_LOGOUT
See Also:
Constant Field Values

DATA_RESPONSE_ERROR

public static final java.lang.String DATA_RESPONSE_ERROR
See Also:
Constant Field Values

DATA_RESPONSE_PING_OK

public static final java.lang.String DATA_RESPONSE_PING_OK
See Also:
Constant Field Values

DATA_RESPONSE_PING_ERROR

public static final java.lang.String DATA_RESPONSE_PING_ERROR
See Also:
Constant Field Values

COMMAND_DEVICE_LIST

public static final java.lang.String COMMAND_DEVICE_LIST
See Also:
Constant Field Values

PAGE_LOGINFRAME

public static final java.lang.String PAGE_LOGINFRAME
See Also:
Constant Field Values

PAGE_RELOAD

public static final java.lang.String PAGE_RELOAD
See Also:
Constant Field Values

PAGE_COPYRIGHT

public static final java.lang.String PAGE_COPYRIGHT
See Also:
Constant Field Values

PAGE_VERSION

public static final java.lang.String PAGE_VERSION
See Also:
Constant Field Values

PAGE_RUNSTATE

public static final java.lang.String PAGE_RUNSTATE
See Also:
Constant Field Values

PAGE_STATISTICS

public static final java.lang.String PAGE_STATISTICS
See Also:
Constant Field Values

PAGE_REVERSEGEOCODE

public static final java.lang.String PAGE_REVERSEGEOCODE
See Also:
Constant Field Values

PAGE_GEOCODE

public static final java.lang.String PAGE_GEOCODE
See Also:
Constant Field Values

PAGE_AUTHENTICATE

public static final java.lang.String PAGE_AUTHENTICATE
See Also:
Constant Field Values

PAGE_RULE_EVAL

public static final java.lang.String PAGE_RULE_EVAL
See Also:
Constant Field Values

PAGE_DEBUG_PUSHPINS

public static final java.lang.String PAGE_DEBUG_PUSHPINS
See Also:
Constant Field Values
Constructor Detail

Track

public Track()
Method Detail

setDisplayRequest

public static void setDisplayRequest(boolean display)

GetInitializedTime

public static long GetInitializedTime()

GetBaseURL

public static java.lang.String GetBaseURL(RequestProperties reqState)

_resolveFile

protected static java.io.File _resolveFile(java.lang.String fileName)

_writeFile

protected static void _writeFile(javax.servlet.http.HttpServletResponse response,
                                 java.io.File file)
                          throws java.io.IOException
Throws:
java.io.IOException

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws javax.servlet.ServletException,
                   java.io.IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

writeMessageResponse

public static void writeMessageResponse(RequestProperties reqState,
                                        java.lang.String msg)
                                 throws java.io.IOException
Throws:
java.io.IOException

writeErrorResponse

public static void writeErrorResponse(RequestProperties reqState,
                                      java.lang.String errMsg)
                               throws java.io.IOException
Throws:
java.io.IOException

main

public static void main(java.lang.String[] argv)
                 throws java.io.IOException
Throws:
java.io.IOException