你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PagedResponseBase<H,T> Class
- java.
lang. Object - com.
azure. core. http. rest. PagedResponseBase<H,T>
- com.
Type Parameters
- H
The HTTP response headers
- T
The type of items contained in the Page
Implements
public class PagedResponseBase<H,T>
implements PagedResponse<T>
Represents an HTTP response that contains a list of items deserialized into a Page<T>.
Constructor Summary
Constructor | Description |
---|---|
PagedResponseBase(HttpRequest request, int statusCode, HttpHeaders headers, Page<T> page, H deserializedHeaders) |
Creates a new instance of the Paged |
PagedResponseBase(HttpRequest request, int statusCode, HttpHeaders headers, List<T> items, String continuationToken, H deserializedHeaders) |
Creates a new instance of the Paged |
Method Summary
Modifier and Type | Method and Description |
---|---|
void | close() |
String |
getContinuationToken()
Gets the reference to the next page. |
H |
getDeserializedHeaders()
Get the headers from the HTTP response, transformed into the header type H. |
Iterable |
getElements()
Gets an IterableStream<T> of elements in the page. |
Http |
getHeaders()
Gets the headers from the HTTP response. |
Http |
getRequest()
Gets the HTTP request which resulted in this response. |
int |
getStatusCode()
Gets the HTTP response status code. |
Methods inherited from java.lang.Object
Constructor Details
PagedResponseBase
public PagedResponseBase(HttpRequest request, int statusCode, HttpHeaders headers, Page
Creates a new instance of the PagedResponseBase type.
Parameters:
PagedResponseBase
public PagedResponseBase(HttpRequest request, int statusCode, HttpHeaders headers, List
Creates a new instance of the PagedResponseBase type.
Parameters:
Method Details
close
public void close()
getContinuationToken
public String getContinuationToken()
Gets the reference to the next page.
getDeserializedHeaders
public H getDeserializedHeaders()
Get the headers from the HTTP response, transformed into the header type H.
Returns:
getElements
public IterableStream
Gets an IterableStream<T> of elements in the page.
getHeaders
public HttpHeaders getHeaders()
Gets the headers from the HTTP response.
getRequest
public HttpRequest getRequest()
Gets the HTTP request which resulted in this response.
Returns:
getStatusCode
public int getStatusCode()
Gets the HTTP response status code.