/*
 * Copyright 2014 Red Hat, Inc.
 *
 * Red Hat licenses this file to you under the Apache License, version 2.0
 * (the "License"); you may not use this file except in compliance with the
 * License.  You may obtain a copy of the License at:
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */

package io.vertx.reactivex.ext.web.multipart;

import java.util.Map;
import io.reactivex.Observable;
import io.reactivex.Flowable;
import io.reactivex.Single;
import io.reactivex.Completable;
import io.reactivex.Maybe;

A form data part of a MultipartForm.

NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
/** * A form data part of a {@link io.vertx.reactivex.ext.web.multipart.MultipartForm}. * * <p/> * NOTE: This class has been automatically generated from the {@link io.vertx.ext.web.multipart.FormDataPart original} non RX-ified interface using Vert.x codegen. */
@io.vertx.lang.rx.RxGen(io.vertx.ext.web.multipart.FormDataPart.class) public class FormDataPart { @Override public String toString() { return delegate.toString(); } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; FormDataPart that = (FormDataPart) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } public static final io.vertx.lang.rx.TypeArg<FormDataPart> __TYPE_ARG = new io.vertx.lang.rx.TypeArg<>( obj -> new FormDataPart((io.vertx.ext.web.multipart.FormDataPart) obj), FormDataPart::getDelegate ); private final io.vertx.ext.web.multipart.FormDataPart delegate; public FormDataPart(io.vertx.ext.web.multipart.FormDataPart delegate) { this.delegate = delegate; } public io.vertx.ext.web.multipart.FormDataPart getDelegate() { return delegate; }
Returns:the name
/** * @return the name */
public String name() { if (cached_0 != null) { return cached_0; } String ret = delegate.name(); cached_0 = ret; return ret; }
Returns:true when this part is an attribute
/** * @return <code>true</code> when this part is an attribute */
public boolean isAttribute() { if (cached_1 != null) { return cached_1; } boolean ret = delegate.isAttribute(); cached_1 = ret; return ret; }
Returns:true when this part is a file upload
/** * @return <code>true</code> when this part is a file upload */
public boolean isFileUpload() { if (cached_2 != null) { return cached_2; } boolean ret = delegate.isFileUpload(); cached_2 = ret; return ret; }
Returns:the value when the part for a form attribute otherwise null
/** * @return the value when the part for a form attribute otherwise <code>null</code> */
public String value() { if (cached_3 != null) { return cached_3; } String ret = delegate.value(); cached_3 = ret; return ret; }
Returns:the filename when this part is a file upload otherwise null
/** * @return the filename when this part is a file upload otherwise <code>null</code> */
public String filename() { if (cached_4 != null) { return cached_4; } String ret = delegate.filename(); cached_4 = ret; return ret; }
Returns:the pathname when this part is a file upload otherwise null
/** * @return the pathname when this part is a file upload otherwise <code>null</code> */
public String pathname() { if (cached_5 != null) { return cached_5; } String ret = delegate.pathname(); cached_5 = ret; return ret; }
Returns:the media type when this part is a file upload otherwise null
/** * @return the media type when this part is a file upload otherwise <code>null</code> */
public String mediaType() { if (cached_6 != null) { return cached_6; } String ret = delegate.mediaType(); cached_6 = ret; return ret; }
Returns:whether the file upload is text or binary when this part is a file upload otherwise null
/** * @return whether the file upload is text or binary when this part is a file upload otherwise <code>null</code> */
public Boolean isText() { if (cached_7 != null) { return cached_7; } Boolean ret = delegate.isText(); cached_7 = ret; return ret; } private String cached_0; private java.lang.Boolean cached_1; private java.lang.Boolean cached_2; private String cached_3; private String cached_4; private String cached_5; private String cached_6; private Boolean cached_7; public static FormDataPart newInstance(io.vertx.ext.web.multipart.FormDataPart arg) { return arg != null ? new FormDataPart(arg) : null; } }