users@glassfish.java.net

JAX RS / HttpRequest Object?

From: <glassfish_at_javadesktop.org>
Date: Tue, 16 Feb 2010 11:11:24 PST

While using Soap web services I am able to get the HttpServletRequest by doing this:

[code]
@Resource
WebServiceContext wsContext;

@WebMethod
public void myMethod (){

   (javax.servlet.http.HttpServletRequest) wsContext.getMessageContext().get(
      MessageContext.SERVLET_REQUEST);
}

[/code]

Is it possible to get an http servlet request using JAX RS?

Thanks for any tips.
[Message sent by forum member 'hoffman462' (HoffmanDanielG_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=387031