Class: VertxWeb::FileUpload
- Inherits:
-
Object
- Object
- VertxWeb::FileUpload
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-web/file_upload.rb
Overview
Represents a file-upload from an HTTP multipart form submission.
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)
-
- (String) charSet
The charset of the upload.
-
- (String) contentTransferEncoding
The content transfer encoding of the upload - this describes how the upload was encoded in the form submission.
-
- (String) contentType
The content type (MIME type) of the upload.
-
- (String) fileName
The file name of the upload as provided in the form submission.
-
- (String) name
The name of the upload as provided in the form submission.
-
- (Fixnum) size
The size of the upload, in bytes.
-
- (String) uploadedFileName
The actual temporary file name on the server where the file was uploaded to.
Class Method Details
+ (Boolean) accept?(obj)
19 20 21 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-web/file_upload.rb', line 19 def @@j_api_type.accept?(obj) obj.class == FileUpload end |
+ (Object) j_api_type
28 29 30 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-web/file_upload.rb', line 28 def self.j_api_type @@j_api_type end |
+ (Object) j_class
31 32 33 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-web/file_upload.rb', line 31 def self.j_class Java::IoVertxExtWeb::FileUpload.java_class end |
+ (Object) unwrap(obj)
25 26 27 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-web/file_upload.rb', line 25 def @@j_api_type.unwrap(obj) obj.j_del end |
+ (Object) wrap(obj)
22 23 24 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-web/file_upload.rb', line 22 def @@j_api_type.wrap(obj) FileUpload.new(obj) end |
Instance Method Details
- (String) charSet
Returns the charset of the upload
36 37 38 39 40 41 42 43 44 45 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-web/file_upload.rb', line 36 def char_set if !block_given? return @j_del.java_method(:charSet, []).call() end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling char_set()" end end |
- (String) contentTransferEncoding
Returns the content transfer encoding of the upload - this describes how the upload was encoded in the form submission.
96 97 98 99 100 101 102 103 104 105 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-web/file_upload.rb', line 96 def content_transfer_encoding if !block_given? return @j_del.java_method(:contentTransferEncoding, []).call() end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling content_transfer_encoding()" end end |
- (String) contentType
Returns the content type (MIME type) of the upload
108 109 110 111 112 113 114 115 116 117 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-web/file_upload.rb', line 108 def content_type if !block_given? return @j_del.java_method(:contentType, []).call() end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling content_type()" end end |
- (String) fileName
Returns the file name of the upload as provided in the form submission
48 49 50 51 52 53 54 55 56 57 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-web/file_upload.rb', line 48 def file_name if !block_given? return @j_del.java_method(:fileName, []).call() end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling file_name()" end end |
- (String) name
Returns the name of the upload as provided in the form submission
84 85 86 87 88 89 90 91 92 93 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-web/file_upload.rb', line 84 def name if !block_given? return @j_del.java_method(:name, []).call() end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling name()" end end |
- (Fixnum) size
Returns the size of the upload, in bytes
72 73 74 75 76 77 78 79 80 81 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-web/file_upload.rb', line 72 def size if !block_given? return @j_del.java_method(:size, []).call() end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling size()" end end |
- (String) uploadedFileName
Returns the actual temporary file name on the server where the file was uploaded to.
60 61 62 63 64 65 66 67 68 69 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-web/file_upload.rb', line 60 def uploaded_file_name if !block_given? return @j_del.java_method(:uploadedFileName, []).call() end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling uploaded_file_name()" end end |