public class JsonProtocolSpec extends Object implements ProtocolSpec
Constructor and Description |
---|
JsonProtocolSpec(PoetExtensions poetExtensions) |
Modifier and Type | Method and Description |
---|---|
com.squareup.javapoet.CodeBlock |
asyncExecutionHandler(OperationModel opModel)
Execution handler invocation only differs for protocols that support streaming outputs (REST-JSON, REST-XML).
|
Optional<com.squareup.javapoet.MethodSpec> |
createErrorResponseHandler() |
com.squareup.javapoet.CodeBlock |
errorResponseHandler(OperationModel opModel) |
List<com.squareup.javapoet.CodeBlock> |
errorUnmarshallers(IntermediateModel model) |
com.squareup.javapoet.CodeBlock |
executionHandler(OperationModel opModel) |
com.squareup.javapoet.MethodSpec |
initProtocolFactory(IntermediateModel model) |
com.squareup.javapoet.FieldSpec |
protocolFactory(IntermediateModel model) |
com.squareup.javapoet.CodeBlock |
responseHandler(IntermediateModel model,
OperationModel opModel) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
additionalMethods, getClientHandlerClass
public JsonProtocolSpec(PoetExtensions poetExtensions)
public com.squareup.javapoet.FieldSpec protocolFactory(IntermediateModel model)
protocolFactory
in interface ProtocolSpec
public com.squareup.javapoet.MethodSpec initProtocolFactory(IntermediateModel model)
initProtocolFactory
in interface ProtocolSpec
public com.squareup.javapoet.CodeBlock responseHandler(IntermediateModel model, OperationModel opModel)
responseHandler
in interface ProtocolSpec
public com.squareup.javapoet.CodeBlock errorResponseHandler(OperationModel opModel)
errorResponseHandler
in interface ProtocolSpec
public com.squareup.javapoet.CodeBlock executionHandler(OperationModel opModel)
executionHandler
in interface ProtocolSpec
public com.squareup.javapoet.CodeBlock asyncExecutionHandler(OperationModel opModel)
ProtocolSpec
asyncExecutionHandler
in interface ProtocolSpec
public Optional<com.squareup.javapoet.MethodSpec> createErrorResponseHandler()
createErrorResponseHandler
in interface ProtocolSpec
public List<com.squareup.javapoet.CodeBlock> errorUnmarshallers(IntermediateModel model)
errorUnmarshallers
in interface ProtocolSpec
Copyright © 2018. All rights reserved.