com.atlassian.jira.rest.util
Class AttachmentHelper.ValidationResult

java.lang.Object
  extended by com.atlassian.jira.rest.util.AttachmentHelper.ValidationResult
Enclosing class:
AttachmentHelper

public static class AttachmentHelper.ValidationResult
extends Object


Constructor Summary
AttachmentHelper.ValidationResult(AttachmentHelper.ValidationError errorType, String errorMessage)
           
AttachmentHelper.ValidationResult(InputStream inputStream, long size, String contentType)
           
 
Method Summary
 String getContentType()
           
 String getErrorMessage()
           
 AttachmentHelper.ValidationError getErrorType()
           
 InputStream getInputStream()
           
 long getSize()
           
 boolean isValid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentHelper.ValidationResult

public AttachmentHelper.ValidationResult(InputStream inputStream,
                                         long size,
                                         String contentType)

AttachmentHelper.ValidationResult

public AttachmentHelper.ValidationResult(AttachmentHelper.ValidationError errorType,
                                         String errorMessage)
Method Detail

getSize

public long getSize()

getInputStream

public InputStream getInputStream()

getContentType

public String getContentType()

getErrorType

public AttachmentHelper.ValidationError getErrorType()

isValid

public boolean isValid()

getErrorMessage

public String getErrorMessage()


Copyright © 2002-2014 Atlassian. All Rights Reserved.