use of org.codehaus.enunciate.jaxrs.TypeHint in project nhin-d by DirectProject.
the class MockTxsResource method supressNotification.
@Path("suppressNotification")
@TypeHint(Boolean.class)
@POST
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public Response supressNotification(Tx notificationMessage) {
Boolean retEntity = Boolean.TRUE;
final String originalMessageId = SuppressNotificationRequest.getOriginalMessageId(notificationMessage, new DefaultTxDetailParser());
if (originalMessageId.isEmpty() || originalMessageId.equals("NotNotification")) {
retEntity = Boolean.FALSE;
}
return Response.ok(retEntity).build();
}