Class FileClientResponse

java.lang.Object
com.digicert.validation.client.file.FileClientResponse

public class FileClientResponse extends Object
Represents the response from a file validation client.
  • Field Details

    • fileUrl

      private String fileUrl
      The URL of the file requested.
    • fileContent

      private String fileContent
      The content of the requested file.
    • statusCode

      private int statusCode
      The final HTTP status code after all redirects have been processed.
    • exception

      private Exception exception
      The exception that occurred during the file validation process, if any.
    • dcvError

      private DcvError dcvError
      The DCV error that occurred during the file validation process, if any.

      If set this field will be one of the following:

      • FILE_VALIDATION_CLIENT_ERROR
      • FILE_VALIDATION_INVALID_CONTENT
  • Constructor Details

    • FileClientResponse

      public FileClientResponse(String fileUrl)
      Constructs a new FileClientResponse with the specified file URL. The content, status code, exception, and DCV error are set to null.
      Parameters:
      fileUrl - the URL of the file
    • FileClientResponse

      public FileClientResponse(String fileUrl, String fileContent, int statusCode)
      Constructs a new FileClientResponse with the specified file URL and content. The exception is set to null.
      Parameters:
      fileUrl - the URL of the file
      fileContent - the content of the file
      statusCode - the status code of the HTTP response