|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.security.httpclient.PostBody
Class used to store the optional parameters to be included in the request when using POST or PUT connection method.
Constructor Summary | |
PostBody()
Constructs a PostBody object. |
Method Summary | |
java.lang.Object |
get(java.lang.String key)
Returns the value associated to the given key. |
void |
setBody(java.lang.String body)
Sets the body of the data to be sent to the server. |
void |
setContentType(java.lang.String contentType)
Sets the content-type of the data to be sent to the server. |
void |
setForms(java.lang.String name,
java.lang.String value)
Adds a name-value pair to the HTML FORM parameters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PostBody()
Method Detail |
public void setContentType(java.lang.String contentType)
contentType
- the type of data to be sentpublic void setBody(java.lang.String body)
body
- the body of the data or the name
of the file containing the body of the datapublic void setForms(java.lang.String name, java.lang.String value)
name
- the name of the FORM parametervalue
- the value of the FORM parameterpublic java.lang.Object get(java.lang.String key)
key
- the key identifing an object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |