|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.meterware.httpunit.protocol.UploadFileSpec
public class UploadFileSpec
A description of a file to be uploaded as part of a form submission.
Constructor Summary | |
---|---|
UploadFileSpec(java.io.File file)
Creates a specification based on a File object. |
|
UploadFileSpec(java.io.File file,
java.lang.String contentType)
Creates a specification based on a File object and with a specified content type. |
|
UploadFileSpec(java.lang.String fileName,
java.io.InputStream inputStream,
java.lang.String contentType)
Creates a specification for an upload from an input stream. |
Method Summary | |
---|---|
java.lang.String |
getContentType()
Returns the content type associated with this file upload specification. |
java.lang.String |
getFileName()
|
java.io.InputStream |
getInputStream()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UploadFileSpec(java.io.File file)
public UploadFileSpec(java.io.File file, java.lang.String contentType)
public UploadFileSpec(java.lang.String fileName, java.io.InputStream inputStream, java.lang.String contentType)
Method Detail |
---|
public java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
public java.lang.String getFileName()
public java.lang.String getContentType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |