| Package | Description |
|---|---|
| org.bonitasoft.web.extension.rest |
| Modifier and Type | Method and Description |
|---|---|
RestApiResponseBuilder |
RestApiResponseBuilder.withAdditionalCookie(javax.servlet.http.Cookie cookie)
Adds a cookie to the HTTP response
|
RestApiResponseBuilder |
RestApiResponseBuilder.withAdditionalHeader(String name,
String value)
Adds a header in the HTTP response
|
RestApiResponseBuilder |
RestApiResponseBuilder.withCharacterSet(String characterSet)
Set the character set of the HTTP response.
|
RestApiResponseBuilder |
RestApiResponseBuilder.withContentRange(int pageIndex,
int pageSize)
When returning a paged result, sets the start index and the page size.
|
RestApiResponseBuilder |
RestApiResponseBuilder.withContentRange(int pageIndex,
int pageSize,
long totalSize)
When returning a paged result, sets the start index, the page size and the total size.
|
RestApiResponseBuilder |
RestApiResponseBuilder.withMediaType(String mediaType)
Set the media type of the HTTP response body.
|
RestApiResponseBuilder |
RestApiResponseBuilder.withResponse(Serializable response)
Set the body of the response
|
RestApiResponseBuilder |
RestApiResponseBuilder.withResponseStatus(int httpStatus)
Set the HTTP status of the response.
|
| Modifier and Type | Method and Description |
|---|---|
RestApiResponse |
RestApiController.doHandle(javax.servlet.http.HttpServletRequest request,
RestApiResponseBuilder responseBuilder,
RestAPIContext context)
Let the Rest API Extension parse request for specific attribute handling.
|
Copyright © 2020 Bonitasoft S.A.. All rights reserved.