public class LanguageHeader extends Object implements ParsedHeaderValue
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<LanguageHeader> |
__TYPE_ARG |
static float |
DEFAULT_WEIGHT
If no "q" parameter is present, the default weight is 1. |
Constructor and Description |
---|
LanguageHeader(LanguageHeader delegate) |
LanguageHeader(Object delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
LanguageHeader |
getDelegate() |
int |
hashCode() |
boolean |
isMatchedBy(ParsedHeaderValue matchTry)
Test if this header is matched by matchTry header
|
boolean |
isPermitted()
Is this an allowed operation as specified by the corresponding header?
|
static LanguageHeader |
newInstance(LanguageHeader arg) |
String |
parameter(String key)
The value of the parameter specified by this key.
|
Map<String,String> |
parameters()
The parameters specified in this header value.
|
String |
rawValue()
Contains the raw value that was received from the user agent
|
String |
subtag()
The subtag of the language as specified by
rfc7231#section-3.1.3.1.
Equivalent to |
String |
subtag(int level)
A subtag of this language header.
+ info: rfc7231#section-3.1.3.1 |
int |
subtagCount() |
String |
tag()
The tag of the language as specified by
rfc7231#section-3.1.3.1.
Equivalent to |
String |
toString() |
String |
value()
Holds the unparsed value of the header.
For the most part, this is the content before the semi-colon (";") |
float |
weight()
Holds the weight specified in the "q" parameter of the header.
If the parameter is not specified, 1.0 is assumed according to rfc7231 |
int |
weightedOrder()
An integer that represents the absolute order position of this header
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance
public static final io.vertx.lang.rx.TypeArg<LanguageHeader> __TYPE_ARG
public static final float DEFAULT_WEIGHT
If no "q" parameter is present, the default weight is 1.
public LanguageHeader(LanguageHeader delegate)
public LanguageHeader(Object delegate)
public LanguageHeader getDelegate()
getDelegate
in interface ParsedHeaderValue
public String rawValue()
rawValue
in interface ParsedHeaderValue
public String value()
value
in interface ParsedHeaderValue
public float weight()
weight
in interface ParsedHeaderValue
public String parameter(String key)
q
parameter is never present.parameter
in interface ParsedHeaderValue
key
- public Map<String,String> parameters()
q
parameter is never present.parameters
in interface ParsedHeaderValue
public boolean isPermitted()
isPermitted
in interface ParsedHeaderValue
public boolean isMatchedBy(ParsedHeaderValue matchTry)
isMatchedBy
in interface ParsedHeaderValue
matchTry
- The header to be matched frompublic int weightedOrder()
weightedOrder
in interface ParsedHeaderValue
public String tag()
public String subtag()
public String subtag(int level)
level
- public int subtagCount()
public static LanguageHeader newInstance(LanguageHeader arg)
Copyright © 2024 Eclipse. All rights reserved.