Class RaygunSettings


  • public class RaygunSettings
    extends Object
    • Method Detail

      • 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 name
        port - The TCP port
      • setConnectTimeout

        public void setConnectTimeout​(Integer ms)
      • getConnectTimeout

        public Integer getConnectTimeout()