Package org.pentaho.platform.web.http.session

Examples of org.pentaho.platform.web.http.session.HttpSessionParameterProvider


      if ( ( component == null ) || "action".equals( component ) ) { //$NON-NLS-1$
        // assume this is an action sequence execute
        HttpWebServiceRequestHandler requestHandler =
            new HttpWebServiceRequestHandler( userSession, null, outputHandler, parameterProvider, null );

        requestHandler.setParameterProvider( IParameterProvider.SCOPE_SESSION, new HttpSessionParameterProvider(
          userSession ) );
        requestHandler.setInstanceId( instanceId );
        requestHandler.setProcessId( processId );
        requestHandler.setActionPath( actionSeqPath );
View Full Code Here


  private HttpServletRequest request;

  public HttpServletRequestHandler( final IPentahoSession session, final String instanceId,
      final HttpServletRequest request, final IOutputHandler outputHandler, final IPentahoUrlFactory urlFactory ) {
    super( session, instanceId, outputHandler, null, urlFactory );
    HttpSessionParameterProvider sessionParameters = new HttpSessionParameterProvider( session );
    setParameterProvider( IParameterProvider.SCOPE_SESSION, sessionParameters );
    setRequest( request );
  }
View Full Code Here

  protected IParameterProvider createRequestParamProvider() {
    return new HttpRequestParameterProvider( httpServletRequest );
  }

  protected IParameterProvider createSessionParameterProvider() {
    return new HttpSessionParameterProvider( PentahoSessionHolder.getSession() );
  }
View Full Code Here

    throws Exception {
    IParameterProvider requestParams = new HttpRequestParameterProvider( httpServletRequest );
    IRuntimeContext runtime = null;
    try {

      HttpSessionParameterProvider sessionParameters = new HttpSessionParameterProvider( userSession );
      HttpRequestParameterProvider requestParameters = new HttpRequestParameterProvider( httpServletRequest );

      boolean doMessages = "true".equalsIgnoreCase(
        requestParams.getStringParameter( "debug", "false" ) ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
      boolean doWrapper = "true".equalsIgnoreCase(
View Full Code Here

                                          IMimeTypeListener mimeTypeListener )
    throws Exception {
    IParameterProvider requestParams = new HttpRequestParameterProvider( httpServletRequest );
    IRuntimeContext runtime = null;
    try {
      HttpSessionParameterProvider sessionParameters = new HttpSessionParameterProvider( userSession );
      HttpRequestParameterProvider requestParameters = new HttpRequestParameterProvider( httpServletRequest );

      boolean doMessages = "true".equalsIgnoreCase(
        requestParams.getStringParameter( "debug", "false" ) ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
      boolean doWrapper = "true".equalsIgnoreCase(
View Full Code Here

  @SuppressWarnings ( { "unchecked", "rawtypes" } )
  public static String executeXml( RepositoryFile file, HttpServletRequest httpServletRequest,
                                   HttpServletResponse httpServletResponse, IPentahoSession userSession )
    throws Exception {
    try {
      HttpSessionParameterProvider sessionParameters = new HttpSessionParameterProvider( userSession );
      HttpRequestParameterProvider requestParameters = new HttpRequestParameterProvider( httpServletRequest );
      Map parameterProviders = new HashMap();
      parameterProviders.put( "request", requestParameters ); //$NON-NLS-1$
      parameterProviders.put( "session", sessionParameters ); //$NON-NLS-1$
      List messages = new ArrayList();
View Full Code Here

      IMimeTypeListener listener = new HttpMimeTypeListener( request, response );

      outputHandler = getOutputHandler( response, true );
      outputHandler.setMimeTypeListener( listener );

      IParameterProvider sessionParameters = new HttpSessionParameterProvider( session );
      IPentahoRequestContext requestContext = PentahoRequestContextHolder.getRequestContext();
      Map<String, IParameterProvider> parameterProviders = new HashMap<String, IParameterProvider>();
      parameterProviders.put( IParameterProvider.SCOPE_REQUEST, requestParameters );
      parameterProviders.put( IParameterProvider.SCOPE_SESSION, sessionParameters );
      parameterProviders.put( "headers", headerParams ); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.pentaho.platform.web.http.session.HttpSessionParameterProvider

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.