/** * Returns the list of methods supported by the server based on its advertised information. * * @return an immutable set of capabilities */ public Set<ServerMethod> getSupportedMethods() { return client != null ? ServerMethod.getSupportedMethods(client.getSupportedMethods(), client.getServerInfos()) : null; }
for(ServerMethod capability: ServerMethod.values()) { if (serverVersion.compareTo(capability.getMinVersion()) >= 0) { builder.add(capability);