Are you using CXF HTTP Binding to build your REST service, or CXF JAX-RS
(JSR-311) instead?
In CXF JAX-RS (JSR-311), the standard way to access HTTP headers is using
@HeaderParam, like below:
@HttpMethod("GET")
@UriTemplate("/books/{bookId}/")
public Book getBook(@UriParam("bookId") String id, @HeaderParam
("httpheaderName") String headerValue) {
....
}
Of course, this @HeaderParam feature is not implemented yet in CXF :-). But can
be supported very quickly if people started asking for it. See JIRA
https://issues.apache.org/jira/browse/CXF-1011
Cheers,
Jervis
> -----Original Message-----
> From: Todd Orr [mailto:[EMAIL PROTECTED]
> Sent: 2008年1月8日 12:19
> To: [email protected]
> Subject: Rest Header Info
>
> I need to get some header info during REST requests for security
> checks. I tried to use the @Resource WebServiceContext method
> described in the WS documents but quickly learned that this doesn't
> work. Is there any method for RESTful services to do this?
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland