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( ) );