Package org.apache.tapestry.util

Examples of org.apache.tapestry.util.QueryParameterMap


        this(servletPath, new QueryParameterMap());
    }

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


        IEngineService service = newService();
        IMonitor monitor = newMonitor();

        replayControls();

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

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

        IEngineService service = newService();
        IMonitor monitor = newMonitor();

        replayControls();

        IRequestCycle cycle = new RequestCycle(engine, new QueryParameterMap(), service, monitor,
                env);
       
        cycle.getEngine();
       
        verifyControls();
View Full Code Here

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

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

        this(servletPath, new QueryParameterMap());
    }

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

    public IRequestCycle newRequestCycle(IEngine engine, RequestContext context)
    {
        IMonitor monitor = _monitorFactory.createMonitor(context);

        QueryParameterMap parameters = extractParameters(context);

        decodeParameters(context.getRequest().getServletPath(), parameters);

        IEngineService service = findService(parameters);
View Full Code Here

     * file upload parameters!).
     */

    private QueryParameterMap extractParameters(RequestContext context)
    {
        QueryParameterMap result = new QueryParameterMap();

        String[] names = context.getParameterNames();

        for (int i = 0; i < names.length; i++)
        {
            String name = names[i];

            String[] values = context.getParameters(name);

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

        return result;
    }
View Full Code Here

        _cycle = cycle;
        _servletPath = servletPath;
        _encoding = encoding;
        _codec = codec;
        _parameters = new QueryParameterMap(parameters);
        _stateful = stateful;
    }
View Full Code Here

    public IRequestCycle newRequestCycle(IEngine engine)
    {
        WebRequest request = _infrastructure.getRequest();
       
        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

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.