Page 1 of 1
About Question enthuware.ocejws.v6.2.315 :
Posted: Thu Nov 20, 2014 11:08 pm
by blacksnow666
"A Servlet-based implementation MUST support injection of the following Servlet-defined types: ServletConfig, ServletContext, HttpServletRequest and HttpServletResponse."
why is this correct?
Re: About Question enthuware.ocejws.v6.2.315 :
Posted: Fri Nov 21, 2014 1:42 pm
by fjwalraven
@Context is a standard JAX-RS annotation.
Check
https://jersey.java.net/documentation/1 ... guide.html 2.3. Extracting Request Parameters, example Example 2.18.
Or JAX-RS v1.1 Chapter 5. Context, 5.2.3 Headers.
An instance of HttpHeaders can be injected into a class field or method parameter using the @Context annotation.
I will update the explanation.
Regards,
Frits