| Modifier and Type | Method and Description |
|---|---|
BinaryResult |
FileApi.content() |
BinaryResult |
FileApi.NotImplemented.content() |
BinaryResult |
RevisionApi.patch()
Returns patch of revision.
|
BinaryResult |
RevisionApi.NotImplemented.patch() |
BinaryResult |
RevisionApi.patch(String path) |
BinaryResult |
RevisionApi.NotImplemented.patch(String path) |
BinaryResult |
RevisionApi.submitPreview() |
BinaryResult |
RevisionApi.NotImplemented.submitPreview() |
BinaryResult |
RevisionApi.submitPreview(String format) |
BinaryResult |
RevisionApi.NotImplemented.submitPreview(String format) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.base.Optional<BinaryResult> |
ChangeEditApi.getFile(String filePath)
Retrieves the contents of the specified file from the change edit.
|
com.google.common.base.Optional<BinaryResult> |
ChangeEditApi.NotImplemented.getFile(String filePath) |
| Modifier and Type | Method and Description |
|---|---|
BinaryResult |
BranchApi.file(String path)
Returns the content of a file from the HEAD revision.
|
BinaryResult |
BranchApi.NotImplemented.file(String path) |
| Modifier and Type | Method and Description |
|---|---|
BinaryResult |
BinaryResult.base64()
Wrap the binary data in base64 encoding.
|
static BinaryResult |
BinaryResult.create(byte[] data)
Produce an
application/octet-stream result from a byte array. |
static BinaryResult |
BinaryResult.create(InputStream data)
Produce an
application/octet-stream of unknown length by copying the InputStream until
EOF. |
static BinaryResult |
BinaryResult.create(String data)
Produce a UTF-8 encoded result from a string.
|
BinaryResult |
BinaryResult.disableGzip()
Disable gzip compression for already compressed responses.
|
BinaryResult |
BinaryResult.setAttachmentName(String attachmentName)
Set the attachment file name and return
this. |
BinaryResult |
BinaryResult.setCharacterEncoding(Charset encoding)
Set the character set used to encode text data and return
this. |
BinaryResult |
BinaryResult.setContentLength(long len)
Set the content length of the result; -1 if not known.
|
BinaryResult |
BinaryResult.setContentType(String contentType)
Set the MIME type of the result, and return
this. |
| Modifier and Type | Method and Description |
|---|---|
BinaryResult |
AccountApi.downloadAvatar(int size) |
| Modifier and Type | Method and Description |
|---|---|
BinaryResult |
AccountApiRestClient.downloadAvatar(int size) |
| Modifier and Type | Method and Description |
|---|---|
BinaryResult |
FileApiRestClient.content() |
BinaryResult |
RevisionApiRestClient.patch() |
| Modifier and Type | Method and Description |
|---|---|
BinaryResult |
BranchApiRestClient.file(String path) |
| Modifier and Type | Method and Description |
|---|---|
static BinaryResult |
BinaryResultUtils.createBinaryResult(org.apache.http.HttpResponse response) |
Copyright © 2018. All rights reserved.