Search in sources :

Example 1 with TypeHint

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();
}
Also used : DefaultTxDetailParser(org.nhindirect.common.tx.impl.DefaultTxDetailParser) Path(javax.ws.rs.Path) TypeHint(org.codehaus.enunciate.jaxrs.TypeHint) POST(javax.ws.rs.POST) Produces(javax.ws.rs.Produces) Consumes(javax.ws.rs.Consumes)

Aggregations

Consumes (javax.ws.rs.Consumes)1 POST (javax.ws.rs.POST)1 Path (javax.ws.rs.Path)1 Produces (javax.ws.rs.Produces)1 TypeHint (org.codehaus.enunciate.jaxrs.TypeHint)1 DefaultTxDetailParser (org.nhindirect.common.tx.impl.DefaultTxDetailParser)1