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 String
getContentType()
Map<String,String>
getFormContents()
void
setFormContent(String key, String value)
Sets a form content, repeating names (keys) will be overriden.
-
-
-
Method Detail
-
getContentType
public String getContentType()
- Specified by:
getContentType
in 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:
setFormContent
in interfaceFormContentType
- Parameters:
key
- The key namevalue
- The value string for the specified key
-
getFormContents
public Map<String,String> getFormContents()
- Specified by:
getFormContents
in interfaceFormContentType
- Returns:
- the form contents map
-
-