As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi,
Is there a way to retrieve the User-Agent HTTP header in java code of a seam component or a listener ?
Thanks.
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 !