|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebRequestor
Specifies how a class that sends HTTP
requests to the Facebook API
endpoint must operate.
Nested Class Summary | |
---|---|
static class |
WebRequestor.Response
Encapsulates an HTTP response body and status code. |
Method Summary | |
---|---|
WebRequestor.Response |
executeGet(String url)
Given a Facebook API endpoint URL, execute a GET against it. |
WebRequestor.Response |
executePost(String url,
String parameters)
Given a Facebook API endpoint URL and parameter string, execute a POST to the endpoint URL. |
WebRequestor.Response |
executePost(String url,
String parameters,
BinaryAttachment... binaryAttachments)
Given a Facebook API endpoint URL and parameter string, execute a POST to the endpoint URL. |
Method Detail |
---|
WebRequestor.Response executeGet(String url) throws IOException
GET
against it.
url
- The URL to make a GET
request for, including URL
parameters.
IOException
- If an error occurs while performing the GET
operation.WebRequestor.Response executePost(String url, String parameters) throws IOException
POST
to the endpoint URL.
url
- The URL to POST
to.parameters
- The parameters to be POST
ed.
IOException
- If an error occurs while performing the POST
.WebRequestor.Response executePost(String url, String parameters, BinaryAttachment... binaryAttachments) throws IOException
POST
to the endpoint URL.
url
- The URL to POST
to.parameters
- The parameters to be POST
ed.binaryAttachments
- Optional binary attachments to be included in the POST
body (e.g. photos and videos).
IOException
- If an error occurs while performing the POST
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |