Ho to Access HttpServletRequest in static class

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Ho to Access HttpServletRequest in static class

sajanmje
This post has NOT been accepted by the mailing list yet.
Hi All,

Some one can you help me to access HttpServletRequest in static calss ?
I tried below one and it;s not working. if you have any sample code pls share.

public class ApplicationServiceErrorCode
{
     @Context
         private final HttpServletRequest httpRequest;
}

Thanks & Regards,
Sajan