|
Sleepbot.com Java Classes | |||||||||
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 com.sleepbot.WRLDtime.app.WRLDtimeServlet
A simple HTTP servlet that returns the current WRLD.time.
The servlet maintains a 4-digit WRLD.time code -- measure, separator and beat -- and responds with a formatted number.
See the Param* documentation for the ways to configure the response format.
The servlet will only recognize GET parameters.
The servlet periodically aligns itself (via UTC) to one of the time.nist.gov
servers.
For more information, please see the general documentation at Sleepbot.com.
version 1.3 - 02Jan05 - Daniel M Foley
Field Summary | |
static int |
ErrorBEAT
|
static int |
ErrorGENERIC
|
static int |
ErrorMEASURE
|
static int |
ErrorNONE
|
static java.lang.String |
ParamBEAT
The &beat= parameter. |
static java.lang.String |
ParamDELIMITER
The &delimiter= parameter. |
static java.lang.String |
ParamFORMAT
The &format= parameter. |
static java.lang.String |
ParamMEASURE
The &measure= parameter. |
static java.lang.String |
ParamPADDING
The &padding= parameter. |
static java.lang.String |
ParamTEXTAFTER
The &textafter= parameter. |
static java.lang.String |
ParamTEXTBEFORE
The &textbefore= parameter. |
static java.lang.String |
ParamTEXTTYPE
The &texttype= parameter. |
static java.lang.String |
ValueBEAT_DEFAULT
|
static java.lang.String |
ValueDELIMITER_DEFAULT
|
static java.lang.String |
ValueMEASURE_DEFAULT
|
static java.lang.String |
ValuePADDING_DEFAULT
The 'default' &padding= parameter (ParamPADDING ) setting. |
static java.lang.String |
ValuePADDING_NO
The 'no' &padding= parameter (ParamPADDING ) setting. |
static java.lang.String |
ValuePADDING_YES
The 'yes' &padding= parameter (ParamPADDING ) setting. |
static java.lang.String |
ValueTEXTTYPE_DEFAULT
|
Constructor Summary | |
WRLDtimeServlet()
|
Method Summary | |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
The GET request processor for the servlet. |
void |
init()
The initialization for the servlet. |
void |
run()
The maintenance thread for the servlet. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doOptions, doPost, 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 ParamFORMAT
&format=
parameter.
ParamBEAT
and ParamMEASURE
for more information.
public static final java.lang.String ParamMEASURE
&measure=
parameter.
ParamPADDING
).
The default value is 2; the maximum value is 2.
public static final java.lang.String ParamBEAT
&beat=
parameter.
ParamPADDING
).
The default value is 2; the maximum value is 5 (which is milli-beat precision).
public static final java.lang.String ParamPADDING
&padding=
parameter.
ValuePADDING_YES
and ValuePADDING_NO
.
The default value is ValuePADDING_DEFAULT
.
public static final java.lang.String ParamDELIMITER
&delimiter=
parameter.
public static final java.lang.String ParamTEXTBEFORE
&textbefore=
parameter.
public static final java.lang.String ParamTEXTAFTER
&textafter=
parameter.
public static final java.lang.String ParamTEXTTYPE
&texttype=
parameter.
public static final java.lang.String ValuePADDING_DEFAULT
'default' &padding=
parameter (ParamPADDING
) setting.
public static final java.lang.String ValuePADDING_YES
'yes' &padding=
parameter (ParamPADDING
) setting.
public static final java.lang.String ValuePADDING_NO
'no' &padding=
parameter (ParamPADDING
) setting.
public static final java.lang.String ValueBEAT_DEFAULT
public static final java.lang.String ValueMEASURE_DEFAULT
public static final java.lang.String ValueDELIMITER_DEFAULT
public static final java.lang.String ValueTEXTTYPE_DEFAULT
public static final int ErrorNONE
public static final int ErrorGENERIC
public static final int ErrorBEAT
public static final int ErrorMEASURE
Constructor Detail |
public WRLDtimeServlet()
Method Detail |
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, java.io.IOException
com.sleepbot.WRLDtime.app.*
package is WRLDtimeApplet
.
javax.servlet.ServletException
java.io.IOException
public void init()
WRLDcron
chronometer
public void run()
run
in interface java.lang.Runnable
|
Sleepbot.com Java Classes | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |