@ GET @ Path ( "/{pushAppID}" ) @ Produces ( MediaType . APPLICATION_JSON ) public Response findById ( @ PathParam ( "pushAppID" ) String pushApplicationID , @ QueryParam ( "includeDeviceCount" ) @ DefaultValue ( "false" ) boolean includeDeviceCount , @ QueryParam ( "includeActivity" ) @ DefaultValue ( "false" ) boolean includeActivity ) { PushApplication pushApp = getSearch ( ) . findByPushApplicationIDForDeveloper ( pushApplicationID ) ; if ( pushApp != null ) { logger . trace ( "Query details for push application {}" , pushApp . getName ( ) ) ; ResponseBuilder response = Response . ok ( pushApp ) ; if ( includeActivity ) { logger . trace ( "Include activity header" ) ; putActivityIntoResponseHeaders ( pushApp , response ) ; } if ( includeDeviceCount ) { logger . trace ( "Include device count header" ) ; putDeviceCountIntoResponseHeaders ( pushApp , response ) ; } return response . build ( ) ; } return Response . status ( Status . NOT_FOUND ) . entity ( "Could not find requested PushApplicationEntity" ) . build ( ) ; }
Get Push Application .