Class SteamConfiguration
- java.lang.Object
-
- in.dragonbra.javasteam.steam.steamclient.configuration.SteamConfiguration
-
public class SteamConfiguration extends java.lang.ObjectConfiguration object to use. This object should not be mutated after it is passed to one or moreSteamClientobjects.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SteamConfigurationcreate(Consumer<ISteamConfigurationBuilder> configurator)Creates aSteamConfiguration, allowing for configuration.static SteamConfigurationcreateDefault()intgetCellID()longgetConnectionTimeout()java.util.EnumSet<EClientPersonaStateFlag>getDefaultPersonaStateFlags()okhttp3.OkHttpClientgetHttpClient()java.util.EnumSet<ProtocolTypes>getProtocolTypes()SmartCMServerListgetServerList()IServerListProvidergetServerListProvider()EUniversegetUniverse()WebAPIgetWebAPI(java.lang.String _interface)Retrieves a handler capable of interacting with the specified interface on the Web API.java.lang.StringgetWebAPIBaseAddress()java.lang.StringgetWebAPIKey()booleanisAllowDirectoryFetch()
-
-
-
Method Detail
-
create
public static SteamConfiguration create(Consumer<ISteamConfigurationBuilder> configurator)
Creates aSteamConfiguration, allowing for configuration.- Parameters:
configurator- A method which is used to configure the configuration.- Returns:
- A configuration object.
-
createDefault
public static SteamConfiguration createDefault()
-
isAllowDirectoryFetch
public boolean isAllowDirectoryFetch()
- Returns:
- Whether or not to use the Steam Directory to discover available servers.
-
getCellID
public int getCellID()
- Returns:
- The Steam Cell ID to prioritize when connecting.
-
getConnectionTimeout
public long getConnectionTimeout()
- Returns:
- The connection timeout used when connecting to Steam serves.
-
getHttpClient
public okhttp3.OkHttpClient getHttpClient()
- Returns:
- The http client
-
getDefaultPersonaStateFlags
public java.util.EnumSet<EClientPersonaStateFlag> getDefaultPersonaStateFlags()
- Returns:
- The default persona state flags used when requesting information for a new friend, or when calling SteamFriends.RequestFriendInfo without specifying flags.
-
getProtocolTypes
public java.util.EnumSet<ProtocolTypes> getProtocolTypes()
- Returns:
- The supported protocol types to use when attempting to connect to Steam.
-
getServerListProvider
public IServerListProvider getServerListProvider()
- Returns:
- The server list provider to use.
-
getUniverse
public EUniverse getUniverse()
- Returns:
- The Universe to connect to. This should always be
EUniverse.Publicunless you work at Valve and are using this internally. If this is you, hello there.
-
getWebAPIBaseAddress
public java.lang.String getWebAPIBaseAddress()
- Returns:
- The base address of the Steam Web API to connect to. Use of "partner.steam-api.com" requires a Partner API key.
-
getWebAPIKey
public java.lang.String getWebAPIKey()
- Returns:
- An API key to be used for authorized requests. Keys can be obtained from Steam Web API Documentation or the Steamworks Partner site.
-
getServerList
public SmartCMServerList getServerList()
- Returns:
- The server list used for this configuration. If this configuration is used by multiple
SteamClientinstances, they all share the server list.
-
-