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.
Applies to
Azure SDK for Java
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour