Class LogWebService

All Implemented Interfaces:
HttpUtil

public class LogWebService extends WebService
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
  • Constructor Details

    • LogWebService

      public LogWebService(String id, String type, Dict dict)
      Creates a new file web service from a serialized representation.
      Parameters:
      id - the object identifier
      type - the object type name
      dict - the serialized representation
  • Method Details

    • methodsImpl

      protected String[] methodsImpl(Request request)
      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 class WebService
      Parameters:
      request - the request to check
      Returns:
      the array of HTTP method names supported
      See Also:
    • doGet

      protected void doGet(Request request)
      Processes an HTTP GET request.
      Overrides:
      doGet in class WebService
      Parameters:
      request - the request to process
    • doPost

      protected void doPost(Request request)
      Processes an HTTP POST request.
      Overrides:
      doPost in class WebService
      Parameters:
      request - the request to process