Package org.rapidcontext.app.web
Class LogWebService
java.lang.Object
org.rapidcontext.core.storage.StorableObject
org.rapidcontext.core.type.WebService
org.rapidcontext.app.web.LogWebService
- All Implemented Interfaces:
HttpUtil
A logging API web service. This service is used for server-side logging of
client-side events. The request parameters "level", "message" and "data"
are used to create the log entry. One or more log events can also be sent
as JSON (using "appliction/json" MIME type for HTTP POST). Either as single
object or an array or objects are supported. The JSON objects use the same
"level", "message" and "data" properties.
- 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
ConstructorsConstructorDescriptionLogWebService
(String id, String type, Dict dict) Creates a new file web service from a serialized representation. -
Method Summary
Methods inherited from class org.rapidcontext.core.type.WebService
all, description, doDelete, doHead, doOptions, doPatch, 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
-
LogWebService
Creates a new file 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
-
doPost
Processes an HTTP POST request.- Overrides:
doPost
in classWebService
- Parameters:
request
- the request to process
-