Package com.restfb
Schnittstelle WebRequestor
- Alle bekannten Implementierungsklassen:
DefaultWebRequestor
,ETagWebRequestor
public interface WebRequestor
Specifies how a class that sends
HTTP
requests to the Facebook API endpoint must operate.- Autor:
- Mark Allen
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypSchnittstelleBeschreibungstatic class
encapsulates the HTTP Request configurationstatic class
Encapsulates an HTTP response body and status code. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungexecuteDelete
(WebRequestor.Request request) Given a Facebook API endpoint URL and parameter string, execute aDELETE
to the endpoint URL.executeGet
(WebRequestor.Request request) Given a Facebook API endpoint URL, execute aGET
against it.executePost
(WebRequestor.Request request) Given a Facebook API endpoint URL and parameter string, execute aPOST
to the endpoint URL.Provides access to the facebook header information.
-
Methodendetails
-
executeGet
Given a Facebook API endpoint URL, execute aGET
against it.- Parameter:
request
- The request data for theGET
request- Gibt zurück:
- HTTP response data.
- Löst aus:
IOException
- If an error occurs while performing theGET
operation.- Seit:
- 1.5
-
executePost
Given a Facebook API endpoint URL and parameter string, execute aPOST
to the endpoint URL.- Parameter:
request
- The request data used for thePOST
request.- Gibt zurück:
- HTTP response data.
- Löst aus:
IOException
- If an error occurs while performing thePOST
.
-
executeDelete
Given a Facebook API endpoint URL and parameter string, execute aDELETE
to the endpoint URL.- Parameter:
request
- The request data used for theDELETE
request.- Gibt zurück:
- HTTP response data.
- Löst aus:
IOException
- If an error occurs while performing theDELETE
.
-
getDebugHeaderInfo
Provides access to the facebook header information. The fieldsx-fb-rev
,x-fb-trace-id
andx-fb-debug
are checked and returned in a single container of the typeDebugHeaderInfo
- Gibt zurück:
- container with the explained facebook debug header information
-