public class DelegatingAsyncClientClass extends AsyncClientInterface
clientPackageName, STREAMING_TYPE_VARIABLE
Constructor and Description |
---|
DelegatingAsyncClientClass(IntermediateModel model) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAdditionalMethods(com.squareup.javapoet.TypeSpec.Builder type) |
protected void |
addAnnotations(com.squareup.javapoet.TypeSpec.Builder type) |
protected void |
addCloseMethod(com.squareup.javapoet.TypeSpec.Builder type) |
protected void |
addFields(com.squareup.javapoet.TypeSpec.Builder type) |
protected void |
addInterfaceClass(com.squareup.javapoet.TypeSpec.Builder type) |
protected void |
addModifiers(com.squareup.javapoet.TypeSpec.Builder type) |
com.squareup.javapoet.ClassName |
className() |
protected com.squareup.javapoet.TypeSpec.Builder |
createTypeSpec() |
protected com.squareup.javapoet.MethodSpec.Builder |
operationBody(com.squareup.javapoet.MethodSpec.Builder builder,
OperationModel opModel)
Add the implementation body.
|
protected List<com.squareup.javapoet.MethodSpec> |
operations() |
protected com.squareup.javapoet.MethodSpec |
serviceClientConfigMethod() |
protected com.squareup.javapoet.MethodSpec.Builder |
utilitiesOperationBody(com.squareup.javapoet.MethodSpec.Builder builder) |
protected com.squareup.javapoet.MethodSpec.Builder |
waiterOperationBody(com.squareup.javapoet.MethodSpec.Builder builder) |
addWaiterMethod, paginatedMethodBody, paginatedTraditionalMethod, poetSpec, traditionalMethod, utilitiesMethod
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
staticImports
public DelegatingAsyncClientClass(IntermediateModel model)
protected com.squareup.javapoet.TypeSpec.Builder createTypeSpec()
createTypeSpec
in class AsyncClientInterface
protected void addInterfaceClass(com.squareup.javapoet.TypeSpec.Builder type)
addInterfaceClass
in class AsyncClientInterface
protected void addAnnotations(com.squareup.javapoet.TypeSpec.Builder type)
addAnnotations
in class AsyncClientInterface
protected void addModifiers(com.squareup.javapoet.TypeSpec.Builder type)
addModifiers
in class AsyncClientInterface
protected void addFields(com.squareup.javapoet.TypeSpec.Builder type)
addFields
in class AsyncClientInterface
protected void addAdditionalMethods(com.squareup.javapoet.TypeSpec.Builder type)
addAdditionalMethods
in class AsyncClientInterface
protected com.squareup.javapoet.MethodSpec serviceClientConfigMethod()
serviceClientConfigMethod
in class AsyncClientInterface
protected void addCloseMethod(com.squareup.javapoet.TypeSpec.Builder type)
addCloseMethod
in class AsyncClientInterface
protected List<com.squareup.javapoet.MethodSpec> operations()
operations
in class AsyncClientInterface
public com.squareup.javapoet.ClassName className()
className
in interface ClassSpec
className
in class AsyncClientInterface
protected com.squareup.javapoet.MethodSpec.Builder operationBody(com.squareup.javapoet.MethodSpec.Builder builder, OperationModel opModel)
AsyncClientInterface
UnsupportedOperationException
except for simple method overloads which just delegate to the traditional request/response method. This is overridden
in AsyncClientClass
to add an actual implementation.operationBody
in class AsyncClientInterface
builder
- Current MethodSpec.Builder
to add implementation to.opModel
- Operation to generate method body for.protected com.squareup.javapoet.MethodSpec.Builder utilitiesOperationBody(com.squareup.javapoet.MethodSpec.Builder builder)
utilitiesOperationBody
in class AsyncClientInterface
protected com.squareup.javapoet.MethodSpec.Builder waiterOperationBody(com.squareup.javapoet.MethodSpec.Builder builder)
waiterOperationBody
in class AsyncClientInterface
Copyright © 2023. All rights reserved.