Examples of WebApplicationDescriptor


Examples of org.apache.jetspeed.util.descriptor.WebApplicationDescriptor

    }
   
    public void register(String appName, String appDescriptor, String webappDescriptor, String extendedDescriptor)
    throws Exception
    {
        WebApplicationDescriptor wad = new WebApplicationDescriptor(new FileReader(webappDescriptor), "/" + appName);
        MutableWebApplication webapp = wad.createWebApplication();
        PortletApplicationDescriptor pad = new PortletApplicationDescriptor(new FileReader(appDescriptor), appName);       
        MutablePortletApplication app = pad.createPortletApplication(true);               
        app.setWebApplicationDefinition(webapp);
        ExtendedPortletMetadata extMetaData = new ExtendedPortletMetadata(new FileReader(extendedDescriptor), app);
        extMetaData.load();       
View Full Code Here

Examples of org.apache.jetspeed.util.descriptor.WebApplicationDescriptor

    }
   
    public void register(String appName, String appDescriptor, String webappDescriptor, String extendedDescriptor)
    throws Exception
    {
        WebApplicationDescriptor wad = new WebApplicationDescriptor(new FileReader(webappDescriptor), "/" + appName);
        MutableWebApplication webapp = wad.createWebApplication();
        PortletApplicationDescriptor pad = new PortletApplicationDescriptor(new FileReader(appDescriptor), appName);       
        MutablePortletApplication app = pad.createPortletApplication();               
        app.setWebApplicationDefinition(webapp);
        ExtendedPortletMetadata extMetaData = new ExtendedPortletMetadata(new FileReader(extendedDescriptor), app);
        extMetaData.load();       
View Full Code Here

Examples of org.apache.jetspeed.util.descriptor.WebApplicationDescriptor

    }
   
    public void register(String appName, String appDescriptor, String webappDescriptor, String extendedDescriptor)
    throws Exception
    {
        WebApplicationDescriptor wad = new WebApplicationDescriptor(new FileReader(webappDescriptor), "/" + appName);
        MutableWebApplication webapp = wad.createWebApplication();
        PortletApplicationDescriptor pad = new PortletApplicationDescriptor(new FileReader(appDescriptor), appName);       
        MutablePortletApplication app = pad.createPortletApplication();               
        app.setWebApplicationDefinition(webapp);
        ExtendedPortletMetadata extMetaData = new ExtendedPortletMetadata(new FileReader(extendedDescriptor), app);
        extMetaData.load();       
View Full Code Here

Examples of org.apache.jetspeed.util.descriptor.WebApplicationDescriptor

            {
                throw new PortletApplicationException("Failed to find Web XML");
            }
           
            webXmlReader = new InputStreamReader(is);      
            WebApplicationDescriptor webAppDescriptor = new WebApplicationDescriptor(webXmlReader, contextName);
            webApp = webAppDescriptor.createWebApplication();
            return webApp;
        }

        finally
        {
View Full Code Here

Examples of org.apache.tomcat.deployment.WebApplicationDescriptor

    public void preInvoke(Context context, Servlet servlet,
        HttpServletRequest req, HttpServletResponse res)
  throws InterceptorException {

  // Acquire the WebApplicationDescriptor for this Context
  WebApplicationDescriptor descriptor = null;
  // XXX - descriptor = context.getWebApplicationDescriptor();
  if (descriptor == null)
      return;

  // Is this request URI subject to a security constraint?
  SecurityConstraint constraint = findConstraint(req, descriptor);
  if (constraint == null)
      return;

  // Enforce any user data constraint for this security constraint
  userData(req, res, constraint.getUserDataConstraint());

  // Authenticate based upon the specified login configuration
  authenticate(context, req, res, descriptor.getLoginConfiguration());

  // Perform access control based on the specified role(s)
  accessControl(context, req, res,
          constraint.getAuthorizationConstraint());
View Full Code Here

Examples of org.apache.tomcat.deployment.WebApplicationDescriptor

    public void preInvoke(Context context, Servlet servlet,
        HttpServletRequest req, HttpServletResponse res)
  throws InterceptorException {

  // Acquire the WebApplicationDescriptor for this Context
  WebApplicationDescriptor descriptor = null;
  // XXX - descriptor = context.getWebApplicationDescriptor();
  if (descriptor == null)
      return;

  // Is this request URI subject to a security constraint?
  SecurityConstraint constraint = findConstraint(req, descriptor);
  if (constraint == null)
      return;

  // Enforce any user data constraint for this security constraint
  userData(req, res, constraint.getUserDataConstraint());

  // Authenticate based upon the specified login configuration
  authenticate(context, req, res, descriptor.getLoginConfiguration());

  // Perform access control based on the specified role(s)
  accessControl(context, req, res,
          constraint.getAuthorizationConstraint());
View Full Code Here

Examples of org.apache.tomcat.deployment.WebApplicationDescriptor

    public void preInvoke(Context context, Servlet servlet,
        HttpServletRequest req, HttpServletResponse res)
  throws InterceptorException {

  // Acquire the WebApplicationDescriptor for this Context
  WebApplicationDescriptor descriptor = null;
  // XXX - descriptor = context.getWebApplicationDescriptor();
  if (descriptor == null)
      return;

  // Is this request URI subject to a security constraint?
  SecurityConstraint constraint = findConstraint(req, descriptor);
  if (constraint == null)
      return;

  // Enforce any user data constraint for this security constraint
  userData(req, res, constraint.getUserDataConstraint());

  // Authenticate based upon the specified login configuration
  authenticate(context, req, res, descriptor.getLoginConfiguration());

  // Perform access control based on the specified role(s)
  accessControl(context, req, res,
          constraint.getAuthorizationConstraint());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.