Examples of WURFLManager


Examples of net.sourceforge.wurfl.core.WURFLManager

        // DEVICE
        try {
            final RequestData requestData = requestUtil.getRequestData(request);

            final WURFLHolder wurfl = (WURFLHolder) ctx.getBean("wurflHolder");
            final WURFLManager manager = wurfl.getWURFLManager();
            Device device = manager.getDeviceForRequest(request);
            String deviceFolder = "default";
            if (device != null) {
                boolean isSmartPhone = BooleanUtils.toBoolean(device.getVirtualCapability("is_smartphone"));
                boolean isIPhoneOs = BooleanUtils.toBoolean(device.getVirtualCapability("is_iphone_os"));
                boolean isAndroid = BooleanUtils.toBoolean(device.getVirtualCapability("is_android"));
View Full Code Here

Examples of net.sourceforge.wurfl.core.WURFLManager

    final RequestUtil requestUtil = (RequestUtil) ctx.getBean("requestUtil");

    // DEVICE
    try {
      final WURFLHolder wurfl = (WURFLHolder) ctx.getBean("wurflHolder");
          final WURFLManager manager = wurfl.getWURFLManager();
          Device device = manager.getDeviceForRequest(request);
      String deviceFolder = "default";
      if(device != null){
        boolean isSmartPhone = BooleanUtils.toBoolean(device.getVirtualCapability("is_smartphone"));
        boolean isIPhoneOs = BooleanUtils.toBoolean(device.getVirtualCapability("is_iphone_os"));
        boolean isAndroid = BooleanUtils.toBoolean(device.getVirtualCapability("is_android"));
View Full Code Here

Examples of net.sourceforge.wurfl.core.WURFLManager

  @Override
  protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
  {
    WURFLHolder wurflHolder = (WURFLHolder) getServletContext().getAttribute("net.sourceforge.wurfl.core.WURFLHolder");

    WURFLManager wurflManager = wurflHolder.getWURFLManager();

    Device device = wurflManager.getDeviceForRequest(req);

    // todo It would be a good idea to cache the resized images

    ImageAndTypePair imageAndTypePair = ingestImage(req.getParameter("src"));
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.