<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><blockquote type="cite"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>Another option that might work out of the box would be to use the jax-rs @Consumes annotation e.g&nbsp;<span class="" style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; line-height: 16.799999237060547px; white-space: pre;">@Consumes</span><span class="" style="font-weight: bold; color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; line-height: 16.799999237060547px; white-space: pre;">({</span><span class="" style="color: rgb(221, 17, 68); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; line-height: 16.799999237060547px; white-space: pre;">"application/vnd.aerogear.v101+json"</span><span class="" style="font-weight: bold; color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; line-height: 16.799999237060547px; white-space: pre;">}) on the service endpoints</span>. &nbsp; &nbsp; &nbsp;</div><div>So by making an abstract PushNotificationSenderEndpoint and and several PushNotificationSenderEndpointV101, PushNotificationSenderEndpointV102 with the right @Consumes annotation should work. I haven't tried it though&nbsp;</div></div></div></div></div></blockquote><br></div><div><br></div><div>Tried out this option as well, seems to work, but to use it one must set the Content-Type to “application/vnd.aerogear.v101+json” instead of the Accept header.</div><br></body></html>