net.sf.jasperreports.jsf.util
Class ExternalContextHelper

java.lang.Object
  extended by net.sf.jasperreports.jsf.util.ExternalContextHelper

public abstract class ExternalContextHelper
extends Object


Constructor Summary
protected ExternalContextHelper()
           
 
Method Summary
protected  String encodeContentDisposition(ReportRenderer renderer, UIReport report, String enc)
           
static ExternalContextHelper getInstance(FacesContext context)
           
protected static String getPortletVersion()
           
abstract  String getRequestURI(FacesContext context)
          Gets the request uri.
protected static boolean isPortletAvailable()
           
abstract  void writeHeaders(FacesContext context, ReportRenderer renderer, UIReport report)
           
abstract  void writeResponse(FacesContext context, String contentType, byte[] data)
          Write response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalContextHelper

protected ExternalContextHelper()
Method Detail

getInstance

public static ExternalContextHelper getInstance(FacesContext context)

isPortletAvailable

protected static boolean isPortletAvailable()

getPortletVersion

protected static String getPortletVersion()

getRequestURI

public abstract String getRequestURI(FacesContext context)
Gets the request uri.

Parameters:
context - the context
Returns:
the request uri

writeHeaders

public abstract void writeHeaders(FacesContext context,
                                  ReportRenderer renderer,
                                  UIReport report)
                           throws IOException
Throws:
IOException

writeResponse

public abstract void writeResponse(FacesContext context,
                                   String contentType,
                                   byte[] data)
                            throws IOException
Write response.

Parameters:
context - the context
contentType - the content type
data - the data
Throws:
IOException - Signals that an I/O exception has occurred.

encodeContentDisposition

protected String encodeContentDisposition(ReportRenderer renderer,
                                          UIReport report,
                                          String enc)
                                   throws IOException
Throws:
IOException


Copyright © 2009 SourceForge.net. All Rights Reserved.