|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Body
This is an interface that should be implemented to allow Protocol specific setting of the content of the body of a request.
| Method Summary | |
|---|---|
void |
addHeaders(java.net.HttpURLConnection con)
Allows the Body object to add its own HTTP header parameters |
void |
addParameter(java.lang.String name,
java.lang.String value)
Sets a parameter value pair as something that should be set in the header of this protocol. |
java.lang.String |
getBody()
Returns the content of the body to be used by the Protocol. |
java.lang.String |
id()
Returns an id for this protocol. |
| Method Detail |
|---|
java.lang.String id()
.:// would be appropriate (without the "://")
java.lang.String getBody()
throws ToolException
ToolException
void addParameter(java.lang.String name,
java.lang.String value)
throws ToolException
name - The name of the header variable.value - The value to set for this header variable.
ToolExceptionvoid addHeaders(java.net.HttpURLConnection con)
con - The HttpURLConnection object that will communicate with the host using HTTP protocols
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||