Skip to content

Commit

Permalink
codegen: Namespace event stream writer and reader implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
skmcgrail committed Mar 23, 2022
1 parent 17be655 commit 114c927
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -1546,12 +1546,12 @@ public static String getAsyncWriteReporterName(Shape shape, ServiceShape service

public static String getEventStreamWriterImplName(Shape shape, ServiceShape serviceShape) {
var name = shape.getId().getName(serviceShape);
return StringUtils.uncapitalize(name);
return StringUtils.uncapitalize(name) + "Writer";
}

public static String getEventStreamReaderImplName(Shape shape, ServiceShape serviceShape) {
var name = shape.getId().getName(serviceShape);
return StringUtils.uncapitalize(name);
return StringUtils.uncapitalize(name) + "Reader";
}

private static Symbol getEventStreamSymbol(String name) {
Expand Down Expand Up @@ -1686,7 +1686,7 @@ public static void writeOperationSerializerMiddlewareEventStreamSetup(
EventStreamInfo info
) {
context.getWriter().get()
.write("restEncoder.SetHeader(\"Content-Type\").String($S)", "application/vnd.amazon.eventstream")
.write("httpBindingEncoder.SetHeader(\"Content-Type\").String($S)", "application/vnd.amazon.eventstream")
.write("");
}

Expand Down

0 comments on commit 114c927

Please sign in to comment.