com.liferay.faces.bridge.context
Class RenderRedirectWriter

java.lang.Object
  extended by java.io.Writer
      extended by com.liferay.faces.bridge.context.WriterWrapper
          extended by com.liferay.faces.bridge.context.RenderRedirectWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, javax.faces.FacesWrapper<Writer>
Direct Known Subclasses:
RenderRedirectWriterImpl

public abstract class RenderRedirectWriter
extends WriterWrapper

Wraps a PortletResponse Writer in order to support render-redirect by buffering response output.

Author:
ngriffin

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
RenderRedirectWriter()
           
 
Method Summary
abstract  void discard()
          Discards the buffered response output so that it will not be written to the wrapped Writer.
abstract  void render()
          Renders the buffered response output to the wrapped Writer.
 
Methods inherited from class com.liferay.faces.bridge.context.WriterWrapper
close, flush, write
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.faces.FacesWrapper
getWrapped
 

Constructor Detail

RenderRedirectWriter

public RenderRedirectWriter()
Method Detail

discard

public abstract void discard()
Discards the buffered response output so that it will not be written to the wrapped Writer.


render

public abstract void render()
                     throws IOException
Renders the buffered response output to the wrapped Writer.

Throws:
IOException


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