public static class AttachmentHelper.ValidationResult extends Object
Constructor and Description |
---|
ValidationResult(AttachmentHelper.ValidationError errorType,
String errorMessage) |
ValidationResult(InputStream inputStream,
long size,
String contentType) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
String |
getErrorMessage() |
AttachmentHelper.ValidationError |
getErrorType() |
InputStream |
getInputStream() |
long |
getSize() |
boolean |
isValid() |
String |
toString() |
public ValidationResult(InputStream inputStream, long size, String contentType)
public ValidationResult(AttachmentHelper.ValidationError errorType, String errorMessage)
public long getSize()
public InputStream getInputStream()
public String getContentType()
public AttachmentHelper.ValidationError getErrorType()
public boolean isValid()
public String getErrorMessage()
Copyright © 2002-2022 Atlassian. All Rights Reserved.