/*
 * 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;

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

A container with the request's headers that are meaningful enough to be parsed Contains:
  • Accept -> MIME header, parameters and sortable
  • Accept-Charset -> Parameters and sortable
  • Accept-Encoding -> Parameters and sortable
  • Accept-Language -> Parameters and sortable
  • Content-Type -> MIME header and parameters

NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
/** * A container with the request's headers that are meaningful enough to be parsed * Contains: * <ul> * <li>Accept -> MIME header, parameters and sortable</li> * <li>Accept-Charset -> Parameters and sortable</li> * <li>Accept-Encoding -> Parameters and sortable</li> * <li>Accept-Language -> Parameters and sortable</li> * <li>Content-Type -> MIME header and parameters</li> * </ul> * * * <p/> * NOTE: This class has been automatically generated from the {@link io.vertx.ext.web.ParsedHeaderValues original} non RX-ified interface using Vert.x codegen. */
@io.vertx.lang.rx.RxGen(io.vertx.ext.web.ParsedHeaderValues.class) public class ParsedHeaderValues { @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; ParsedHeaderValues that = (ParsedHeaderValues) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } public static final io.vertx.lang.rx.TypeArg<ParsedHeaderValues> __TYPE_ARG = new io.vertx.lang.rx.TypeArg<>( obj -> new ParsedHeaderValues((io.vertx.ext.web.ParsedHeaderValues) obj), ParsedHeaderValues::getDelegate ); private final io.vertx.ext.web.ParsedHeaderValues delegate; public ParsedHeaderValues(io.vertx.ext.web.ParsedHeaderValues delegate) { this.delegate = delegate; } public io.vertx.ext.web.ParsedHeaderValues getDelegate() { return delegate; }
Returns:List of MIME values in the Accept header
/** * @return List of MIME values in the <code>Accept</code> header */
public List<io.vertx.reactivex.ext.web.MIMEHeader> accept() { List<io.vertx.reactivex.ext.web.MIMEHeader> ret = delegate.accept().stream().map(elt -> io.vertx.reactivex.ext.web.MIMEHeader.newInstance(elt)).collect(java.util.stream.Collectors.toList()); return ret; }
Returns:List of charset values in the Accept-Charset header
/** * @return List of charset values in the <code>Accept-Charset</code> header */
public List<io.vertx.reactivex.ext.web.ParsedHeaderValue> acceptCharset() { List<io.vertx.reactivex.ext.web.ParsedHeaderValue> ret = delegate.acceptCharset().stream().map(elt -> io.vertx.reactivex.ext.web.ParsedHeaderValue.newInstance(elt)).collect(java.util.stream.Collectors.toList()); return ret; }
Returns:List of encofing values in the Accept-Encoding header
/** * @return List of encofing values in the <code>Accept-Encoding</code> header */
public List<io.vertx.reactivex.ext.web.ParsedHeaderValue> acceptEncoding() { List<io.vertx.reactivex.ext.web.ParsedHeaderValue> ret = delegate.acceptEncoding().stream().map(elt -> io.vertx.reactivex.ext.web.ParsedHeaderValue.newInstance(elt)).collect(java.util.stream.Collectors.toList()); return ret; }
Returns:List of languages in the Accept-Language header
/** * @return List of languages in the <code>Accept-Language</code> header */
public List<io.vertx.reactivex.ext.web.LanguageHeader> acceptLanguage() { List<io.vertx.reactivex.ext.web.LanguageHeader> ret = delegate.acceptLanguage().stream().map(elt -> io.vertx.reactivex.ext.web.LanguageHeader.newInstance(elt)).collect(java.util.stream.Collectors.toList()); return ret; }
Returns:MIME value in the Content-Type header
/** * @return MIME value in the <code>Content-Type</code> header */
public io.vertx.reactivex.ext.web.MIMEHeader contentType() { io.vertx.reactivex.ext.web.MIMEHeader ret = io.vertx.reactivex.ext.web.MIMEHeader.newInstance(delegate.contentType()); return ret; } public static ParsedHeaderValues newInstance(io.vertx.ext.web.ParsedHeaderValues arg) { return arg != null ? new ParsedHeaderValues(arg) : null; } }