Package org.rapidcontext.app.web
Class StatusWebService
java.lang.Object
org.rapidcontext.core.storage.StorableObject
org.rapidcontext.core.type.WebService
org.rapidcontext.app.web.StatusWebService
- All Implemented Interfaces:
HttpUtil
A status API web service. This service provides a server-side status API
for simple version information.
- Version:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.rapidcontext.util.HttpUtil
HttpUtil.HEADER, HttpUtil.Helper, HttpUtil.METHOD, HttpUtil.STATUS
-
Field Summary
Fields inherited from class org.rapidcontext.core.type.WebService
KEY_DESCRIPTION, KEY_MATCH, matchers, METHODS_GET, METHODS_GET_POST, METHODS_POST, PATH
Fields inherited from class org.rapidcontext.core.storage.StorableObject
dict, KEY_ACTIVATED_TIME, KEY_CLASSNAME, KEY_ID, KEY_TYPE, PREFIX_COMPUTED, PREFIX_HIDDEN
-
Constructor Summary
ConstructorsConstructorDescriptionStatusWebService
(String id, String type, Dict dict) Creates a new status web service from a serialized representation. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Processes an HTTP GET request.protected String[]
methodsImpl
(Request request) Returns the HTTP methods implemented for the specified request.Methods inherited from class org.rapidcontext.core.type.WebService
all, description, doDelete, doHead, doOptions, doPatch, doPost, doPut, doTrace, errorBadRequest, errorForbidden, errorInternal, errorMethodNotAllowed, errorNotFound, errorUnauthorized, headerAllow, init, matchers, methods, process, session
Methods inherited from class org.rapidcontext.core.storage.StorableObject
activate, activatedTime, destroy, id, isActive, isModified, passivate, path, serialize, sterilize, toString, type
-
Constructor Details
-
StatusWebService
Creates a new status web service from a serialized representation.- Parameters:
id
- the object identifiertype
- the object type namedict
- the serialized representation
-
-
Method Details
-
methodsImpl
Returns the HTTP methods implemented for the specified request. The OPTIONS or HEAD methods doesn't have to be added to the result (added automatically later).- Specified by:
methodsImpl
in classWebService
- Parameters:
request
- the request to check- Returns:
- the array of HTTP method names supported
- See Also:
-
doGet
Processes an HTTP GET request.- Overrides:
doGet
in classWebService
- Parameters:
request
- the request to process
-