Package org.apache.jetspeed.pipeline

Examples of org.apache.jetspeed.pipeline.PipelineException


            context.invokeNext(request);
        }
        catch (Exception e)
        {
            log.error("Exception in request pipeline: " + e.getMessage(), e);
            throw new PipelineException(e.toString(), e);
        }
    }
View Full Code Here


            context.invokeNext(request);
        }
        catch (Exception e)
        {
            log.error("Exception in request pipeline: " + e.getMessage(), e);
            throw new PipelineException(e.toString(), e);
        }
    }
View Full Code Here

        // Get remote user name set by web container
        String userName = context.getRequest().getRemoteUser();
        if ( userName == null )
        {           
            if (ntlmAuthRequired){
                throw new PipelineException("Authorization failed.");   
            } else if (context.getRequest().getUserPrincipal() != null){
                userName = context.getRequest().getUserPrincipal().getName();
            }            
        } else {
            if (omitDomain && networkDomain != null){
                userName = StringUtils.stripStart( userName , networkDomain+"\\");
            }
        }
       
        // check whether principal name stored in session subject equals the remote user name passed by the web container
        if (subject != null)
        {
            Principal subjectUserPrincipal = SubjectHelper.getPrincipal(subject, User.class);
            if ((subjectUserPrincipal == null) || !subjectUserPrincipal.getName().equals(userName))
            {
                subject = null;
            }
        }
        if ( subject == null ){
            if (userName != null){
                try
                {                   
                    User user = userMgr.getUser(userName);
                    if ( user != null )
                    {
                        subject = userMgr.getSubject(user);
                    }
                } catch (SecurityException sex)
                {
                    subject = null;
                }
               
                if (subject == null && this.ntlmAuthRequired){
                    throw new PipelineException("Authorization failed for user '"+userName+"'.");
                }
            } 
            if (subject == null){
                // create anonymous user
                subject = userMgr.getSubject(userMgr.getUser(userMgr.getAnonymousUser()));
View Full Code Here

            }
        }
        catch (Exception e)
        {
            log.error("Exception in request pipeline: " + e.getMessage(), e);
            throw new PipelineException(e.toString(), e);
        }
    }
View Full Code Here

           
            servlet.service(request.getRequest(), request.getResponse());
        }
        catch (Exception e)
        {
            throw new PipelineException(e);
        }
       
        // continue
        context.invokeNext(request);
    }
View Full Code Here

                servlet.init(config);
                servletInitialized = true;
            }
            catch (Exception e)
            {
                throw new PipelineException(e);
            }
        }
    }
View Full Code Here

        catch (Throwable t)
        {
            failure = true;
            RequestDiagnostics rd = RequestDiagnosticsFactory.newRequestDiagnostics();
            RequestDiagnosticsFactory.fillInPortletWindow(rd, request.getActionWindow(), t);
            PipelineException pe = new PipelineException(t);
            pe.setRequestDiagnostics(rd);
            throw pe;
        }
        finally
        {
            // Check if an action was processed and if its response has been committed
View Full Code Here

            context.invokeNext(request);
        }
        catch (Exception e)
        {
            log.error("Exception in request pipeline: " + e.getMessage(), e);
            throw new PipelineException(e.toString(), e);
        }
    }
View Full Code Here

                }
            }
        }
        catch (Exception e)
        {
            throw new PipelineException(e);
        }
       
        // Pass control to the next Valve in the Pipeline
        context.invokeNext( request );
    }
View Full Code Here

                    }
                }
            }
            catch (Exception e)
            {
                throw new PipelineException(e);
            }
        }
        // Pass control to the next Valve in the Pipeline
        context.invokeNext(request);
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.pipeline.PipelineException

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.