Skip to content
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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

aman9bits
Copy link

Data Layer for making a post call to the configured URI with the event as json payload.

@aman9bits aman9bits closed this Dec 14, 2015
@aman9bits aman9bits reopened this Dec 14, 2015
Gson gson = new GsonBuilder().serializeNulls().create();
String payload = gson.toJson(eventMap);
Map<String, String> headers = new HashMap<String, String>();
headers.putAll(staticHeaderProvider.getHeaders());

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.

@regunathb
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants