<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Retrieve User-Agent HTTP Header in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/retrieve-user-agent-http-header/m-p/321709#M8710</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Is there a way to retrieve the User-Agent HTTP header in java code of a seam component or a listener ?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2013 08:40:54 GMT</pubDate>
    <dc:creator>zyx974_</dc:creator>
    <dc:date>2013-12-30T08:40:54Z</dc:date>
    <item>
      <title>Retrieve User-Agent HTTP Header</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/retrieve-user-agent-http-header/m-p/321709#M8710</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Is there a way to retrieve the User-Agent HTTP header in java code of a seam component or a listener ?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 08:40:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/retrieve-user-agent-http-header/m-p/321709#M8710</guid>
      <dc:creator>zyx974_</dc:creator>
      <dc:date>2013-12-30T08:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve User-Agent HTTP Header</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/retrieve-user-agent-http-header/m-p/321710#M8711</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We actually do this in the &lt;A href="https://github.com/nuxeo/nuxeo-platform-video/blob/master/nuxeo-platform-video-jsf/src/main/java/org/nuxeo/ecm/platform/video/VideoActions.java"&gt;VideoActions&lt;/A&gt; seam component:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    ExternalContext econtext = FacesContext.getCurrentInstance().getExternalContext();
    HttpServletRequest request = (HttpServletRequest) econtext.getRequest();
    return request.getHeader("User-Agent");
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Jan 2014 11:49:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/retrieve-user-agent-http-header/m-p/321710#M8711</guid>
      <dc:creator>Laurent_Doguin</dc:creator>
      <dc:date>2014-01-02T11:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve User-Agent HTTP Header</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/retrieve-user-agent-http-header/m-p/321711#M8712</link>
      <description>&lt;P&gt;It works !&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 13:55:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/retrieve-user-agent-http-header/m-p/321711#M8712</guid>
      <dc:creator>zyx974_</dc:creator>
      <dc:date>2014-01-14T13:55:26Z</dc:date>
    </item>
  </channel>
</rss>

