Class RequestUtils


  • public class RequestUtils
    extends Object
    • Method Detail

      • extract

        public static Future<ValidatableRequest> extract​(HttpServerRequest request,
                                                         Operation operation)
        Extracts and transforms the parameters and the body of an incoming request into a format that can be validated by the RequestValidator.
        Parameters:
        request - the incoming request.
        operation - the operation of the related request.
        Returns:
        A Future holding the ValidatableRequest.
      • findPathSegment

        public static int findPathSegment​(String templatePath,
                                          String parameterName)