@ GET @ PermitAll @ Path ( "uniquetag/{uniqueTag}" ) public Response findByUniqueTag ( @ PathParam ( "uniqueTag" ) String uniqueTag ) { checkNotNull ( uniqueTag ) ; DContact contact = dao . findByUniqueTag ( null , uniqueTag ) ; return null != contact ? Response . ok ( contact ) . build ( ) : Response . status ( Response . Status . NOT_FOUND ) . build ( ) ; }
Find a contact based on its unique tag .