Play 2.5.4 - how to implement CSRF filters?
<p>How does one implement CSRFfilters in Play 2.5.4? The play documentation is wrong (doesn't compile, and can't under the play 2.5.4 java api), the example here doesn't compile (<a href="https://stackoverflow.com/questions/37408269/play-2-5-disable-csrf-protection-for-some-requests">Play 2.5 disable csrf protection for some requests</a>).</p>

<p>the 2.5 java API has a CRSFFilter class but it is not a sub class of EssentialFilter so cannot be added to the array of EssentialFilters because it is the wrong type.</p>

<p>Is this functionality currently broken for Play 2.5.4 or is the documentation currently misleading/wrong? </p>