Package atg.servlet

Examples of atg.servlet.GenericHttpServletRequest


    public TestingDynamoHttpServletRequest createDynamoHttpServletRequest(Map<String, ?> pParameters,
                                                                          int pBufferSize,
                                                                          String pMethod,
                                                                          String pSessionId) {

        GenericHttpServletRequest greq = createGenericHttpServletRequest(pSessionId);
        String strQuery = createQueryString(pParameters);

        // all the following with greq mostly to get parameters parsed
        greq.setMethod("GET");      // do that query params will get parsed
        if (strQuery == null) {
            greq.setRequestURI("/"); // just to avoid NPE
        }
        else {
            greq.setRequestURI("/" + strQuery);
        }
        greq.getParameter("foo");   // so parameters will be parsed and stick
        greq.setMethod(pMethod);    // set real method

        DynamoHttpServletRequest request = new DynamoHttpServletRequest();
        request.setRequest(greq);
        ByteBuffer buffer = ByteBuffer.allocate(pBufferSize);
        request.setMethod(pMethod);
View Full Code Here


    GenericHttpServletRequest createGenericHttpServletRequest(String pSessionId) {
        if (pSessionId != null) {
            return new SessionIdSettingGenericHttpServletRequest(pSessionId);
        }

        return new GenericHttpServletRequest();
    }
View Full Code Here

TOP

Related Classes of atg.servlet.GenericHttpServletRequest

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.