Class DalWebService

    • Constructor Detail

      • DalWebService

        public DalWebService()
    • Method Detail

      • doGet

        public void doGet​(String path,
                          javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws Exception
        Performs the GET REST operation. This service handles multiple types of request: the request for the XML Schema of the REST webservices, a single Business Object and a list of Business Objects is handled. The HttpRequest parameter 'template' makes it possible to process the XML result through a XSLT stylesheet.
        Specified by:
        doGet in interface WebService
        Parameters:
        path - the HttpRequest.getPathInfo(), the part of the url after the context path
        request - the HttpServletRequest
        response - the HttpServletResponse
        Throws:
        Exception
      • doPost

        public void doPost​(String path,
                           javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
        The POSt action corresponds to an import (of XML) of new Business Objects.
        Specified by:
        doPost in interface WebService
        Parameters:
        path - the HttpRequest.getPathInfo(), the part of the url after the context path
        request - the HttpServletRequest
        response - the HttpServletResponse
      • doDelete

        public void doDelete​(String path,
                             javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
        The DELETE action can work in two modes: 1) if the URL points to a single Business Object then that one is deleted, 2) if not then the posted information is assumed to be a XML String identifying the Business Objects to delete.
        Specified by:
        doDelete in interface WebService
        Parameters:
        path - the HttpRequest.getPathInfo(), the part of the url after the context path
        request - the HttpServletRequest
        response - the HttpServletResponse
      • doPut

        public void doPut​(String path,
                          javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
        The PUT action will update existing business objects using the posted xml string.
        Specified by:
        doPut in interface WebService
        Parameters:
        path - the HttpRequest.getPathInfo(), the part of the url after the context path
        request - the HttpServletRequest
        response - the HttpServletResponse
      • doChangeAction

        protected void doChangeAction​(String path,
                                      javax.servlet.http.HttpServletRequest request,
                                      javax.servlet.http.HttpServletResponse response,
                                      WebService.ChangeAction changeAction)
      • doChangeActionXML

        protected String doChangeActionXML​(String path,
                                           javax.servlet.http.HttpServletRequest request,
                                           javax.servlet.http.HttpServletResponse response,
                                           WebService.ChangeAction changeAction)