public abstract class AbstractFileRequest
extends java.lang.Object
| Constructor and Description |
|---|
AbstractFileRequest(java.io.File file,
org.apache.http.entity.ContentType contentType) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
org.apache.http.entity.ContentType |
getContentType()
For PDF we need to create manually ContentType.create("application/pdf"),
for others you can use ContentType statics
|
java.io.File |
getFile() |
int |
hashCode() |
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
|
void |
setFile(java.io.File file) |
java.lang.String |
toString() |
public AbstractFileRequest(java.io.File file,
org.apache.http.entity.ContentType contentType)
public java.io.File getFile()
public org.apache.http.entity.ContentType getContentType()
public void setFile(java.io.File file)
public void setContentType(org.apache.http.entity.ContentType contentType)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object