public class ConnectionOptions
Represents a parsed Connection header
| Modifier and Type | Class and Description |
|---|---|
static class |
ConnectionOptions.Companion |
| Modifier and Type | Field and Description |
|---|---|
static ConnectionOptions.Companion |
Companion |
| Constructor and Description |
|---|
ConnectionOptions(boolean close,
boolean keepAlive,
boolean upgrade,
java.util.List<java.lang.String> extraOptions)
Represents a parsed
Connection header |
ConnectionOptions()
Represents a parsed
Connection header |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
boolean |
getClose()
true |
java.util.List<java.lang.String> |
getExtraOptions()
a list of extra connection header options other than close,
|
boolean |
getKeepAlive()
true |
boolean |
getUpgrade()
true |
int |
hashCode() |
java.lang.String |
toString() |
public static ConnectionOptions.Companion Companion
public ConnectionOptions(boolean close,
boolean keepAlive,
boolean upgrade,
java.util.List<java.lang.String> extraOptions)
Represents a parsed Connection header
close - true for Connection: closekeepAlive - true for Connection: keep-aliveupgrade - true for Connection: upgradeextraOptions - a list of extra connection header options other than close, keep-alive and upgradepublic ConnectionOptions()
Represents a parsed Connection header
public java.lang.String toString()
public boolean equals(java.lang.Object other)
public int hashCode()
public boolean getClose()
true
for Connection: close
public boolean getKeepAlive()
true
for Connection: keep-alive
public boolean getUpgrade()
true
for Connection: upgrade
public java.util.List<java.lang.String> getExtraOptions()
a list of extra connection header options other than close,
keep-alive and upgrade