org.portletbridge.portlet
Class PseudoRenderResponse

java.lang.Object
  extended by org.portletbridge.portlet.PseudoRenderResponse
All Implemented Interfaces:
javax.portlet.PortletResponse, javax.portlet.RenderResponse

public class PseudoRenderResponse
extends java.lang.Object
implements javax.portlet.RenderResponse

TODO: There's a simpler way of doing this.

Author:
jmccrindle

Field Summary
 
Fields inherited from interface javax.portlet.RenderResponse
EXPIRATION_CACHE
 
Constructor Summary
PseudoRenderResponse(java.lang.String namespace, java.lang.String currentUrl, java.lang.String currentId)
           
 
Method Summary
 void addProperty(java.lang.String arg0, java.lang.String arg1)
           
 javax.portlet.PortletURL createActionURL()
           
 javax.portlet.PortletURL createRenderURL()
           
 java.lang.String encodeURL(java.lang.String arg0)
           
 void flushBuffer()
           
 int getBufferSize()
           
 java.lang.String getCharacterEncoding()
           
 java.lang.String getContentType()
           
 java.lang.String getEnd()
           
 java.util.Locale getLocale()
           
 java.lang.String getNamespace()
           
 java.io.OutputStream getPortletOutputStream()
           
 java.lang.String getStart()
           
 java.io.PrintWriter getWriter()
           
 boolean isCommitted()
           
 void reset()
           
 void resetBuffer()
           
 void setBufferSize(int arg0)
           
 void setContentType(java.lang.String arg0)
           
 void setProperty(java.lang.String arg0, java.lang.String arg1)
           
 void setTitle(java.lang.String arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PseudoRenderResponse

public PseudoRenderResponse(java.lang.String namespace,
                            java.lang.String currentUrl,
                            java.lang.String currentId)
Method Detail

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface javax.portlet.RenderResponse

createRenderURL

public javax.portlet.PortletURL createRenderURL()
Specified by:
createRenderURL in interface javax.portlet.RenderResponse

createActionURL

public javax.portlet.PortletURL createActionURL()
Specified by:
createActionURL in interface javax.portlet.RenderResponse

getNamespace

public java.lang.String getNamespace()
Specified by:
getNamespace in interface javax.portlet.RenderResponse

setTitle

public void setTitle(java.lang.String arg0)
Specified by:
setTitle in interface javax.portlet.RenderResponse

setContentType

public void setContentType(java.lang.String arg0)
Specified by:
setContentType in interface javax.portlet.RenderResponse

getCharacterEncoding

public java.lang.String getCharacterEncoding()
Specified by:
getCharacterEncoding in interface javax.portlet.RenderResponse

getWriter

public java.io.PrintWriter getWriter()
                              throws java.io.IOException
Specified by:
getWriter in interface javax.portlet.RenderResponse
Throws:
java.io.IOException

getLocale

public java.util.Locale getLocale()
Specified by:
getLocale in interface javax.portlet.RenderResponse

setBufferSize

public void setBufferSize(int arg0)
Specified by:
setBufferSize in interface javax.portlet.RenderResponse

getBufferSize

public int getBufferSize()
Specified by:
getBufferSize in interface javax.portlet.RenderResponse

flushBuffer

public void flushBuffer()
                 throws java.io.IOException
Specified by:
flushBuffer in interface javax.portlet.RenderResponse
Throws:
java.io.IOException

resetBuffer

public void resetBuffer()
Specified by:
resetBuffer in interface javax.portlet.RenderResponse

isCommitted

public boolean isCommitted()
Specified by:
isCommitted in interface javax.portlet.RenderResponse

reset

public void reset()
Specified by:
reset in interface javax.portlet.RenderResponse

getPortletOutputStream

public java.io.OutputStream getPortletOutputStream()
                                            throws java.io.IOException
Specified by:
getPortletOutputStream in interface javax.portlet.RenderResponse
Throws:
java.io.IOException

addProperty

public void addProperty(java.lang.String arg0,
                        java.lang.String arg1)
Specified by:
addProperty in interface javax.portlet.PortletResponse

setProperty

public void setProperty(java.lang.String arg0,
                        java.lang.String arg1)
Specified by:
setProperty in interface javax.portlet.PortletResponse

encodeURL

public java.lang.String encodeURL(java.lang.String arg0)
Specified by:
encodeURL in interface javax.portlet.PortletResponse

getEnd

public java.lang.String getEnd()

getStart

public java.lang.String getStart()


Copyright © 2002-2006 Grape Design Limited. All Rights Reserved.