Skip to content

Commit

Permalink
Address review items
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaidics committed Jun 18, 2024
1 parent 47de06c commit fb43725
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,19 @@ public <C> BindingConfigBuilder<C> injectProtocolServerRoutes(
if (operation.bindings != null)
{
AsyncapiBinding httpBinding = operation.bindings.get("http");
String method = httpBinding.method;
binding
.route()
.exit(qname)
.when(HttpConditionConfig::builder)
.header(":path", path)
.header(":method", method)
.build()
.inject(route -> injectHttpServerRouteGuarded(route, server))
.build();
if (httpBinding != null)
{
String method = httpBinding.method;
binding
.route()
.exit(qname)
.when(HttpConditionConfig::builder)
.header(":path", path)
.header(":method", method)
.build()
.inject(route -> injectHttpServerRouteGuarded(route, server))
.build();
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ public final class SseKafkaConditionConfigBuilder<T> extends ConfigBuilder<T, Ss
private final Function<ConditionConfig, T> mapper;
private String path;

public SseKafkaConditionConfigBuilder(
SseKafkaConditionConfigBuilder(
Function<ConditionConfig, T> mapper)
{
this.mapper = mapper;
}

public SseKafkaConditionConfigBuilder<T> path(
String path)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public final class SseKafkaWithConfigBuilder<T> extends ConfigBuilder<T, SseKafk
public List<SseKafkaWithFilterConfig> filters;
public String eventId;

public SseKafkaWithConfigBuilder(
SseKafkaWithConfigBuilder(
Function<WithConfig, T> mapper)
{
this.mapper = mapper;
Expand All @@ -56,7 +56,6 @@ public SseKafkaWithConfigBuilder<T> eventId(
return this;
}


@Override
@SuppressWarnings("unchecked")
protected Class<SseKafkaWithConfigBuilder<T>> thisType()
Expand Down

0 comments on commit fb43725

Please sign in to comment.