|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.opengts.war.tools.CommonServlet org.opengts.war.ctracgts.Data
public class Data
Nested Class Summary | |
---|---|
static class |
Data.MethodState
|
Field Summary | |
---|---|
static boolean |
ALLOW_MULTI_MOBILE_POST
|
static java.lang.String[] |
APP_LATEST_VERSIONS
|
static java.lang.String |
COMPILE_DATETIME
|
static long |
COMPILE_TIMESTAMP
|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
CUSTOM_COMMAND_HANDLER
|
static boolean |
DEBUG_MODE
|
static java.lang.String[] |
DEFAULT_UNIQUE_ID_PREFIX
|
static boolean |
ENABLE_ACCOUNT_LOGIN
|
static boolean |
ENABLED_GET
|
static boolean |
ENABLED_POST
|
static boolean |
ESTIMATE_ODOMETER
|
static java.util.TimeZone |
GMT
|
static long |
GTC_DORMANT_INTERVAL
|
static java.lang.String[] |
GTC_IMPROMPTU_STATUS_CODES
|
static java.lang.String[] |
GTC_LATEST_VERSIONS
|
static long |
GTC_MIN_XMIT_INTERVAL
|
static long |
GTC_MOVING_INTERVAL
|
static boolean |
IGNORE_INVALID_GPS_FLAG
|
static double |
MAXIMUM_ACCURACY_METERS
|
static double |
MAXIMUM_HDOP
|
static long |
MIN_TIMESTAMP
|
static double |
MINIMUM_MOVED_METERS
|
static double |
MINIMUM_SPEED_KPH
|
static double |
PARK_RADIUS_DEFAULT
|
static double |
PARK_RADIUS_MINIMUM
|
static double |
PARK_RADIUS_WIDE
|
static double |
PARK_SPEED_DEFAULT
|
static java.lang.String |
RESPV_ACCOUNT
|
static java.lang.String |
RESPV_DEVICE
|
static java.lang.String |
RESPV_EC
|
static java.lang.String |
RESPV_MP
|
static java.lang.String |
RESPV_NEWAPP
|
static java.lang.String |
RESPV_NEWGTC
|
static java.lang.String |
RESPV_VER
|
static java.lang.String |
SERVICE_ID
|
static boolean |
SHOW_URL
|
static boolean |
SIMEVENT_GEOZONES
|
static java.lang.String[] |
UNIQUE_ID_PREFIX
|
static boolean |
XLATE_LOCATON_INMOTION
|
Constructor Summary | |
---|---|
Data()
|
Method Summary | |
---|---|
static java.lang.String |
DCProp(java.lang.String key)
Normalize property key |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
"GET" |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handling incoming "POST" |
void |
init()
init |
static boolean |
IsDisabled(Data.MethodState ms)
|
static boolean |
IsEnabled(Data.MethodState ms)
|
static boolean |
IsRTPOnly(Data.MethodState ms)
|
static Device |
LoadDevice(javax.servlet.http.HttpServletResponse response,
java.lang.String respType,
java.lang.String ipAddr,
java.lang.String authPin,
java.lang.String mobileID,
java.lang.String accountID,
java.lang.String userID,
java.lang.String deviceID)
Returns the Device record for the specified parameters |
static void |
main(java.lang.String[] argv)
|
static boolean |
MS_ENABLED_GET()
|
static boolean |
MS_ENABLED_POST()
|
static Data.MethodState |
ParseMethodState(java.lang.String val)
Returns a MethodState enum based on the specified String representation |
static void |
WritePlainTextResponse(javax.servlet.http.HttpServletResponse response,
java.lang.String respMsg)
Send plain text response |
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, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COMPILE_DATETIME
public static final long COMPILE_TIMESTAMP
public static final java.lang.String COPYRIGHT
public static final java.lang.String SERVICE_ID
public static boolean DEBUG_MODE
public static boolean SHOW_URL
public static boolean ENABLED_GET
public static boolean ENABLED_POST
public static final java.lang.String[] DEFAULT_UNIQUE_ID_PREFIX
public static java.lang.String[] UNIQUE_ID_PREFIX
public static double MINIMUM_SPEED_KPH
public static boolean ESTIMATE_ODOMETER
public static boolean SIMEVENT_GEOZONES
public static double MINIMUM_MOVED_METERS
public static double MAXIMUM_HDOP
public static double MAXIMUM_ACCURACY_METERS
public static boolean XLATE_LOCATON_INMOTION
public static boolean IGNORE_INVALID_GPS_FLAG
public static boolean ENABLE_ACCOUNT_LOGIN
public static java.lang.String[] GTC_IMPROMPTU_STATUS_CODES
public static boolean ALLOW_MULTI_MOBILE_POST
public static java.lang.String CUSTOM_COMMAND_HANDLER
public static double PARK_RADIUS_MINIMUM
public static double PARK_RADIUS_DEFAULT
public static double PARK_RADIUS_WIDE
public static double PARK_SPEED_DEFAULT
public static long GTC_MIN_XMIT_INTERVAL
public static long GTC_MOVING_INTERVAL
public static long GTC_DORMANT_INTERVAL
public static java.lang.String[] GTC_LATEST_VERSIONS
public static java.lang.String[] APP_LATEST_VERSIONS
public static final long MIN_TIMESTAMP
public static final java.util.TimeZone GMT
public static final java.lang.String RESPV_VER
public static final java.lang.String RESPV_ACCOUNT
public static final java.lang.String RESPV_DEVICE
public static final java.lang.String RESPV_EC
public static final java.lang.String RESPV_MP
public static final java.lang.String RESPV_NEWAPP
public static final java.lang.String RESPV_NEWGTC
Constructor Detail |
---|
public Data()
Method Detail |
---|
public static java.lang.String DCProp(java.lang.String key)
public static boolean MS_ENABLED_GET()
public static boolean MS_ENABLED_POST()
public static Data.MethodState ParseMethodState(java.lang.String val)
public static boolean IsDisabled(Data.MethodState ms)
public static boolean IsEnabled(Data.MethodState ms)
public static boolean IsRTPOnly(Data.MethodState ms)
public static void WritePlainTextResponse(javax.servlet.http.HttpServletResponse response, java.lang.String respMsg) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public static Device LoadDevice(javax.servlet.http.HttpServletResponse response, java.lang.String respType, java.lang.String ipAddr, java.lang.String authPin, java.lang.String mobileID, java.lang.String accountID, java.lang.String userID, java.lang.String deviceID) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |