Package atg.servlet

Examples of atg.servlet.DynamoHttpServletRequest


            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);
        return new TestingDynamoHttpServletRequest(request, buffer);
    }
View Full Code Here


    public DropletResult invokeDroplet(String pDropletName,
                                       Map<String, Object> pAdditionalParameters,
                                       TestingDynamoHttpServletRequest pRequest,
                                       TestingDynamoHttpServletResponse pResponse)
            throws ServletException, IOException {
        DynamoHttpServletRequest requestRestore = ServletUtil.setCurrentRequest(pRequest);
        try {
            Servlet droplet = (Servlet) getRequest().resolveName(pDropletName);
            if (droplet == null) {
                throw new IllegalArgumentException(
                        "Droplet " + pDropletName + " not found."
View Full Code Here

                                       Map<String, Object> pAdditionalParameters,
                                       TestingDynamoHttpServletRequest pRequest,
                                       TestingDynamoHttpServletResponse pResponse)
            throws ServletException, IOException {
        DropletResult result = createDropletResult(pDroplet, pRequest, pResponse);
        DynamoHttpServletRequest requestRestore = ServletUtil.setCurrentRequest(pRequest);
        ServiceParameterCallback callbackRestore = pRequest.setServiceParameterCallback(
                createServiceParameterCallback(result)
        );
        try {
            pRequest.pushFrame();
View Full Code Here

            throws Exception {
        assertNotNull(nucleus.getCreationFilter());
        Object s = nucleus.resolveName("/atg/scenario/ScenarioManager");
        assertNull(s);

        DynamoHttpServletRequest request = servletTestUtils.createDynamoHttpServletRequestForSession(
                nucleus, "mySessionId", "new"
        );
        previousRequest = setCurrentRequest(request);
        MutableRepository par = (MutableRepository) nucleus.resolveName(
                PROFILE_ADAPTER_REPOSITORY_PATH
        );
        assertNotNull(par);

        assertNotNull(
                "Request component",
                request.resolveName("/atg/userprofiling/ProfileFormHandler")
        );
    }
View Full Code Here

    }

    void doTestSwitch()
            throws ServletException, IOException {
        DropletInvoker invoker = new DropletInvoker(mNucleus);
        DynamoHttpServletRequest request = invoker.getRequest();

        assertNotNull("Request must not be null.", request);
        assertNotNull("Request session must not be null.", request.getSession());
        // test unset if value isn't set

        DropletResult result = invoker.invokeDroplet("/atg/dynamo/droplet/Switch");
        assertNotNull(
                "Make sure that unset got rendered", result.getRenderedOutputParameter("unset")
        );

        // test that foo gets rendered if value is foo
        request.setParameter("value", "foo");

        result = invoker.invokeDroplet("/atg/dynamo/droplet/Switch");

        assertNotNull(
                "Make sure that foo got rendered", result.getRenderedOutputParameter("foo")
View Full Code Here

TOP

Related Classes of atg.servlet.DynamoHttpServletRequest

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.