Examples of UserAgent


Examples of org.beangle.web.agent.Useragent

   * @param request
   * @return
   */
  public static Useragent getUserAgent(HttpServletRequest request) {
    String head = request.getHeader("USER-AGENT");
    return new Useragent(getIpAddr(request), Browser.parse(head), Os.parse(head));
  }
View Full Code Here

Examples of org.objectweb.joram.mom.proxies.UserAgent

//          }
//        } catch (Exception e) {
//          throw new RequestException(e.getMessage());
//        }

        UserAgent proxy = new UserAgent();
        proxy.setName(name);
        proxId = proxy.getId();
       
        // set interceptors.
        proxy.setInterceptors(request.getProperties());
       
        try {
          // deploy UserAgent
          proxy.deploy();
          if (logger.isLoggable(BasicLevel.DEBUG))
            logger.log(BasicLevel.DEBUG, "doProcess CreateUserRequest:: store (in usersTable) this identity = " + identity);
          usersTable.put(name, identity);
          proxiesTable.put(name, proxy.getId());

          info = strbuf.append("Request [").append(request.getClass().getName())
          .append("], processed by AdminTopic on server [").append(serverId)
          .append("], successful [true]: proxy [")
          .append(proxId.toString()).append("] for user [").append(name)
View Full Code Here

Examples of ua_parser.UserAgent

      return null;
    }
    if (cacheUserAgent == null) {
      cacheUserAgent = new LRUMap(CACHE_SIZE);
    }
    UserAgent userAgent = cacheUserAgent.get(agentString);
    if (userAgent != null) {
      return userAgent;
    }
    userAgent = super.parseUserAgent(agentString);
    cacheUserAgent.put(agentString, userAgent);
View Full Code Here

Examples of ua_parser.UserAgent

            return null;
        }

        try {
            String agentString = (String) input.get(0);
            UserAgent userAgent = parser.parseUserAgent(agentString);
            if (userAgent == null) {
                return null;
            }
            return userAgent.family;
        } catch (Exception e) {
View Full Code Here

Examples of ua_parser.UserAgent

            return null;
        }

        try {
            String agentString = (String) input.get(0);
            UserAgent userAgent = parser.parseUserAgent(agentString);
            if (userAgent == null) {
                return null;
            }
            return userAgent.minor;
        } catch (Exception e) {
View Full Code Here

Examples of ua_parser.UserAgent

            return null;
        }

        try {
            String agentString = (String) input.get(0);
            UserAgent userAgent = parser.parseUserAgent(agentString);
            if (userAgent == null) {
                return null;
            }
            return userAgent.major;
        } catch (Exception e) {
View Full Code Here

Examples of ua_parser.UserAgent

            return null;
        }

        try {
            String agentString = (String) input.get(0);
            UserAgent userAgent = parser.parseUserAgent(agentString);
            if (userAgent == null) {
                return null;
            }
            return userAgent.patch;
        } catch (Exception e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.