public class SameTokenAsyncResponseClassSpec extends AsyncResponseClassSpec
LAST_PAGE_FIELDc2jOperationName, CLIENT_MEMBER, HAS_NEXT_PAGE_METHOD, LAST_SUCCESSFUL_PAGE_LITERAL, model, NEXT_PAGE_FETCHER_MEMBER, NEXT_PAGE_METHOD, operationModel, paginationDocs, paginatorDefinition, poetExtensions, PREVIOUS_PAGE_METHOD_ARGUMENT, REQUEST_MEMBER, RESPONSE_LITERAL, RESUME_METHOD, typeProvider| Constructor and Description |
|---|
SameTokenAsyncResponseClassSpec(IntermediateModel model,
String c2jOperationName,
PaginatorDefinition paginatorDefinition) |
| Modifier and Type | Method and Description |
|---|---|
protected Stream<com.squareup.javapoet.FieldSpec> |
fields() |
protected com.squareup.javapoet.CodeBlock |
hasNextPageMethodBody() |
protected String |
nextPageFetcherArgument() |
protected com.squareup.javapoet.TypeSpec.Builder |
nextPageFetcherClass()
aW
Generates a inner class that implements
AsyncPageFetcher. |
protected com.squareup.javapoet.CodeBlock |
nextPageMethodBody() |
protected com.squareup.javapoet.MethodSpec |
privateConstructor() |
asyncClientInterfaceField, className, getAsyncClientInterfaceName, lastPageField, poetSpec, publicConstructorcodeToGetNextPageIfOldResponseIsNotNull, constructRequestFromLastPage, fluentGetterMethodForResponseMember, fluentGetterMethodsForOutputToken, getIteratorLambdaBlock, getTypeForResultKey, memberModelForResponseMember, nextPageFetcherClassName, requestClassField, requestType, responseType, resumeMethodBuilderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstaticImportspublic SameTokenAsyncResponseClassSpec(IntermediateModel model, String c2jOperationName, PaginatorDefinition paginatorDefinition)
protected Stream<com.squareup.javapoet.FieldSpec> fields()
fields in class AsyncResponseClassSpecprotected com.squareup.javapoet.MethodSpec privateConstructor()
privateConstructor in class AsyncResponseClassSpecprotected String nextPageFetcherArgument()
nextPageFetcherArgument in class AsyncResponseClassSpecprotected com.squareup.javapoet.TypeSpec.Builder nextPageFetcherClass()
AsyncResponseClassSpecAsyncPageFetcher. This is a helper class that can be used
to find if there are more pages in the response and to get the next page if exists.nextPageFetcherClass in class AsyncResponseClassSpecprotected com.squareup.javapoet.CodeBlock hasNextPageMethodBody()
hasNextPageMethodBody in class PaginatorsClassSpecprotected com.squareup.javapoet.CodeBlock nextPageMethodBody()
nextPageMethodBody in class PaginatorsClassSpecCopyright © 2023. All rights reserved.