public class HandshakeFrame extends Object
Modifier | Constructor and Description |
---|---|
protected |
HandshakeFrame()
Construct a base Web Socket handshake frame.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(String name,
String value)
Adds a value of the header field identified by the specified name.
|
List<String> |
getNames()
Returns names of header fields already added to this frame.
|
String |
getValue(String name)
Returns the value of the header field identified by the specified name.
|
boolean |
hasValue(String name)
Checks if the header field identified by the specified name exists.
|
protected HandshakeFrame()
public String getValue(String name)
name
- a case insensitive name of the header field which value should be
returned.null
if the header field
could not be foundpublic void addValue(String name, String value)
If the header field already exists the value will be appended to the existing
value and the string ", "
will be used to separate the appended value
from the existing one.
name
- a case insensitive name of the header field which value should
be added.value
- the value to be addedpublic boolean hasValue(String name)
name
- a case insensitive name of the header field to check.true
if the header field existsCopyright © 2017–2022 SNF4J.ORG. All rights reserved.