| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final String | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | ServletConnectionImpl(String connectionId, String protocol, String protocolConnectionId, boolean secure)
|
| Modifier and Type | Method and Description |
|---|---|
| public String | getConnectionId()
Implements jakarta. Obtain a unique (within the lifetime of the JVM) identifier string for the network connection to the JVM that is
being used for the |
| public String | getProtocol()
Implements jakarta. Obtain the name of the protocol as presented to the server after the removal, if present, of any TLS or similar encryption. |
| public String | getProtocolConnectionId()
Implements jakarta. Obtain the connection identifier for the network connection to the server that is being used for the
|
| public boolean | isSecure()
Implements jakarta. Determine whether or not the incoming network connection to the server used encryption or not. |
| connectionId | back to summary |
|---|---|
| private final String connectionId | |
| protocol | back to summary |
|---|---|
| private final String protocol | |
| protocolConnectionId | back to summary |
|---|---|
| private final String protocolConnectionId | |
| secure | back to summary |
|---|---|
| private final boolean secure | |
| ServletConnectionImpl | back to summary |
|---|---|
| public ServletConnectionImpl(String connectionId, String protocol, String protocolConnectionId, boolean secure) | |
| getConnectionId | back to summary |
|---|---|
| public String getConnectionId() Implements jakarta. Doc from jakarta. Obtain a unique (within the lifetime of the JVM) identifier string for the network connection to the JVM that is
being used for the There is no defined format for this string. The format is implementation dependent. | |
| getProtocol | back to summary |
|---|---|
| public String getProtocol() Implements jakarta. Doc from jakarta. Obtain the name of the protocol as presented to the server after the removal, if present, of any TLS or similar encryption. This may not be the same as the protocol seen by the application. For example, a reverse proxy may present AJP whereas the application will see HTTP 1.1. If the protocol has an entry in the IANA registry for ALPN names then the identification sequence, in string form, must be returned. Registered identification sequences MUST only be used for the associated protocol. Return values for other protocols are implementation dependent. Unknown protocols should return the string "unknown". | |
| getProtocolConnectionId | back to summary |
|---|---|
| public String getProtocolConnectionId() Implements jakarta. Doc from jakarta. Obtain the connection identifier for the network connection to the server that is being used for the
Examples of protocol provided connection identifiers include:
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Implements jakarta. Doc from jakarta. Determine whether or not the incoming network connection to the server used encryption or not. Note that where a
reverse proxy is used, the application may have a different view as to whether encryption is being used due to
the use of headers like
| |