Package net.sourceforge.wurfl.core

Examples of net.sourceforge.wurfl.core.WURFLHolder


        // 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"));
View Full Code Here


    final ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(context);
    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"));
View Full Code Here

public class ResponsiveImage extends HttpServlet
{
  @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
View Full Code Here

TOP

Related Classes of net.sourceforge.wurfl.core.WURFLHolder

Copyright © 2018 www.massapicom. 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.