Class UrlEncodedFormContentType
- java.lang.Object
-
- org.codehaus.cargo.container.internal.http.UrlEncodedFormContentType
-
- All Implemented Interfaces:
FormContentType
- Direct Known Subclasses:
MultipartFormContentType
public class UrlEncodedFormContentType extends Object implements FormContentType
Represents the content type for an url encoded form.
-
-
Constructor Summary
Constructors Constructor Description UrlEncodedFormContentType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()Map<String,String>getFormContents()voidsetFormContent(String key, String value)Sets a form content, repeating names (keys) will be overriden.
-
-
-
Method Detail
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceFormContentType- Returns:
- the content type of a form
-
setFormContent
public void setFormContent(String key, String value)
Sets a form content, repeating names (keys) will be overriden.- Specified by:
setFormContentin interfaceFormContentType- Parameters:
key- The key namevalue- The value string for the specified key
-
getFormContents
public Map<String,String> getFormContents()
- Specified by:
getFormContentsin interfaceFormContentType- Returns:
- the form contents map
-
-