com.liferay.faces.bridge.application
Class ResourceOutputStreamRichFacesImpl

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by com.liferay.faces.util.io.ResourceOutputStream
              extended by com.liferay.faces.bridge.application.ResourceOutputStreamRichFacesImpl
All Implemented Interfaces:
Filterable, Closeable, Flushable

public class ResourceOutputStreamRichFacesImpl
extends ResourceOutputStream
implements Filterable

Author:
Neil Griffin, Vernon Singleton

Nested Class Summary
protected static class ResourceOutputStreamRichFacesImpl.RichFacesImageResource
           
 
Field Summary
 
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
 
Constructor Summary
ResourceOutputStreamRichFacesImpl(javax.faces.application.Resource resource, int size)
           
 
Method Summary
 void filter()
           
protected  String fixRichFacesImageURLs(javax.faces.context.FacesContext facesContext, String cssText)
          This method is part of a fix for FACES-1214.
protected  String fixRichFacesPackedDotJs(javax.faces.context.FacesContext facesContext, String javaScriptText)
           
 
Methods inherited from class com.liferay.faces.util.io.ResourceOutputStream
getResource
 
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceOutputStreamRichFacesImpl

public ResourceOutputStreamRichFacesImpl(javax.faces.application.Resource resource,
                                         int size)
Method Detail

filter

public void filter()
            throws IOException
Specified by:
filter in interface Filterable
Throws:
IOException

fixRichFacesImageURLs

protected String fixRichFacesImageURLs(javax.faces.context.FacesContext facesContext,
                                       String cssText)
This method is part of a fix for FACES-1214. Some of the RichFacess CSS resources have relative URLs that must be translated to ResourceURLs so that they work in a portlet environment.


fixRichFacesPackedDotJs

protected String fixRichFacesPackedDotJs(javax.faces.context.FacesContext facesContext,
                                         String javaScriptText)


Copyright © 2014 Liferay, Inc.. All Rights Reserved.