Class StreamedContentHandler
- java.lang.Object
-
- org.primefaces.application.resource.BaseDynamicContentHandler
-
- org.primefaces.application.resource.StreamedContentHandler
-
- All Implemented Interfaces:
DynamicContentHandler
public class StreamedContentHandler extends BaseDynamicContentHandler
-
-
Constructor Summary
Constructors Constructor Description StreamedContentHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(javax.faces.context.FacesContext context)
protected void
sendNotFound(javax.faces.context.ExternalContext externalContext)
protected void
setResponseHeaders(StreamedContent streamedContent, javax.faces.context.ExternalContext externalContext)
protected void
stream(javax.faces.context.ExternalContext externalContext, InputStream inputStream, boolean cache)
protected void
stream(javax.faces.context.ExternalContext externalContext, Consumer<OutputStream> writer, boolean cache)
-
Methods inherited from class org.primefaces.application.resource.BaseDynamicContentHandler
handleCache
-
-
-
-
Method Detail
-
handle
public void handle(javax.faces.context.FacesContext context) throws IOException
- Throws:
IOException
-
setResponseHeaders
protected void setResponseHeaders(StreamedContent streamedContent, javax.faces.context.ExternalContext externalContext)
-
stream
protected void stream(javax.faces.context.ExternalContext externalContext, InputStream inputStream, boolean cache) throws IOException
- Throws:
IOException
-
stream
protected void stream(javax.faces.context.ExternalContext externalContext, Consumer<OutputStream> writer, boolean cache) throws IOException
- Throws:
IOException
-
sendNotFound
protected void sendNotFound(javax.faces.context.ExternalContext externalContext) throws IOException
- Throws:
IOException
-
-