org.jboss.portal.server.output
Class FragmentResult

java.lang.Object
  extended by org.jboss.portal.server.output.Result
      extended by org.jboss.portal.server.output.FragmentResult

public class FragmentResult
extends Result

Data produced.


Constructor Summary
FragmentResult(WindowContext producer)
           
 
Method Summary
 java.io.ByteArrayOutputStream getBytes()
           
 java.io.StringWriter getChars()
           
 java.lang.String getContentType()
           
 java.io.OutputStream getOutputStream()
           
 java.lang.String getTitle()
           
 java.io.PrintWriter getWriter()
           
 void resetBuffer()
           
 void setContentType(java.lang.String contentType)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class org.jboss.portal.server.output.Result
getProducer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FragmentResult

public FragmentResult(WindowContext producer)
Method Detail

getBytes

public java.io.ByteArrayOutputStream getBytes()

getChars

public java.io.StringWriter getChars()

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

getContentType

public java.lang.String getContentType()

setContentType

public void setContentType(java.lang.String contentType)

getWriter

public java.io.PrintWriter getWriter()
                              throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException - if the output stream is already used or if no content type is defined

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException,
                                            java.lang.IllegalStateException
Throws:
java.io.IOException
java.lang.IllegalStateException - if the window writer is already used or if no content type is defined

resetBuffer

public void resetBuffer()