Package net.sf.jportlet.portlet

Examples of net.sf.jportlet.portlet.PortletLog


                                           PortletRequest request )
        throws IOException
    {
        String        name;
        String        value;
        PortletLog    log = getLog(  );
        boolean       debug = log.isDebugEnabled(  );
        PortletConfig portletConfig = getPortletConfig(  );

        /* URL */
        name  = prefix + ".url";
        value = portletConfig.getInitParameter( name );
        if ( debug )
        {
            log.debug( name + "=" + value );
        }

        if ( value != null )
        {
            return new URL( value ).openStream(  );
        }
        else
        {
            /* Path */
            name  = prefix + ".path";
            value = portletConfig.getInitParameter( name );
            if ( debug )
            {
                log.debug( name + "=" + value );
            }

            if ( value != null )
            {
                return portletConfig.getPortletContext(  ).getResourceAsStream( value, request.getClient(  ), request.getLocale(  ) );
View Full Code Here


        InputStream    in = findInputStream( "xsl." + markup, request );

        if ( in == null )
        {
            /* Default stream */
            PortletLog log = getLog(  );
            String     path = "net/sf/jportlet/portlets/menu/" + markup + ".xsl";
            if ( log.isDebugEnabled(  ) )
            {
                log.debug( "Using default XSL: " + path );
            }

            in = getClass(  ).getClassLoader(  ).getResourceAsStream( path );
            if ( in == null )
            {
View Full Code Here

        Portlet.Markup markup = request.getClient(  ).getMarkup(  );
        InputStream    in = findInputStream( "xsl." + markup, request );

        if ( in == null )
        {
            PortletLog log = getLog(  );
            String     path = "net/sf/jportlet/portlets/rss/" + markup + ".xsl";
            if ( log.isDebugEnabled(  ) )
            {
                log.debug( "Using default XSL: " + path );
            }

            in = getClass(  ).getClassLoader(  ).getResourceAsStream( path );
            if ( in == null )
            {
View Full Code Here

TOP

Related Classes of net.sf.jportlet.portlet.PortletLog

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.