org.apache.myfaces.examples.outputLinkDynamic
Class UploadedFileRenderer

java.lang.Object
  extended byorg.apache.myfaces.examples.outputLinkDynamic.UploadedFileRenderer
All Implemented Interfaces:
org.apache.myfaces.custom.dynamicResources.ResourceRenderer

public class UploadedFileRenderer
extends java.lang.Object
implements org.apache.myfaces.custom.dynamicResources.ResourceRenderer

Author:
Mathias Broekelmann, Sylvain Vieujot

Constructor Summary
UploadedFileRenderer()
           
 
Method Summary
 int getContentLength()
           
 java.lang.String getContentType()
           
 void renderResource(javax.faces.context.ResponseStream out)
           
 void setContext(javax.faces.context.FacesContext facesContext, org.apache.myfaces.custom.dynamicResources.ResourceContext resourceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadedFileRenderer

public UploadedFileRenderer()
Method Detail

setContext

public void setContext(javax.faces.context.FacesContext facesContext,
                       org.apache.myfaces.custom.dynamicResources.ResourceContext resourceContext)
Specified by:
setContext in interface org.apache.myfaces.custom.dynamicResources.ResourceRenderer

getContentLength

public int getContentLength()
Specified by:
getContentLength in interface org.apache.myfaces.custom.dynamicResources.ResourceRenderer
See Also:
ResourceRenderer.getContentLength()

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface org.apache.myfaces.custom.dynamicResources.ResourceRenderer
See Also:
ResourceRenderer.getContentType()

renderResource

public void renderResource(javax.faces.context.ResponseStream out)
                    throws java.io.IOException
Specified by:
renderResource in interface org.apache.myfaces.custom.dynamicResources.ResourceRenderer
Throws:
java.io.IOException
See Also:
org.apache.myfaces.custom.graphicimagedynamic.ImageRenderer#renderImage(javax.faces.context.FacesContext, org.apache.myfaces.custom.graphicimagedynamic.ImageContext, java.io.OutputStream)


Copyright © 2007 Apache Software Foundation. All Rights Reserved.