-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add implementation of delegating RequestStreamHandler #603
Conversation
There are failing tests. @olegz Could you please take a look? |
76394c0
to
123a1b4
Compare
EndpointConfiguration: REGIONAL | ||
|
||
|
||
Resources: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.
StageName contains invalid characters (Pattern: ^[a-zA-Z0-9-_]+$) at Resources/ServerlessHttpApiApiGatewayDefaultStage/Properties/StageName
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good other than the tabs that should be spaces.
@@ -29,10 +29,11 @@ public class AwsProxyRequest { | |||
//------------------------------------------------------------- | |||
|
|||
private String body; | |||
private String resource; | |||
private String version; | |||
private String resource; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tab
return version; | ||
} | ||
|
||
public void setVersion(String version) { | ||
this.version = version; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tabs
<repository> | ||
<id>spring-snapshots</id> | ||
<name>Spring Snapshots</name> | ||
<url>https://repo.spring.io/snapshot</url> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
</repository> | ||
<repository> | ||
<id>spring-milestones</id> | ||
<name>Spring Milestones</name> | ||
<url>https://repo.spring.io/milestone</url> | ||
<snapshots> | ||
<enabled>false</enabled> | ||
</snapshots> | ||
</repository> | ||
</repositories> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tabs
*/ | ||
public class SpringDelegatingLambdaContainerHandler implements RequestStreamHandler { | ||
|
||
private final Class<?>[] startupClasses; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of this file has tabs instead of spaces
@SuppressWarnings("rawtypes") | ||
public class SpringDelegatingLambdaContainerHandlerTests { | ||
|
||
private static String API_GATEWAY_EVENT = "{\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole file has tabs instead of spaces.
|
||
@Bean("CognitoIdentityFilter") | ||
public Filter cognitoFilter() { | ||
return new CognitoIdentityFilter(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a single tab here (4 spaces followed by a tab)
This new handler delegates to spring-cloud-function-serverless-web module which is managed by Spring team
This new handler delegates to spring-cloud-function-serverless-web module which is managed by Spring team
This PR is a substitution for the one I canceled #578 and is better in a way that it requires user to opt-in to use this handler. The current AWS code is not touched providing a very smooth and safe transition.
I will also be publishing a sample on how to use it
By submitting this pull request