Package net.sf.jportlet.impl

Examples of net.sf.jportlet.impl.PortletRequestImpl


        }

        /* Perform the action */
        PortletServiceFactory serviceFactory = _application.getPortletServiceFactory(  );
        PortletProxy          proxy = ( PortletProxy ) _application.getPortlet( uri.getPortletName(  ) );
        PortletRequestImpl    req = new PortletRequestImpl( proxy, request, serviceFactory );
        PortletResponseImpl   resp = new PortletResponseImpl( proxy, req, response );
        HttpServletRequest    hreq = req.getHttpRequest(  );
        String                action = uri.getAction(  );
        ActionEventImpl       event = new ActionEventImpl( action, req, resp );
        proxy.actionPerformed( event );

        /* Get the URI where to move*/
 
View Full Code Here


        {
            putAll( context, ctx );
        }

        /* Request attributes */
        PortletRequestImpl req = ( PortletRequestImpl ) request;
        Map                attributes = req.getAttributes(  );
        putAll( attributes, ctx );

        /* Standard context variables */
        PortletProxy proxy = req.getProxy(  );
        put( PROXY, proxy, ctx );
        put( PORTLET, proxy.getPortlet(  ), ctx );
        put( REQUEST, request, ctx );
        put( RESPONSE, response, ctx );
        put( RUNTIME, new Runtime(  ), ctx );
View Full Code Here

                }

                HttpServletResponse response = ( HttpServletResponse ) pageContext.getResponse(  );
                PortletApplication  container = getPortletContainer(  );
                PortletProxy        proxy = ( PortletProxy ) getPortletContainer(  ).getPortlet( portletName );
                PortletRequestImpl  req = new PortletRequestImpl( proxy, request, container.getPortletServiceFactory(  ) );
                PortletResponseImpl resp = new PortletResponseImpl( proxy, req, response );
               
                PageTag page = (PageTag)findAncestorWithClass( this, PageTag.class );
                if ( page == null )
                {
                  throw new JspException( "'portlet' tag MUST be inside a 'page' tag");
                }
                _portletPageContext.setSkinContextPath( page.getSkinContextPath());

                req.setPageContext( _portletPageContext );
                proxy.service( req, resp );
                pageContext.getOut(  ).println( resp.getBuffer(  ).toString(  ) );
            }

            return EVAL_PAGE;
View Full Code Here

TOP

Related Classes of net.sf.jportlet.impl.PortletRequestImpl

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.