Class TimeStampSimpleHttpClient

  • All Implemented Interfaces:
    TimeStampHttpClient

    public class TimeStampSimpleHttpClient
    extends java.lang.Object
    implements TimeStampHttpClient
    This default implementation is used to decouple the timestamp service logic from the actual downloading code and to provide a base for user code using a different http client implementation
    • Constructor Detail

      • TimeStampSimpleHttpClient

        public TimeStampSimpleHttpClient()
    • Method Detail

      • setMaxTimestampResponseSize

        public static void setMaxTimestampResponseSize​(int maxTimestampResponseSize)
        Parameters:
        maxTimestampResponseSize - the max timestamp response size allowed
      • getMaxTimestampResponseSize

        public static int getMaxTimestampResponseSize()
        Returns:
        the max timestamp response size allowed
      • setProxy

        public void setProxy​(java.lang.String proxyUrl)
      • getProxy

        public java.net.Proxy getProxy()
      • setContentTypeOut

        public void setContentTypeOut​(java.lang.String contentType)
        Description copied from interface: TimeStampHttpClient
        set expected response content type - use null if contentType is ignored
        Specified by:
        setContentTypeOut in interface TimeStampHttpClient
      • isIgnoreHttpsCertificates

        public boolean isIgnoreHttpsCertificates()
        Specified by:
        isIgnoreHttpsCertificates in interface TimeStampHttpClient
        Returns:
        if the connection is reckless ignoring all https certificate trust issues
      • setIgnoreHttpsCertificates

        public void setIgnoreHttpsCertificates​(boolean ignoreHttpsCertificates)
        Specified by:
        setIgnoreHttpsCertificates in interface TimeStampHttpClient
        Parameters:
        ignoreHttpsCertificates - set if the connection is reckless ignoring all https certificate trust issues
      • setFollowRedirects

        public void setFollowRedirects​(boolean followRedirects)
        Specified by:
        setFollowRedirects in interface TimeStampHttpClient
        Parameters:
        followRedirects - set if http redirects are followed once