Package io.vertx.mutiny.ext.web
Class LanguageHeader
- java.lang.Object
-
- io.vertx.mutiny.ext.web.LanguageHeader
-
- All Implemented Interfaces:
ParsedHeaderValue
public class LanguageHeader extends Object implements ParsedHeaderValue
A parsed language header. Delivers a more direct access to the individual elements of the header it represents NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<LanguageHeader>
__TYPE_ARG
static float
DEFAULT_WEIGHT
If no "q" parameter is present, the default weight is 1.
-
Constructor Summary
Constructors Constructor Description LanguageHeader(io.vertx.ext.web.LanguageHeader delegate)
LanguageHeader(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
io.vertx.ext.web.LanguageHeader
getDelegate()
int
hashCode()
boolean
isMatchedBy(ParsedHeaderValue matchTry)
boolean
isPermitted()
static LanguageHeader
newInstance(io.vertx.ext.web.LanguageHeader arg)
String
parameter(String key)
Map<String,String>
parameters()
String
rawValue()
String
subtag()
String
subtag(int level)
int
subtagCount()
String
tag()
String
toString()
String
value()
float
weight()
int
weightedOrder()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<LanguageHeader> __TYPE_ARG
-
DEFAULT_WEIGHT
public static final float DEFAULT_WEIGHT
If no "q" parameter is present, the default weight is 1.
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LanguageHeader
public LanguageHeader(io.vertx.ext.web.LanguageHeader delegate)
-
LanguageHeader
public LanguageHeader(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.LanguageHeader getDelegate()
- Specified by:
getDelegate
in interfaceParsedHeaderValue
-
rawValue
public String rawValue()
- Specified by:
rawValue
in interfaceParsedHeaderValue
- Returns:
-
value
public String value()
- Specified by:
value
in interfaceParsedHeaderValue
- Returns:
-
weight
public float weight()
- Specified by:
weight
in interfaceParsedHeaderValue
- Returns:
-
parameter
public String parameter(String key)
- Specified by:
parameter
in interfaceParsedHeaderValue
- Parameters:
key
-- Returns:
-
parameters
public Map<String,String> parameters()
- Specified by:
parameters
in interfaceParsedHeaderValue
- Returns:
- Unmodifiable Map of parameters of this header value
-
isPermitted
public boolean isPermitted()
- Specified by:
isPermitted
in interfaceParsedHeaderValue
- Returns:
-
isMatchedBy
public boolean isMatchedBy(ParsedHeaderValue matchTry)
- Specified by:
isMatchedBy
in interfaceParsedHeaderValue
- Parameters:
matchTry
- The header to be matched from- Returns:
- true if this header represents a subset of matchTry, otherwise, false
-
weightedOrder
public int weightedOrder()
- Specified by:
weightedOrder
in interfaceParsedHeaderValue
- Returns:
-
tag
public String tag()
- Returns:
- The language tag
-
subtag
public String subtag()
- Returns:
- The language subtag
-
subtag
public String subtag(int level)
- Parameters:
level
-- Returns:
- The language subtag at specified position
-
subtagCount
public int subtagCount()
- Returns:
- the number of subtags this value has
-
newInstance
public static LanguageHeader newInstance(io.vertx.ext.web.LanguageHeader arg)
-
-