-
Notifications
You must be signed in to change notification settings - Fork 14
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
Restapi caller #48
base: master
Are you sure you want to change the base?
Restapi caller #48
Conversation
Gson gson = new GsonBuilder().serializeNulls().create(); | ||
String payload = gson.toJson(eventMap); | ||
Map<String, String> headers = new HashMap<String, String>(); | ||
headers.putAll(staticHeaderProvider.getHeaders()); |
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.
null checks on these values. These will be implemented by any client and there will be idiots who will return null if they dont want to send out any custom/static headers.
I see that most of the new code/classes do not have code documentation - class summary, copyright notice and such. Can you please add these in? |
Data Layer for making a post call to the configured URI with the event as json payload.