Chapter 3. Features
3.1. New and Changed features Copy linkLink copied to clipboard!
No new features or functionalities are introduced in this release.
3.2. Deprecated features Copy linkLink copied to clipboard!
3.2.1. New connection handler method Copy linkLink copied to clipboard!
The HttpClientRequest.connectionHandler() method is deprecated and will be removed in a future release. Use HttpClient.connectionHandler() method instead to call connection handlers for client requests in your application. For example, use the following code to work with HttpClient.connectionHandler() method:
client.connectionHandler(conn -> {
// Connection related code
});
3.2.2. Updates in HTTP Methods for WebSocket Copy linkLink copied to clipboard!
The updates in the HTTP methods for WebSocket are:
The usage of the term WebSocket in method names was inconsistent. The method names had incorrect capitalization, for example, WebSocket, instead of WebSocket. The methods that had inconsistent usage of WebSocket in the following classes have been deprecated and will be removed in a future release. Use the new methods that have correct capitalization instead.
The following methods in
HttpServerOptionsclass are deprecated.Expand Deprecated Methods New Methods getMaxWebsocketFrameSize()getMaxWebSocketFrameSize()setMaxWebsocketFrameSize()setMaxWebSocketFrameSize()getMaxWebsocketMessageSize()getMaxWebSocketMessageSize()setMaxWebsocketMessageSize()setMaxWebSocketMessageSize()getPerFrameWebsocketCompressionSupported()getPerFrameWebSocketCompressionSupported()setPerFrameWebsocketCompressionSupported()setPerFrameWebSocketCompressionSupported()getPerMessageWebsocketCompressionSupported()getPerMessageWebSocketCompressionSupported()setPerMessageWebsocketCompressionSupported()setPerMessageWebSocketCompressionSupported()getWebsocketAllowServerNoContext()getWebSocketAllowServerNoContext()setWebsocketAllowServerNoContext()setWebSocketAllowServerNoContext()getWebsocketCompressionLevel()getWebSocketCompressionLevel()setWebsocketCompressionLevel()setWebSocketCompressionLevel()getWebsocketPreferredClientNoContext()getWebSocketPreferredClientNoContext()setWebsocketPreferredClientNoContext()setWebSocketPreferredClientNoContext()getWebsocketSubProtocols()getWebSocketSubProtocols()setWebsocketSubProtocols()setWebSocketSubProtocols()The new methods for WebSocket subprotocols use
List<String>data type instead of a comma separated string to store items.The following methods in
HttpClientOptionsclass are deprecated.Expand Deprecated Methods New Methods getTryUsePerMessageWebsocketCompression()getTryUsePerMessageWebSocketCompression()setTryUsePerMessageWebsocketCompression()setTryUsePerMessageWebSocketCompression()getTryWebsocketDeflateFrameCompression()getTryWebSocketDeflateFrameCompression()getWebsocketCompressionAllowClientNoContext()getWebSocketCompressionAllowClientNoContext()setWebsocketCompressionAllowClientNoContext()setWebSocketCompressionAllowClientNoContext()getWebsocketCompressionLevel()getWebSocketCompressionLevel()setWebsocketCompressionLevel()setWebSocketCompressionLevel()getWebsocketCompressionRequestServerNoContext()getWebSocketCompressionRequestServerNoContext()setWebsocketCompressionRequestServerNoContext()setWebSocketCompressionRequestServerNoContext()The following handler methods in
HttpServerclass are deprecated.Expand Deprecated Methods New Methods websocketHandler()webSocketHandler()websocketStream()webSocketStream()
-
WebsocketRejectedExceptionis deprecated. The methods will throw theUpgradeRejectedExceptioninstead.
3.2.3. Deprecated authentication and authorization classes and methods Copy linkLink copied to clipboard!
The following authentication and authorization classes and methods are deprecated and will be replaced in a future release.
Classes:
-
AbstractUser -
PubSecKeyOptions -
JDBCAuthOptions -
JDBCHashStrategy -
AccessToken -
KeycloakHelper -
ShiroAuth -
AuthProviderInternal
-
Methods:
-
User.isAuthorized() -
User.clearCache() -
User.setAuthProvider() -
Oauth2Auth.introspectToken() -
Oauth2Auth.getFlowType() -
Oauth2Auth.loadJWK() -
Oauth2Auth.rbacHandler() -
Oauth2ClientOptions.isUseBasicAuthorization() -
Oauth2ClientOptions.setUseBasicAuthorizationHeader() -
Oauth2ClientOptions.getScopeSeparator() -
Oauth2ClientOptions.setScopeSeparator()
-