Class ControllerRequestFactory

java.lang.Object
org.gatein.pc.test.controller.unit.ControllerRequestFactory

public class ControllerRequestFactory extends Object
A factory that provides a way to create ControllerRequest. This factory is just a default implementation and is not an authority which means that any client of the controller framework is free to determine how a controller request is created.
Version:
$Revision: 630 $
Author:
Julien Viet
  • Constructor Summary

    Constructors
    Constructor
    Description
    ControllerRequestFactory(org.gatein.common.io.Serialization<org.gatein.pc.controller.state.PageNavigationalState> serialization)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.gatein.pc.controller.request.ControllerRequest
    decode(jakarta.servlet.http.HttpServletRequest req)
    Create a controller request.
    org.gatein.pc.controller.request.ControllerRequest
    decode(Map<String,String[]> queryParameterMap, Map<String,String[]> formParameterMap)
    Create a controller request.
    org.gatein.pc.controller.request.ControllerRequest
    decode(Map<String,String[]> queryParameters, Body body)
    Create a controller request.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ControllerRequestFactory

      public ControllerRequestFactory(org.gatein.common.io.Serialization<org.gatein.pc.controller.state.PageNavigationalState> serialization)
  • Method Details

    • decode

      public org.gatein.pc.controller.request.ControllerRequest decode(jakarta.servlet.http.HttpServletRequest req) throws UnsupportedEncodingException
      Create a controller request.
      Parameters:
      req - the web request
      Returns:
      the decoded controller request
      Throws:
      UnsupportedEncodingException
    • decode

      public org.gatein.pc.controller.request.ControllerRequest decode(Map<String,String[]> queryParameters, Body body)
      Create a controller request.
      Parameters:
      queryParameters - the query parameters
      body - the body
      Returns:
      the decoded controller request
    • decode

      public org.gatein.pc.controller.request.ControllerRequest decode(Map<String,String[]> queryParameterMap, Map<String,String[]> formParameterMap)
      Create a controller request.
      Parameters:
      queryParameterMap - the query parameter map
      formParameterMap - the optional form parameter map
      Returns:
      the decoded controller request