Jersey(1.19.1)

Previous sections have introduced the use of @Context. The JAX-RS specification presents all the standard JAX-RS Java types that may be used with @Context.

When deploying a JAX-RS application using servlet then ServletConfigServletContextHttpServletRequest and HttpServletResponse are available using @Context.

原文地址:https://www.cnblogs.com/huey/p/5399840.html