Examples of WURFLHolder


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

Examples of net.sourceforge.wurfl.core.WURFLHolder

    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

Examples of net.sourceforge.wurfl.core.WURFLHolder

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
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.