Class ServiceRequestHandler

  • All Implemented Interfaces:
    RequestHandler

    public class ServiceRequestHandler
    extends Object
    implements RequestHandler
    A RequestHandler which handles HttpServletRequests for different types of services.
    The schema for a complete path to a service is

    <site-domain>/<service-path>/<site-name>/<application-name>/<service-type/<service-name>/<additional-params>

    The service-path is configurable, see SiteProperties.SERVICE_PATH.
    Supported service-types are:
    • webservice
      Used for calling a Webservice or AttachmentWebservice.
      Example:
      • http://localhost:8080/service/manager/appng-manager/webservice/logViewer<get-params>
    • datasource
      Used for calling a datasource provided by a Application.
      Provides different formats: json,xml and html.
      Examples:
      • http://localhost:8080/service/manager/appng-manager/datasource/xml/sites
      • http://localhost:8080/service/manager/appng-manager/datasource/json/sites
    • action
      Used for calling an action provided by a Application.
      Provides different formats: json,xml and html.
      Examples:
      • http://localhost:8080/service/manager/appng-manager/action/xml/siteEvent/create?form_action=create
      • http://localhost:8080/service/manager/appng-manager/action/json/siteEvent/create?form_action=create
    • soap
      Used for calling a SoapService provided by a Application.
      Example (GET for the wsdl):
      • http://localhost:8080/service/manager/appng-demoapplication/soap/PersonService/PersonService.wsdl
      POST for the SOAP-Request:
      • http://localhost:8080/service/manager/appng-demoapplication/soap/PersonService
    • rest
      Used for addressing a RestController offered by an Application
      Example:
      • http://localhost:8080/service/manager/appng-manager/rest/sites
      • http://localhost:8080/service/manager/appng-manager/rest/site/1
    Author:
    Matthias Müller