Class List Method List File List

# Class: VertxWebApiContract::OpenAPI3RequestValidationHandler

Inherits:
  Object
  - Object
  - VertxWebApiContract::OpenAPI3RequestValidationHandler
  show all
Includes:
  HTTPOperationRequestValidationHandler
Defined in:
  /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web-api-contract/open_api3_request_validation_handler.rb

## Constant Summary

@@j_api_type =

      Object.new

## Class Method Summary (collapse)

- + (Boolean) accept?(obj)
- + (Object) j_api_type
- + (Object) j_class
- + (Object) unwrap(obj)
- + (Object) wrap(obj)

## Instance Method Summary (collapse)

- - (void) handle(arg0 = nil)
- - (void) parse_operation_spec
  Function that parse the operation specification and generate validation rules.

## Class Method Details

### + (`Boolean`) accept?(obj)

Returns:

- (`Boolean`)

    19
    20
    21
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web-api-contract/open_api3_request_validation_handler.rb', line 19

    def @@j_api_type.accept?(obj)
      obj.class == OpenAPI3RequestValidationHandler
    end

### + (`Object`) j_api_type

    28
    29
    30
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web-api-contract/open_api3_request_validation_handler.rb', line 28

    def self.j_api_type
      @@j_api_type
    end

### + (`Object`) j_class

    31
    32
    33
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web-api-contract/open_api3_request_validation_handler.rb', line 31

    def self.j_class
      Java::IoVertxExtWebApiContractOpenapi3::OpenAPI3RequestValidationHandler.java_class
    end

### + (`Object`) unwrap(obj)

    25
    26
    27
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web-api-contract/open_api3_request_validation_handler.rb', line 25

    def @@j_api_type.unwrap(obj)
      obj.j_del
    end

### + (`Object`) wrap(obj)

    22
    23
    24
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web-api-contract/open_api3_request_validation_handler.rb', line 22

    def @@j_api_type.wrap(obj)
      OpenAPI3RequestValidationHandler.new(obj)
    end

## Instance Method Details

### - (`void`) handle(arg0 = nil)

This method returns an undefined value.

Parameters:

- arg0 (`::VertxWeb::RoutingContext`) (defaults to: `nil`)

Raises:

- (`ArgumentError`)

    36
    37
    38
    39
    40
    41
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web-api-contract/open_api3_request_validation_handler.rb', line 36

    def handle(arg0=nil)
      if arg0.class.method_defined?(:j_del) && !block_given?
        return @j_del.java_method(:handle, [Java::IoVertxExtWeb::RoutingContext.java_class]).call(arg0.j_del)
      end
      raise ArgumentError, "Invalid arguments when calling handle(#{arg0})"
    end

### - (`void`) parse_operation_spec

This method returns an undefined value.

Function that parse the operation specification and generate validation rules

Raises:

- (`ArgumentError`)

    44
    45
    46
    47
    48
    49
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web-api-contract/open_api3_request_validation_handler.rb', line 44

    def parse_operation_spec
      if !block_given?
        return @j_del.java_method(:parseOperationSpec, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling parse_operation_spec()"
    end