Class SteamDirectory
- java.lang.Object
-
- in.dragonbra.javasteam.steam.webapi.SteamDirectory
-
public class SteamDirectory extends java.lang.ObjectHelper class to load servers from the Steam Directory Web API.
-
-
Constructor Summary
Constructors Constructor Description SteamDirectory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<ServerRecord>load(SteamConfiguration configuration)Load a list of servers from the Steam Directory.static java.util.List<ServerRecord>load(SteamConfiguration configuration, int maxServers)Load a list of servers from the Steam Directory.
-
-
-
Method Detail
-
load
public static java.util.List<ServerRecord> load(SteamConfiguration configuration) throws java.io.IOException
Load a list of servers from the Steam Directory.- Parameters:
configuration- Configuration Object- Returns:
- the list of servers
- Throws:
java.io.IOException- if the request could not be executed
-
load
public static java.util.List<ServerRecord> load(SteamConfiguration configuration, int maxServers) throws java.io.IOException
Load a list of servers from the Steam Directory.- Parameters:
configuration- Configuration ObjectmaxServers- Max number of servers to return. The API will typically return this number per server type (socket and websocket). If negative, the parameter is not added to the request- Returns:
- the list of servers
- Throws:
java.io.IOException- if the request could not be executed
-
-