Class SteamDirectory


  • public class SteamDirectory
    extends java.lang.Object
    Helper 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SteamDirectory

        public SteamDirectory()
    • 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 Object
        maxServers - 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