public class HttpFile extends Object
| Constructor and Description |
|---|
HttpFile(String name) |
HttpFile(String name,
File file) |
| Modifier and Type | Method and Description |
|---|---|
HttpFile |
addFile(File file)
Adds the given file to the set of files under this name.
|
HttpFile |
addFile(File file,
boolean isText)
Adds the given file
|
String |
contentType() |
String[] |
contentTypes() |
File |
file() |
File[] |
fileSet() |
boolean |
isSingle() |
boolean |
isText() |
boolean[] |
isTextSet() |
String |
name() |
public HttpFile(String name)
public HttpFile addFile(File file)
file - the file to addpublic HttpFile addFile(File file, boolean isText)
file - the file to addisText - true if the file should be treated as a text filepublic boolean isSingle()
public String name()
public File file()
public String contentType()
public boolean isText()
public File[] fileSet()
public String[] contentTypes()
public boolean[] isTextSet()
Copyright © 2012-2015. All Rights Reserved.