Package com.mindscapehq.raygun4java.core
Class RaygunSettings
- java.lang.Object
-
- com.mindscapehq.raygun4java.core.RaygunSettings
-
public class RaygunSettings extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetApiEndPoint()IntegergetConnectTimeout()ProxygetHttpProxy()The proxy class used when communicating with the Raygun server, this is instantiated with setHttpProxystatic RaygunSettingsgetSettings()voidsetConnectTimeout(Integer ms)voidsetHttpProxy(String host, int port)Set your proxy information, if your proxy server requires authentication set a default Authenticator in your code:
-
-
-
Method Detail
-
getSettings
public static RaygunSettings getSettings()
-
getApiEndPoint
public String getApiEndPoint()
-
getHttpProxy
public Proxy getHttpProxy()
The proxy class used when communicating with the Raygun server, this is instantiated with setHttpProxy- Returns:
- The Proxy instance held and used to communicate with the Raygun API
-
setHttpProxy
public void setHttpProxy(String host, int port)
Set your proxy information, if your proxy server requires authentication set a default Authenticator in your code:Authenticator authenticator = new Authenticator() {
public PasswordAuthentication getPasswordAuthentication() { return (new PasswordAuthentication("user", "password".toCharArray())); } }; Authenticator.setDefault(authenticator);
This will allow different proxy authentication credentials to be used for different target urls.
- Parameters:
host- The host nameport- The TCP port
-
setConnectTimeout
public void setConnectTimeout(Integer ms)
-
getConnectTimeout
public Integer getConnectTimeout()
-
-