Title: Provide concrete example of building custom events · Issue #640 · aws/serverless-java-container · GitHub
Open Graph Title: Provide concrete example of building custom events · Issue #640 · aws/serverless-java-container
X Title: Provide concrete example of building custom events · Issue #640 · aws/serverless-java-container
Description: To help us debug your issue fill in the basic information below using the options provided Serverless Java Container version: eg. 1.5 v1 (Spring Boot 2) and v2 (Spring Boot 3.x) Implementations: Jersey / Spring / Spring Boot / Spring Boo...
Open Graph Description: To help us debug your issue fill in the basic information below using the options provided Serverless Java Container version: eg. 1.5 v1 (Spring Boot 2) and v2 (Spring Boot 3.x) Implementations: Je...
X Description: To help us debug your issue fill in the basic information below using the options provided Serverless Java Container version: eg. 1.5 v1 (Spring Boot 2) and v2 (Spring Boot 3.x) Implementations: Je...
Opengraph URL: https://github.com/aws/serverless-java-container/issues/640
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Provide concrete example of building custom events","articleBody":"*To help us debug your issue fill in the basic information below using the options provided*\r\n\r\n*Serverless Java Container version*: `eg. 1.5`\r\nv1 (Spring Boot 2) and v2 (Spring Boot 3.x)\r\n\r\n*Implementations:* `Jersey / Spring / Spring Boot / Spring Boot 2 / Spark`\r\nSpring Boot\r\n\r\n*Framework version:* `eg SpringBoot 2.2.6.RELEASE`\r\nSpring Boot 2.x and Spring Boot 3.x\r\n\r\n*Frontend service:* `REST API / HTTP API / ALB`\r\nVPC Lattice\r\n\r\n*Deployment method:* `eg SAM, Serverless Framework, Console`\r\nN/A\r\n\r\n## Scenario\r\n*Describe what you are trying to accomplish*\r\nThis is a more general ask related to this [issue](https://github.com/awslabs/aws-serverless-java-container/issues/639). The documentation provided [here](https://github.com/awslabs/aws-serverless-java-container/wiki/Custom-event-types) indicates that just four classes need to be implemented to build the custom class. However, pursuant of trying to implement the VPC Lattice event, I discovered that in addition to creating the POJOs for the event model itself, I needed to also implement `ExceptionHandler`, `SecurityContext`, `SecurityContextWriter`. It would helpful to include a practical example of how to create the custom event, outline the minimum and optional attributes for the servlet request, and how to set fields for the response payload.\r\n\r\n## Expected behavior\r\n*Describe how you would expect the application to behave*\r\nAbility to simply or at least clear extend the framework with custom event payloads\r\n\r\n## Actual behavior\r\n*Describe what you are seeing instead*\r\nDifficulty following the documentation\r\n","author":{"url":"https://github.com/heeki","@type":"Person","name":"heeki"},"datePublished":"2023-09-20T00:36:29Z","url":"https://github.com/aws/serverless-java-container/issues/640"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9f878716-5a92-fe82-a469-cfed72fd1c6e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B9A6:2AC56D:22C418:2F1305:6AFE18F1 |
| html-safe-nonce | d2eb49b6d577dea12df5294d73faf81a882df59ac7ccbfc626282225655f63dd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUE2OjJBQzU2RDoyMkM0MTg6MkYxMzA1OjZBRkUxOEYxIiwidmlzaXRvcl9pZCI6IjQ4MzM1NTM2MzY5MTI5MjkwMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f7a737bcc01df68e823760d41ab87d42b20c2875cb58db3435255276b584f461 |
| hovercard-subject-tag | issue:1903896819 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/aws/serverless-java-container/640/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4c1cfd3f80366a7be84088e30c815f5d7610b2313bca8075d13f5b232ae4b2e5/aws/serverless-java-container/issues/640 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4c1cfd3f80366a7be84088e30c815f5d7610b2313bca8075d13f5b232ae4b2e5/aws/serverless-java-container/issues/640 |
| og:image:alt | To help us debug your issue fill in the basic information below using the options provided Serverless Java Container version: eg. 1.5 v1 (Spring Boot 2) and v2 (Spring Boot 3.x) Implementations: Je... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | heeki |
| hostname | github.com |
| expected-hostname | github.com |
| None | d0525ab1464526bf4532a5551aa348cf100dff75ef808a96fc67a08b1d946aa9 |
| turbo-cache-control | no-preview |
| go-import | github.com/aws/serverless-java-container git https://github.com/aws/serverless-java-container.git |
| octolytics-dimension-user_id | 2232217 |
| octolytics-dimension-user_login | aws |
| octolytics-dimension-repository_id | 75661534 |
| octolytics-dimension-repository_nwo | aws/serverless-java-container |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 75661534 |
| octolytics-dimension-repository_network_root_nwo | aws/serverless-java-container |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fef3993a71fa20f7be8e167132fbf9619bc66e12 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width