All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.ext.web.LanguageHeader Maven / Gradle / Ivy

There is a newer version: 5.0.0.CR1
Show newest version
package io.vertx.ext.web;

import io.vertx.codegen.annotations.Nullable;
import io.vertx.codegen.annotations.VertxGen;

/**
 * A parsed language header.
 * Delivers a more direct access to the individual elements of the header it represents
 */
@VertxGen
public interface LanguageHeader extends ParsedHeaderValue {

  /**
   * The tag of the language as specified by
   * rfc7231#section-3.1.3.1.
* Equivalent to {@link #subtag(int) subtag(0)} * @return The language tag */ String tag(); /** * The subtag of the language as specified by * rfc7231#section-3.1.3.1.
* Equivalent to {@link #subtag(int) subtag(1)} * @return The language subtag */ @Nullable String subtag(); /** * A subtag of this language header.
* + info: rfc7231#section-3.1.3.1 * * @return The language subtag at specified position */ @Nullable String subtag(int level); /** * @return the number of subtags this value has */ int subtagCount(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy