Package com.restfb
Class WebRequestor.Request
- java.lang.Object
-
- com.restfb.WebRequestor.Request
-
- Enclosing interface:
- WebRequestor
public static class WebRequestor.Request extends Object
encapsulates the HTTP Request configuration
-
-
Constructor Summary
Constructors Constructor Description Request(String url, String headerAccessToken)
Simple http request with url and a header access tokenRequest(String url, String headerAccessToken, String parameters)
Simple http request with url and a header access tokenRequest(String url, String headerAccessToken, String parameters, List<BinaryAttachment> attachments)
Simple http request with url and a header access token
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BinaryAttachment>
getBinaryAttachments()
Body
getBody()
String
getFullUrl()
String
getHeaderAccessToken()
String
getParameters()
Optional<FacebookReelAttachment>
getReel()
String
getUrl()
boolean
hasBody()
boolean
hasHeaderAccessToken()
boolean
isReelUpload()
void
setBinaryAttachments(List<BinaryAttachment> binaryAttachments)
void
setBody(Body body)
String
toString()
-
-
-
Constructor Detail
-
Request
public Request(String url, String headerAccessToken)
Simple http request with url and a header access token- Parameters:
url
- the endpoint the request ist directed toheaderAccessToken
- the HTTP header access token (may benull
)
-
Request
public Request(String url, String headerAccessToken, String parameters)
Simple http request with url and a header access token- Parameters:
url
- the endpoint the request ist directed toheaderAccessToken
- the HTTP header access token (may benull
)parameters
- the query parameter string
-
Request
public Request(String url, String headerAccessToken, String parameters, List<BinaryAttachment> attachments)
Simple http request with url and a header access token- Parameters:
url
- the endpoint the request ist directed toheaderAccessToken
- the HTTP header access token (may benull
)parameters
- the query parameter stringattachments
- list of binary attachments
-
-
Method Detail
-
getHeaderAccessToken
public String getHeaderAccessToken()
-
hasHeaderAccessToken
public boolean hasHeaderAccessToken()
-
getParameters
public String getParameters()
-
getBinaryAttachments
public List<BinaryAttachment> getBinaryAttachments()
-
setBinaryAttachments
public void setBinaryAttachments(List<BinaryAttachment> binaryAttachments)
-
getFullUrl
public String getFullUrl()
-
hasBody
public boolean hasBody()
-
isReelUpload
public boolean isReelUpload()
-
getReel
public Optional<FacebookReelAttachment> getReel()
-
-