How to get the client's ip address in jax rs and ws

In this tutorial I'll not teach how to create jax-rs nor jax-ws web service but rather will show how we can get the client's or the caller's ip address who invoke the service. In jax-rs: //inject@Contextprivate HttpServletRequest httpServletRequest;public void serviceMethod() { //get the ip log.debug("IP="...

afl-fuzz: making up grammar with a dictionary in hand

One of the most significant limitations of afl-fuzz is that its mutation engine is syntax-blind and optimized for compact data formats, such as binary files (e.g., archives, multimedia) or terse human-readable languages (RTF, shell scripts). Any general-purpose fuzzer will have a harder time dealing...

How to implement no caching on JSF pages

Currently there are 2 ways I know that can do this.1.) By implementing Filter and manually overriding the cache controls. See code below (note: not my original I found this somewhere else long time ago):@WebFilter(servletNames = { "Faces Servlet" })public class NoCacheFilter implements Filter { @Override...