Class PageContext<RequestT,ResponseT,ResourceT> (2.16.0)

publicabstractclass PageContext<RequestT,ResponseT,ResourceT>

The context for a page call.

Inheritance

java.lang.Object > PageContext<RequestT,ResponseT,ResourceT>

Type Parameters

Name Description
RequestT
ResponseT
ResourceT

Static Methods

<RequestT,ResponseT,ResourceT>create(UnaryCallable<RequestT,ResponseT> callable, PagedListDescriptor<RequestT,ResponseT,ResourceT> pageDescriptor, RequestT request, ApiCallContext callContext)

publicstaticPageContext<RequestT,ResponseT,ResourceT><RequestT,ResponseT,ResourceT>create(UnaryCallable<RequestT,ResponseT>callable,PagedListDescriptor<RequestT,ResponseT,ResourceT>pageDescriptor,RequestTrequest,ApiCallContextcallContext)
Parameters
Name Description
callable UnaryCallable<RequestT,ResponseT>
pageDescriptor PagedListDescriptor<RequestT,ResponseT,ResourceT>
request RequestT
callContext ApiCallContext
Returns
Type Description
PageContext<RequestT,ResponseT,ResourceT>

Constructors

PageContext()

publicPageContext()

Methods

getCallContext()

publicabstractApiCallContextgetCallContext()
Returns
Type Description

getCallable()

publicabstractUnaryCallable<RequestT,ResponseT>getCallable()
Returns
Type Description
UnaryCallable<RequestT,ResponseT>

getPageDescriptor()

publicabstractPagedListDescriptor<RequestT,ResponseT,ResourceT>getPageDescriptor()
Returns
Type Description
PagedListDescriptor<RequestT,ResponseT,ResourceT>

getRequest()

publicabstractRequestTgetRequest()
Returns
Type Description
RequestT

withRequest(RequestT newRequest)

publicPageContext<RequestT,ResponseT,ResourceT>withRequest(RequestTnewRequest)
Parameter
Name Description
newRequest RequestT
Returns
Type Description
PageContext<RequestT,ResponseT,ResourceT>

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.