Class ResponseHandler
java.lang.Object
io.clientcore.annotation.processor.utils.ResponseHandler
Utility class to generate response body mode assignment and response handling based on the response body mode.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidgenerateResponseHandling(com.github.javaparser.ast.stmt.BlockStmt body, TypeMirror returnType, HttpRequestContext method, boolean serializationFormatSet) Handles the generation of the complete response processing flow based on the return type.
-
Method Details
-
generateResponseHandling
public static void generateResponseHandling(com.github.javaparser.ast.stmt.BlockStmt body, TypeMirror returnType, HttpRequestContext method, boolean serializationFormatSet) Handles the generation of the complete response processing flow based on the return type.- Parameters:
body- the method builder to append generated code.returnType- the return type of the method.method- whether request options are used.serializationFormatSet- indicates if a serialization format is set.
-