Package org.apache.tapestry.util

Examples of org.apache.tapestry.util.QueryParameterMap


                infrastructure, source, newBuilder());
        IEngine engine = newEngine();

        replay();

        IRequestCycle cycle = new RequestCycle(engine, new QueryParameterMap(), null, env);

        cycle.getEngine();

        verify();
       
View Full Code Here


    public void testCreateWithExistingMap()
    {
        Map parameters = new HashMap();

        ServiceEncodingImpl se = new ServiceEncodingImpl("/foo", new QueryParameterMap(parameters));

        se.setParameterValue("foo", "bar");

        assertEquals("bar", parameters.get("foo"));
    }
View Full Code Here

     * Creates a new instance with a new map of parameters.
     */

    public ServiceEncodingImpl(String servletPath)
    {
        this(servletPath, null, new QueryParameterMap());
    }
View Full Code Here

        Map result = new HashMap();

        result.put(ServiceConstants.SERVICE, serviceName);
        result.put(ServiceConstants.PARAMETER, serviceParameters);

        return new QueryParameterMap(result);
    }
View Full Code Here

        IEngine engine = newEngine();
        IMonitor monitor = newMonitor();

        replayControls();

        IRequestCycle cycle = new RequestCycle(engine, new QueryParameterMap(), "fred", monitor,
                env, context);

        assertSame(infrastructure, cycle.getInfrastructure());
        assertSame(context, cycle.getRequestContext());
        assertSame(service, cycle.getService());
View Full Code Here

        IEngine engine = newEngine();
        IMonitor monitor = newMonitor();

        replayControls();

        IRequestCycle cycle = new RequestCycle(engine, new QueryParameterMap(), null, monitor, env,
                context);

        cycle.getEngine();

        verifyControls();
View Full Code Here

        WebRequest request = _infrastructure.getRequest();

        IMonitor monitor = _monitorFactory.createMonitor(request);

        QueryParameterMap parameters = extractParameters(request);

        decodeParameters(request.getActivationPath(), request.getPathInfo(), parameters);

        String serviceName = findService(parameters);
View Full Code Here

     * file upload parameters!).
     */

    private QueryParameterMap extractParameters(WebRequest request)
    {
        QueryParameterMap result = new QueryParameterMap();

        Iterator i = request.getParameterNames().iterator();

        while (i.hasNext())
        {
            String name = (String) i.next();

            String[] values = request.getParameterValues(name);

            if (values.length == 1)
                result.setParameterValue(name, values[0]);
            else
                result.setParameterValues(name, values);
        }

        return result;
    }
View Full Code Here

    {
        finalizeParameters(service, parameters);

        IEngine engine = _requestCycle.getEngine();

        QueryParameterMap qmap = new QueryParameterMap(parameters);
       
        ServiceEncoding serviceEncoding = createServiceEncoding(qmap);
       
        // Give persistent property strategies a chance to store extra data
        // into the link.
View Full Code Here

    {
        finalizeParameters(service, parameters);
       
        IEngine engine = _requestCycle.getEngine();

        QueryParameterMap qmap = new QueryParameterMap(parameters);

        ServiceEncoding serviceEncoding = createServiceEncoding(qmap);
       
        // Give persistent property strategies a chance to store extra data
        // into the link.
View Full Code Here

TOP

Related Classes of org.apache.tapestry.util.QueryParameterMap

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.