| Package | com.facebook.graph.utils |
| Class | public class PostRequest |
| Inheritance | PostRequest Object |
| Method | Defined By | ||
|---|---|---|---|
Instantiates a new PostRequest instance. | PostRequest | ||
close():void
Closes this request. | PostRequest | ||
createPostData():void
Starts a new request. | PostRequest | ||
getPostData():ByteArray
Returns the POST bytes to upload. | PostRequest | ||
writeFileData(filename:String, fileData:ByteArray, contentType:String):void
Writes a ByteArray to the POST request. | PostRequest | ||
writePostData(name:String, value:String):void
Writes a new value to the current POST request. | PostRequest | ||
| PostRequest | () | Constructor |
public function PostRequest()Instantiates a new PostRequest instance.
| close | () | method |
public function close():voidCloses this request. This method must be called last.
| createPostData | () | method |
public function createPostData():voidStarts a new request.
| getPostData | () | method |
public function getPostData():ByteArrayReturns the POST bytes to upload.
ReturnsByteArray |
| writeFileData | () | method |
public function writeFileData(filename:String, fileData:ByteArray, contentType:String):voidWrites a ByteArray to the POST request.
Parameters
filename:String — Name of the file data to upload.
| |
fileData:ByteArray — Raw byte array of file data to upload.
| |
contentType:String |
| writePostData | () | method |
public function writePostData(name:String, value:String):voidWrites a new value to the current POST request.
Parameters
name:String — Name of the new value.
| |
value:String — String value to write to the POST data.
|