Retrieve User-Agent HTTP Header
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2013 03:40 AM
Hi,
Is there a way to retrieve the User-Agent HTTP header in java code of a seam component or a listener ?
Thanks.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2014 06:49 AM
Hi,
We actually do this in the VideoActions seam component:
ExternalContext econtext = FacesContext.getCurrentInstance().getExternalContext();
HttpServletRequest request = (HttpServletRequest) econtext.getRequest();
return request.getHeader("User-Agent");
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2014 08:55 AM
It works !
