Package org.sentinel.servers.http.protocol

Examples of org.sentinel.servers.http.protocol.HTTPRequest


    @Test
    public void testGetParam() throws MalformedURLException
    {
        ApplicationImpl impl = new ApplicationImpl();
        impl.request = new HTTPRequest();
        assertNull(impl.getParam("test", null));
       
        URL url = new URL("http://localhost/something?test=1&test2=abc");
        impl.request.setRequestURL(url);
        assertEquals("1", impl.getParam("test"));
View Full Code Here

TOP

Related Classes of org.sentinel.servers.http.protocol.HTTPRequest

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.