|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.Handler
org.restlet.resource.Resource
org.hackystat.telemetry.service.resource.telemetry.TelemetryResource
org.hackystat.telemetry.service.resource.ping.PingResource
public class PingResource
The PingResource responds to a GET {host}/ping with the string "Telemetry". It responds to GET {host}/ping?user={user}&password={password} with "Telemetry authenticated" if the user and password are valid, and "Telemetry" if not valid.
Field Summary |
---|
Fields inherited from class org.hackystat.telemetry.service.resource.telemetry.TelemetryResource |
---|
authUser, badAuth, chart, dpdHost, end, granularity, params, projectName, requestStartTime, sensorBaseHost, start, telemetryServer, uriUser |
Constructor Summary | |
---|---|
PingResource(org.restlet.Context context,
org.restlet.data.Request request,
org.restlet.data.Response response)
The standard constructor. |
Method Summary | |
---|---|
org.restlet.resource.Representation |
represent(org.restlet.resource.Variant variant)
Returns the string "DailyProjectData" or "DailyProjectData authenticated", depending upon whether credentials are passed as form parameters and whether they are valid. |
Methods inherited from class org.hackystat.telemetry.service.resource.telemetry.TelemetryResource |
---|
getDailyProjectDataClient, getSensorBaseClient, getStringRepresentation, getTelemetryDefinitions, logRequest, logRequest, setStatusError, setStatusError, setStatusInternalError |
Methods inherited from class org.restlet.resource.Resource |
---|
acceptRepresentation, allowDelete, allowGet, allowPost, allowPut, delete, getPreferredRepresentation, getPreferredVariant, getRepresentation, getVariants, handleDelete, handleGet, handlePost, handlePut, init, isAvailable, isModifiable, isNegotiateContent, isReadable, post, put, removeRepresentations, represent, setAvailable, setModifiable, setNegotiateContent, setReadable, setVariants, storeRepresentation |
Methods inherited from class org.restlet.Handler |
---|
allowHead, allowOptions, generateRef, getAllowedMethods, getApplication, getContext, getLogger, getMatrix, getQuery, getRequest, getResponse, handleHead, handleOptions, setContext, setRequest, setResponse, updateAllowedMethods |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PingResource(org.restlet.Context context, org.restlet.data.Request request, org.restlet.data.Response response)
context
- The context.request
- The request object.response
- The response object.Method Detail |
---|
public org.restlet.resource.Representation represent(org.restlet.resource.Variant variant)
represent
in class TelemetryResource
variant
- The representational variant requested.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |