users@jersey.java.net

[Jersey] 428 Precondition Required

From: cowwoc <cowwoc_at_bbs.darktech.org>
Date: Tue, 30 Apr 2013 15:17:43 -0400

Hi,

     What is the best way to get a method to return 428 Precondition
Required as mentioned here? http://tools.ietf.org/html/rfc6585#section-3

     I know I can inject HttpHeaders, parse them for the relevant
headers and return 428 on failure but I'm wondering if Jersey has an
existing mechanism that will do all this for me? Is there something like
Request.evaluatePreconditions() for requiring preconditions? If not,
could we add Request.requirePreconditions()?

Thanks,
Gili