Class QueryProtocolSpec
- java.lang.Object
-
- software.amazon.awssdk.codegen.poet.client.specs.QueryProtocolSpec
-
- All Implemented Interfaces:
ProtocolSpec
- Direct Known Subclasses:
Ec2ProtocolSpec
,XmlProtocolSpec
public class QueryProtocolSpec extends Object implements ProtocolSpec
-
-
Field Summary
Fields Modifier and Type Field Description protected IntermediateModel
intermediateModel
protected PoetExtension
poetExtensions
protected boolean
useSraAuth
-
Constructor Summary
Constructors Constructor Description QueryProtocolSpec(IntermediateModel intermediateModel, PoetExtension poetExtensions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.codegen.poet.client.specs.ProtocolSpec
additionalMethods, asyncMarshaller, createEventstreamErrorResponseHandler, credentialType, discoveredEndpoint, executeFutureValueType, getClientHandlerClass, getPojoResponseType, hostPrefixExpression, populateHttpStatusCode, publishMetrics, publishMetricsWhenComplete, registerModeledExceptions, streamingMarshallerCode, streamingOutputWhenComplete, syncStreamingMarshaller
-
-
-
-
Field Detail
-
poetExtensions
protected final PoetExtension poetExtensions
-
intermediateModel
protected final IntermediateModel intermediateModel
-
useSraAuth
protected final boolean useSraAuth
-
-
Constructor Detail
-
QueryProtocolSpec
public QueryProtocolSpec(IntermediateModel intermediateModel, PoetExtension poetExtensions)
-
-
Method Detail
-
protocolFactory
public com.squareup.javapoet.FieldSpec protocolFactory(IntermediateModel model)
- Specified by:
protocolFactory
in interfaceProtocolSpec
-
protocolFactoryClass
protected Class<?> protocolFactoryClass()
-
initProtocolFactory
public com.squareup.javapoet.MethodSpec initProtocolFactory(IntermediateModel model)
- Specified by:
initProtocolFactory
in interfaceProtocolSpec
-
responseHandler
public com.squareup.javapoet.CodeBlock responseHandler(IntermediateModel model, OperationModel opModel)
- Specified by:
responseHandler
in interfaceProtocolSpec
-
errorResponseHandler
public Optional<com.squareup.javapoet.CodeBlock> errorResponseHandler(OperationModel opModel)
- Specified by:
errorResponseHandler
in interfaceProtocolSpec
-
executionHandler
public com.squareup.javapoet.CodeBlock executionHandler(OperationModel opModel)
- Specified by:
executionHandler
in interfaceProtocolSpec
-
asyncExecutionHandler
public com.squareup.javapoet.CodeBlock asyncExecutionHandler(IntermediateModel intermediateModel, OperationModel opModel)
Description copied from interface:ProtocolSpec
Execution handler invocation only differs for protocols that support streaming outputs (REST-JSON, REST-XML).- Specified by:
asyncExecutionHandler
in interfaceProtocolSpec
-
createErrorResponseHandler
public Optional<com.squareup.javapoet.MethodSpec> createErrorResponseHandler()
- Specified by:
createErrorResponseHandler
in interfaceProtocolSpec
-
-