public class QueryProtocolSpec extends Object implements ProtocolSpec
| Modifier and Type | Field and Description |
|---|---|
protected IntermediateModel |
intermediateModel |
protected PoetExtension |
poetExtensions |
| Constructor and Description |
|---|
QueryProtocolSpec(IntermediateModel intermediateModel,
PoetExtension poetExtensions) |
| Modifier and Type | Method and Description |
|---|---|
com.squareup.javapoet.CodeBlock |
asyncExecutionHandler(IntermediateModel intermediateModel,
OperationModel opModel)
Execution handler invocation only differs for protocols that support streaming outputs (REST-JSON, REST-XML).
|
Optional<com.squareup.javapoet.MethodSpec> |
createErrorResponseHandler() |
Optional<com.squareup.javapoet.CodeBlock> |
errorResponseHandler(OperationModel opModel) |
com.squareup.javapoet.CodeBlock |
executionHandler(OperationModel opModel) |
com.squareup.javapoet.MethodSpec |
initProtocolFactory(IntermediateModel model) |
com.squareup.javapoet.FieldSpec |
protocolFactory(IntermediateModel model) |
protected Class<?> |
protocolFactoryClass() |
com.squareup.javapoet.CodeBlock |
responseHandler(IntermediateModel model,
OperationModel opModel) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadditionalMethods, asyncMarshaller, credentialType, discoveredEndpoint, executeFutureValueType, getClientHandlerClass, getPojoResponseType, hostPrefixExpression, populateHttpStatusCode, publishMetrics, publishMetricsWhenComplete, registerModeledExceptions, streamingMarshallerCode, streamingOutputWhenComplete, syncStreamingMarshallerprotected final PoetExtension poetExtensions
protected final IntermediateModel intermediateModel
public QueryProtocolSpec(IntermediateModel intermediateModel, PoetExtension poetExtensions)
public com.squareup.javapoet.FieldSpec protocolFactory(IntermediateModel model)
protocolFactory in interface ProtocolSpecprotected Class<?> protocolFactoryClass()
public com.squareup.javapoet.MethodSpec initProtocolFactory(IntermediateModel model)
initProtocolFactory in interface ProtocolSpecpublic com.squareup.javapoet.CodeBlock responseHandler(IntermediateModel model, OperationModel opModel)
responseHandler in interface ProtocolSpecpublic Optional<com.squareup.javapoet.CodeBlock> errorResponseHandler(OperationModel opModel)
errorResponseHandler in interface ProtocolSpecpublic com.squareup.javapoet.CodeBlock executionHandler(OperationModel opModel)
executionHandler in interface ProtocolSpecpublic com.squareup.javapoet.CodeBlock asyncExecutionHandler(IntermediateModel intermediateModel, OperationModel opModel)
ProtocolSpecasyncExecutionHandler in interface ProtocolSpecpublic Optional<com.squareup.javapoet.MethodSpec> createErrorResponseHandler()
createErrorResponseHandler in interface ProtocolSpecCopyright © 2023. All rights reserved.