Package org.apache.pluto.core

Examples of org.apache.pluto.core.PortletServlet


        System.setProperty("org.apache.pluto.embedded.portletId", ExamplePortlet.NAME);
        server = new Server(TEST_PORT);
        WebAppContext webapp = new WebAppContext("src/test/webapp", "/" + CONTEXT_NAME);
        webapp.setDefaultsDescriptor("/WEB-INF/jetty-pluto-web-default.xml");
        ServletHolder portletServlet = new ServletHolder(new PortletServlet());
        portletServlet.setInitParameter("portlet-name", ExamplePortlet.NAME);
        portletServlet.setInitParameter("scratchdir", tmpDir.getAbsolutePath());
        portletServlet.setInitOrder(1);
        webapp.addServlet(portletServlet, "/PlutoInvoker/" + ExamplePortlet.NAME);
        server.addHandler(webapp);
View Full Code Here


public static void main(String[] args) throws Exception {
     System.setProperty("org.apache.pluto.embedded.portletId", "HelloPortlet");
     Server server = new Server(8080);
     WebAppContext webapp = new WebAppContext("src/main/webapp", "/bookmark-portlet");
     webapp.setDefaultsDescriptor("/WEB-INF/jetty-pluto-web-default.xml");
     ServletHolder portletServlet = new ServletHolder(new PortletServlet());
     portletServlet.setInitParameter("portlet-name", "HelloPortlet");
     portletServlet.setInitOrder(1);
     webapp.addServlet(portletServlet, "/PlutoInvoker/HelloPortlet");
     server.addHandler(webapp);
     server.start();
View Full Code Here

  public static void main(String[] args) throws Exception {
      System.setProperty("org.apache.pluto.embedded.portletId", "StrutsPortlet");
      Server server = new Server(8080);
      WebAppContext webapp = new WebAppContext("src/main/webapp", "/test");
      webapp.setDefaultsDescriptor("/WEB-INF/jetty-pluto-web-default.xml");
      ServletHolder portletServlet = new ServletHolder(new PortletServlet());
      portletServlet.setInitParameter("portlet-name", "StrutsPortlet");
      portletServlet.setInitOrder(1);
      webapp.addServlet(portletServlet, "/PlutoInvoker/StrutsPortlet");
      server.addHandler(webapp);
      server.start();
View Full Code Here

    System.setProperty("org.apache.pluto.embedded.portletId", getPortletName());
    server = new Server(port);
    WebAppContext webapp = new WebAppContext("src/main/webapp", contextPath);
    webapp.setTempDirectory(new File("target/work"));
    webapp.setDefaultsDescriptor("/WEB-INF/jetty-pluto-web-default.xml");
    ServletHolder portletServlet = new ServletHolder(new PortletServlet());
    portletServlet.setInitParameter("portlet-name", getPortletName());
    portletServlet.setInitOrder(1);
    webapp.addServlet(portletServlet, "/PlutoInvoker/" + getPortletName());
    server.addHandler(webapp);
    server.start();
View Full Code Here

TOP

Related Classes of org.apache.pluto.core.PortletServlet

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.