|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HttpGetRequest
An object representing an HTTP GET request to be made in the future. The actual request is not made until execute() is called.
| Method Summary | |
|---|---|
void |
addRequestHeader(java.lang.String key,
java.lang.String value)
Adds an HTTP header with the supplied key and value. |
void |
addRequestHeaders(NativeObject paramsNO)
Adds a set of HTTP headers to the HTTP request. |
HttpResponse |
execute()
Executes this HTTP GET request. |
void |
setVerificationText(java.lang.String verificationText)
Instructs the HTTP request to look for this string of content against the response content. |
| Method Detail |
|---|
void addRequestHeader(java.lang.String key,
java.lang.String value)
key - the HTTP header key.value - the HTTP header value.void addRequestHeaders(NativeObject paramsNO)
post.addRequestHeaders({
header_one: 'some value',
header_two: ['foo', 'bar']
});
paramsNO - the JavaScript map of headers used when issuing the HTTP request.void setVerificationText(java.lang.String verificationText)
HttpResponse.isContentMatched().
verificationText - the text to check againt the returned content.HttpResponse execute()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||