Interface WebServiceHandlerPlugin

    • Method Detail

      • accept

        boolean accept​(WebServiceDefinition webServiceDefinition)
        Parameters:
        webServiceDefinition - WebServiceDefinition
        Returns:
        If this handler should be use for this webService
      • handle

        Object handle​(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response,
                      WebServiceCallContext webServiceCallContext,
                      HandlerChain chain)
               throws SessionException
        Do handle of this route.
        Parameters:
        request - Request
        response - Response
        webServiceCallContext - Context of this request
        chain - current HandlerChain.
        Returns:
        Response body
        Throws:
        SessionException - Session expired exception
      • getStackIndex

        int getStackIndex()
        Return an index to compute the order of the handlers stack. Please check the index of the provided handlers by vertigo and choose the index for yours accordingly. Vertigo's handlers start à 10 and leave a space of 10 between each. The last handler must be RestfulServiceWebServiceHandlerPlugin which has the index 120. Therefore the provided index must be between 0 and 119
        Returns:
        the index (between 0 and 119)