public class AsyncClientInterface extends Object implements ClassSpec
Modifier and Type | Field and Description |
---|---|
protected com.squareup.javapoet.ClassName |
className |
protected String |
clientPackageName |
protected static String |
EVENT_PUBLISHER_PARAM_NAME |
protected IntermediateModel |
model |
static com.squareup.javapoet.TypeVariableName |
STREAMING_TYPE_VARIABLE |
Constructor and Description |
---|
AsyncClientInterface(IntermediateModel model) |
Modifier and Type | Method and Description |
---|---|
com.squareup.javapoet.ClassName |
className() |
protected com.squareup.javapoet.MethodSpec.Builder |
operationBody(com.squareup.javapoet.MethodSpec.Builder builder,
OperationModel operationModel)
Add the implementation body.
|
protected List<com.squareup.javapoet.MethodSpec> |
operations() |
protected com.squareup.javapoet.MethodSpec.Builder |
paginatedMethodBody(com.squareup.javapoet.MethodSpec.Builder builder,
OperationModel operationModel) |
com.squareup.javapoet.TypeSpec |
poetSpec() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
staticImports
public static final com.squareup.javapoet.TypeVariableName STREAMING_TYPE_VARIABLE
protected static final String EVENT_PUBLISHER_PARAM_NAME
protected final IntermediateModel model
protected final com.squareup.javapoet.ClassName className
protected final String clientPackageName
public AsyncClientInterface(IntermediateModel model)
public com.squareup.javapoet.TypeSpec poetSpec()
public com.squareup.javapoet.ClassName className()
protected final List<com.squareup.javapoet.MethodSpec> operations()
protected com.squareup.javapoet.MethodSpec.Builder paginatedMethodBody(com.squareup.javapoet.MethodSpec.Builder builder, OperationModel operationModel)
protected com.squareup.javapoet.MethodSpec.Builder operationBody(com.squareup.javapoet.MethodSpec.Builder builder, OperationModel operationModel)
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.builder
- Current MethodSpec.Builder
to add implementation to.operationModel
- Operation to generate method body for.Copyright © 2018. All rights reserved.