With loggregator-release v107.0.0 the RecentLogsHandler was removed from the trafficcontroller and is therefore not available anymore in the doppler endpoint. Users of the cf-java-client using the DopplerClient should use the LogCacheClient instead.
The recentLogs method should be deprecated and removed from the client.