Package com.checkout.common
Class AbstractFileRequest
- java.lang.Object
-
- com.checkout.common.AbstractFileRequest
-
- Direct Known Subclasses:
AccountsFileRequest,FileRequest
public abstract class AbstractFileRequest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AbstractFileRequest(java.io.File file, org.apache.http.entity.ContentType contentType)Creates a newAbstractFileRequestinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)org.apache.http.entity.ContentTypegetContentType()For PDF we need to create manually ContentType.create("application/pdf"), for others you can use ContentType staticsjava.io.FilegetFile()inthashCode()voidsetContentType(org.apache.http.entity.ContentType contentType)For PDF we need to create manually ContentType.create("application/pdf"), for others you can use ContentType staticsvoidsetFile(java.io.File file)java.lang.StringtoString()
-
-
-
Constructor Detail
-
AbstractFileRequest
public AbstractFileRequest(java.io.File file, org.apache.http.entity.ContentType contentType)Creates a newAbstractFileRequestinstance.- Parameters:
file-contentType- For PDF we need to create manually ContentType.create("application/pdf"), for others you can use ContentType statics
-
-
Method Detail
-
getFile
public java.io.File getFile()
-
getContentType
public org.apache.http.entity.ContentType getContentType()
For PDF we need to create manually ContentType.create("application/pdf"), for others you can use ContentType statics
-
setFile
public void setFile(java.io.File file)
-
setContentType
public void setContentType(org.apache.http.entity.ContentType contentType)
For PDF we need to create manually ContentType.create("application/pdf"), for others you can use ContentType statics
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-