You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by GitBox <gi...@apache.org> on 2019/05/03 13:21:44 UTC

[GitHub] [unomi] sergehuber commented on a change in pull request #85: [UNOMI-228] Replace user agent detector library

sergehuber commented on a change in pull request #85: [UNOMI-228] Replace user agent detector library
URL: https://github.com/apache/unomi/pull/85#discussion_r280771087
 
 

 ##########
 File path: plugins/request/src/main/java/org/apache/unomi/plugins/request/actions/SetRemoteHostInfoAction.java
 ##########
 @@ -150,14 +148,19 @@ public int execute(Action action, Event event) {
             logger.error("Cannot lookup IP", e);
         }
 
-        UserAgentStringParser parser = UADetectorServiceFactory.getResourceModuleParser();
-        ReadableUserAgent agent = parser.parse(httpServletRequest.getHeader("User-Agent"));
-        session.setProperty("operatingSystemFamily", agent.getOperatingSystem().getFamilyName());
-        session.setProperty("operatingSystemName", agent.getOperatingSystem().getName());
-        session.setProperty("userAgentName", agent.getName());
-        session.setProperty("userAgentVersion", agent.getVersionNumber().toVersionString());
+        UserAgentAnalyzer uaa = UserAgentAnalyzer
 
 Review comment:
   Sorry for the delay in answering. This sounds good ! Thanks

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services