|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.httpclient.NameValuePair
com.gargoylesoftware.htmlunit.KeyDataPair
public class KeyDataPair
A holder for a key/value pair that represents a file to upload.
| Constructor Summary | |
|---|---|
KeyDataPair(java.lang.String key,
java.io.File file,
java.lang.String contentType,
java.lang.String charset)
Creates an instance. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCharset()
Gets the charset encoding for this file upload. |
java.lang.String |
getContentType()
Gets the content type for this file upload. |
byte[] |
getData()
Gets in-memory data assigned to file value. |
java.io.File |
getFile()
|
void |
setData(byte[] data)
Sets file value data. |
| Methods inherited from class org.apache.commons.httpclient.NameValuePair |
|---|
equals, getName, getValue, hashCode, setName, setValue, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KeyDataPair(java.lang.String key,
java.io.File file,
java.lang.String contentType,
java.lang.String charset)
key - the keyfile - the filecontentType - the content typecharset - the charset encoding| Method Detail |
|---|
public java.io.File getFile()
File object if the file exists, else nullpublic java.lang.String getCharset()
public java.lang.String getContentType()
public byte[] getData()
null if the file content should be used.public void setData(byte[] data)
data - byte array with file data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||