Package org.springframework.mobile.device

Examples of org.springframework.mobile.device.LiteDeviceResolver


    private User user;
   
    @Before
    public void setUp() {
        request = new MockHttpServletRequest();
        deviceResolver = new LiteDeviceResolver();
        user = new UserImpl();
        user.setDisplayName("Test");
    }
View Full Code Here


    private User user;
   
    @Before
    public void setUp() {
        request = new MockHttpServletRequest();
        deviceResolver = new LiteDeviceResolver();
        user = new UserImpl();
        user.setDisplayName("Test");
    }
View Full Code Here

import org.springframework.mock.web.MockHttpServletRequest;

public final class MockHttpUtil {
    public static void setupRequestAsNonMobileUserAgent(MockHttpServletRequest mockHttpServletRequest) {
        mockHttpServletRequest.addHeader("User-Agent", "MSIE");        
        mockHttpServletRequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, new LiteDeviceResolver().resolveDevice(mockHttpServletRequest));
    }
View Full Code Here

        mockHttpServletRequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, new LiteDeviceResolver().resolveDevice(mockHttpServletRequest));
    }
   
    public static void setupRequestAsMobileUserAgent(MockHttpServletRequest mockHttpServletRequest) {       
        mockHttpServletRequest.addHeader("User-Agent", "Blackberry");        
        mockHttpServletRequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, new LiteDeviceResolver().resolveDevice(mockHttpServletRequest));
    }   
View Full Code Here

    private DeviceResolver deviceResolver;
   
    @Before
    public void setUp() {
        request = new MockHttpServletRequest();
        deviceResolver = new LiteDeviceResolver();
    }
View Full Code Here

    /**
     * Create a device resolving {@link HandlerInterceptor} that defaults to a {@link LiteDeviceResolver} implementation.
     */
    public EnMeMobileInterceptor() {
        this(new LiteDeviceResolver());
        log.debug("Creating EnMeMobileInterceptor");
    }
View Full Code Here

TOP

Related Classes of org.springframework.mobile.device.LiteDeviceResolver

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.