|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.render.Renderer
net.sf.jasperreports.jsf.renderkit.ReportRenderer
public abstract class ReportRenderer
Constructor Summary | |
---|---|
ReportRenderer()
|
Method Summary | |
---|---|
void |
encodeContent(javax.faces.context.FacesContext context,
UIReport component)
Encodes the report contents into the current response. |
String |
encodeContentDisposition(UIReport component,
String encoding)
Encodes the HTTP CONTENT-DISPOSITION header string. |
void |
encodeHeaders(javax.faces.context.FacesContext context,
UIReport component)
Encodes the required headers into the current response. |
String |
encodeReportURL(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Builds the report URL which will trigger the RENDER_REPORT
phase of the plugin's lifecycle. |
abstract String |
getContentDisposition()
Obtain the specific content disposition for this kind of renderer. |
protected void |
registerReportView(javax.faces.context.FacesContext context)
Establishes some flags into the faces' context so the plugin's lifecycle can perform the additional tasks needed to handle the RENDER_REPORT phase. |
Methods inherited from class javax.faces.render.Renderer |
---|
convertClientId, decode, encodeBegin, encodeChildren, encodeEnd, getConvertedValue, getRendersChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReportRenderer()
Method Detail |
---|
public abstract String getContentDisposition()
public void encodeContent(javax.faces.context.FacesContext context, UIReport component) throws IOException
context
- the faces' context.component
- the report component being rendered.
IOException
- if something happens when encoding the report.public String encodeContentDisposition(UIReport component, String encoding) throws IOException
CONTENT-DISPOSITION
header string.
component
- the report component.encoding
- current response encoding.
CONTENT-DISPOSITION
header value.
IOException
- if some error happens when encoding the
report file name.public void encodeHeaders(javax.faces.context.FacesContext context, UIReport component) throws IOException
context
- the faces' context.component
- the report component.
IOException
- if some error happens writing the headers values.public String encodeReportURL(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
RENDER_REPORT
phase of the plugin's lifecycle.
context
- the faces' context.component
- the report component.
protected final void registerReportView(javax.faces.context.FacesContext context)
RENDER_REPORT
phase.
context
- the faces' context.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |