Class MultipartFormContentType
- java.lang.Object
-
- org.codehaus.cargo.container.internal.http.UrlEncodedFormContentType
-
- org.codehaus.cargo.container.internal.http.MultipartFormContentType
-
- All Implemented Interfaces:
FormContentType
public class MultipartFormContentType extends UrlEncodedFormContentType
Represents the content type for a multipart form.
-
-
Constructor Summary
Constructors Constructor Description MultipartFormContentType()
Constructs a multipart token
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBoundary()
String
getContentType()
Gets the content type for this writer.Map<String,File>
getFormFiles()
void
setFormFile(String key, File file)
Sets a form content file, repeating names (keys) will be overriden.-
Methods inherited from class org.codehaus.cargo.container.internal.http.UrlEncodedFormContentType
getFormContents, setFormContent
-
-
-
-
Method Detail
-
getContentType
public String getContentType()
Gets the content type for this writer.- Specified by:
getContentType
in interfaceFormContentType
- Overrides:
getContentType
in classUrlEncodedFormContentType
- Returns:
- the content type string
-
getBoundary
public String getBoundary()
- Returns:
- the multipart chunk boundary
-
setFormFile
public void setFormFile(String key, File file)
Sets a form content file, repeating names (keys) will be overriden.- Parameters:
key
- The key name, used as file namefile
- The file
-
-