This class represents a MultiMap of String keys to a List of String values.
It's useful in Vert.x to represent things in Vert.x like HTTP headers and HTTP parameters which allow multiple values for keys.
| package |
Default |
|---|
__construct()
add( $arg0, $arg1) : $this
string
string
$thisa reference to this, so the API can be used fluently
addAll( $arg0) : $this
MultiMap
$thisa reference to this, so the API can be used fluently
caseInsensitiveMultiMap() : \io\vertx\jphp\core\MultiMap
clear() : $this
$thisa reference to this, so the API can be used fluently
contains( $arg0, $arg1 = null, $arg2 = null) : boolean
param $name [string] The name to search for contains($name)
Check if there is a header with the specified name and value.
If caseInsensitive is true, value is compared in a case-insensitive way.
param $name [string] the name to search for param $value [string] the value to search for param $caseInsensitive [boolean] contains($name, $value, $caseInsensitive)
string
string
boolean
booleantrue if at least one entry is found
get( $arg0) : string
string
stringThe first header value or {@code null} if there is no such entry
getAll( $arg0) : array
string
arrayA immutable {@link java.util.List} of values which will be empty if no values are found
isEmpty() : boolean
boolean
names() : array
arrayA {@link java.util.Set} of all names
remove( $arg0) : $this
string
$thisa reference to this, so the API can be used fluently
set( $arg0, $arg1) : $this
If there is an existing header with the same name, it is removed.
string
string
$thisa reference to this, so the API can be used fluently
setAll( $arg0) : $this
MultiMap
$thisa reference to this, so the API can be used fluently
size() : integer
integer