public class DefaultClientProfile extends Object
The profile returned by this class depends on the SAMP_HUB environment
 variable (HUBLOC_ENV).
 If it consists of the prefix "jsamp-class:" 
 (HUBLOC_CLASS_PREFIX) followed by the classname of a class
 which implements ClientProfile and has a no-arg constructor,
 then an instance of the named class is used.
 Otherwise, an instance of StandardClientProfile or 
 WebClientProfile is returned.
| Modifier and Type | Field and Description | 
|---|---|
| static String | HUBLOC_CLASS_PREFIXPrefix for SAMP_HUB env var indicating a supplied ClientProfile
 implementation ("jsamp-class:"). | 
| static String | HUBLOC_ENVEnvironment variable used for hub location ("SAMP_HUB"). | 
| Modifier and Type | Method and Description | 
|---|---|
| static ClientProfile | getProfile()Returns a ClientProfile instance suitable for general purpose use. | 
| static void | setProfile(ClientProfile profile)Sets the profile object which will be returned by  getProfile(). | 
public static final String HUBLOC_ENV
public static final String HUBLOC_CLASS_PREFIX
public static ClientProfile getProfile()
StandardClientProfile.getInstance()),
 but the instance may be modified programatically or by use of
 the SAMP_HUB environment variable.
 If no instance has been set, the SAMP_HUB environment variable
 is examined.  If it consists of the prefix "jsamp-class:" 
 (HUBLOC_CLASS_PREFIX) followed by the classname of a class
 which implements ClientProfile and has a no-arg constructor,
 then an instance of the named class is used.
 Otherwise, an instance of StandardClientProfile is returned.
 
The instance is obtained lazily.
public static void setProfile(ClientProfile profile)
getProfile().profile - default profile instanceCopyright © 2008–2024. All rights reserved.