Commit 2b29f36
refactor: Update SSEEventListener to use ProtoUtils.FromProto.streamingEventKind
Updated SSEEventListener to use the new ProtoUtils.FromProto.streamingEventKind()
method instead of Jackson for deserializing streaming events.
Changes:
- Replaced Jackson JsonNode parsing with JSONRPCUtils.parseResponseEvent()
- Now uses ProtoUtils.FromProto.streamingEventKind() to convert proto
StreamResponse to domain StreamingEventKind
- Removed dependency on Utils.OBJECT_MAPPER
- Simplified error handling - JSONRPCUtils.parseResponseEvent() throws
JSONRPCError which is caught and passed to errorHandler
This ensures consistent use of protobuf JSON parsing throughout the
streaming implementation and leverages the StreamResponseMapper we
created earlier.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent dea14ea commit 2b29f36
File tree
1 file changed
+16
-25
lines changed- client/transport/jsonrpc/src/main/java/io/a2a/client/transport/jsonrpc/sse
1 file changed
+16
-25
lines changedLines changed: 16 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | | - | |
14 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 32 | + | |
37 | 33 | | |
38 | 34 | | |
39 | 35 | | |
| |||
63 | 59 | | |
64 | 60 | | |
65 | 61 | | |
66 | | - | |
| 62 | + | |
67 | 63 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
82 | 71 | | |
83 | | - | |
84 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
85 | 76 | | |
86 | 77 | | |
87 | 78 | | |
| |||
0 commit comments