Class List Method List File List

# Class: VertxWeb::FileUpload

Inherits:
  Object
  - Object
  - VertxWeb::FileUpload
  show all
Defined in:
  /Users/julien/java/vertx-aggregator/modules/vertx-web/vertx-web/src/main/resources/vertx-web/file_upload.rb

## Overview

Represents a file-upload from an HTTP multipart form submission.

## Instance Method Summary (collapse)

- - (String) char_set
  @return the charset of the upload.
- - (String) content_transfer_encoding
  @return the content transfer encoding of the upload - this describes how the upload was encoded in the form submission.
- - (String) content_type
  @return the content type (MIME type) of the upload.
- - (String) file_name
  @return the file name of the upload as provided in the form submission.
- - (String) name
  @return the name of the upload as provided in the form submission.
- - (Fixnum) size
  @return the size of the upload, in bytes.
- - (String) uploaded_file_name
  @return the actual temporary file name on the server where the file was uploaded to.

## Instance Method Details

### - (`String`) char_set

@return the charset of the upload

Returns:

- (`String`)

Raises:

- (`ArgumentError`)

    67
    68
    69
    70
    71
    72
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-web/vertx-web/src/main/resources/vertx-web/file_upload.rb', line 67

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

### - (`String`) content_transfer_encoding

@return the content transfer encoding of the upload - this describes how the upload was encoded in the form submission.

Returns:

- (`String`)

Raises:

- (`ArgumentError`)

    59
    60
    61
    62
    63
    64
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-web/vertx-web/src/main/resources/vertx-web/file_upload.rb', line 59

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

### - (`String`) content_type

@return the content type (MIME type) of the upload

Returns:

- (`String`)

Raises:

- (`ArgumentError`)

    51
    52
    53
    54
    55
    56
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-web/vertx-web/src/main/resources/vertx-web/file_upload.rb', line 51

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

### - (`String`) file_name

@return the file name of the upload as provided in the form submission

Returns:

- (`String`)

Raises:

- (`ArgumentError`)

    35
    36
    37
    38
    39
    40
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-web/vertx-web/src/main/resources/vertx-web/file_upload.rb', line 35

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

### - (`String`) name

@return the name of the upload as provided in the form submission

Returns:

- (`String`)

Raises:

- (`ArgumentError`)

    19
    20
    21
    22
    23
    24
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-web/vertx-web/src/main/resources/vertx-web/file_upload.rb', line 19

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

### - (`Fixnum`) size

@return the size of the upload, in bytes

Returns:

- (`Fixnum`)

Raises:

- (`ArgumentError`)

    43
    44
    45
    46
    47
    48
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-web/vertx-web/src/main/resources/vertx-web/file_upload.rb', line 43

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

### - (`String`) uploaded_file_name

@return the actual temporary file name on the server where the file was uploaded to.

Returns:

- (`String`)

Raises:

- (`ArgumentError`)

    27
    28
    29
    30
    31
    32
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-web/vertx-web/src/main/resources/vertx-web/file_upload.rb', line 27

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