Class FileClientResponse
java.lang.Object
com.digicert.validation.client.file.FileClientResponse
Represents the response from a file validation client.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DcvError
The DCV error that occurred during the file validation process, if any.private Exception
The exception that occurred during the file validation process, if any.private String
The content of the requested file.private String
The URL of the file requested.private int
The final HTTP status code after all redirects have been processed. -
Constructor Summary
ConstructorsConstructorDescriptionFileClientResponse
(String fileUrl) Constructs a new FileClientResponse with the specified file URL.FileClientResponse
(String fileUrl, String fileContent, int statusCode) Constructs a new FileClientResponse with the specified file URL and content. -
Method Summary
-
Field Details
-
fileUrl
The URL of the file requested. -
fileContent
The content of the requested file. -
statusCode
private int statusCodeThe final HTTP status code after all redirects have been processed. -
exception
The exception that occurred during the file validation process, if any. -
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
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
Constructs a new FileClientResponse with the specified file URL and content. The exception is set to null.- Parameters:
fileUrl
- the URL of the filefileContent
- the content of the filestatusCode
- the status code of the HTTP response
-