cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve User-Agent HTTP Header

zyx974_
Confirmed Champ
Confirmed Champ

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

Laurent_Doguin
Star Collaborator
Star Collaborator

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");

It works !

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.