wicket.protocol.http.portlet
Class WicketPortletResponse

java.lang.Object
  extended by wicket.Response
      extended by wicket.protocol.http.portlet.WicketPortletResponse

public class WicketPortletResponse
extends Response

A Response implementation that uses PortletResponse

Author:
Janne Hietamäki
See Also:
Response, WebResponse

Constructor Summary
WicketPortletResponse(javax.portlet.PortletResponse res)
           
 
Method Summary
 java.lang.CharSequence encodeURL(java.lang.CharSequence url)
          An implementation of this method is only required if a subclass wishes to support sessions via URL rewriting.
 java.io.OutputStream getOutputStream()
           
 javax.portlet.PortletResponse getPortletResponse()
          Gets the wrapped portlet response object.
 void redirect(java.lang.String url)
          CLIENTS SHOULD NEVER CALL THIS METHOD FOR DAY TO DAY USE!
 void setContentType(java.lang.String mimeType)
          Set the content type on the response, if appropriate in the subclass.
 void write(java.lang.CharSequence string)
          Writes the given string to the Response subclass output destination.
 
Methods inherited from class wicket.Response
close, filter, getCharacterEncoding, isRedirect, println, reset, setCharacterEncoding, setContentLength, setLastModifiedTime, setLocale, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WicketPortletResponse

public WicketPortletResponse(javax.portlet.PortletResponse res)
Parameters:
res -
Method Detail

getOutputStream

public java.io.OutputStream getOutputStream()
Specified by:
getOutputStream in class Response
Returns:
The output stream for this response

write

public void write(java.lang.CharSequence string)
Description copied from class: Response
Writes the given string to the Response subclass output destination.

Specified by:
write in class Response
Parameters:
string - The string to write

setContentType

public void setContentType(java.lang.String mimeType)
Description copied from class: Response
Set the content type on the response, if appropriate in the subclass. This default implementation does nothing.

Overrides:
setContentType in class Response
Parameters:
mimeType - The mime type

encodeURL

public java.lang.CharSequence encodeURL(java.lang.CharSequence url)
Description copied from class: Response
An implementation of this method is only required if a subclass wishes to support sessions via URL rewriting. This default implementation simply returns the URL String it is passed.

Overrides:
encodeURL in class Response
Parameters:
url - The URL to encode
Returns:
The encoded url

redirect

public void redirect(java.lang.String url)
Description copied from class: Response
CLIENTS SHOULD NEVER CALL THIS METHOD FOR DAY TO DAY USE!

A subclass may override this method to implement redirection. Subclasses which have no need to do redirection may choose not to override this default implementation, which does nothing. For example, if a subclass wishes to write output to a file or is part of a testing harness, there may be no meaning to redirection.

Overrides:
redirect in class Response
Parameters:
url - The URL to redirect to

getPortletResponse

public final javax.portlet.PortletResponse getPortletResponse()
Gets the wrapped portlet response object.

Returns:
The wrapped portlet response object


Copyright © 2004-2007 Wicket developers. All Rights Reserved.