wicket.response
Class BufferedResponse

java.lang.Object
  extended bywicket.Response
      extended bywicket.response.StringResponse
          extended bywicket.response.BufferedResponse

public class BufferedResponse
extends StringResponse

Holds a rendered response for future use.

Author:
Johan Compagner, Eelco Hillenius
See Also:
ApplicationSettings.RenderStrategy

Field Summary
 
Fields inherited from class wicket.response.StringResponse
out
 
Constructor Summary
BufferedResponse(java.lang.String redirectUrl)
          Construct.
 
Method Summary
 int getContentLength()
          Gets the content length.
 java.lang.String getContentType()
          Sets the content length.
 java.lang.String getRedirectUrl()
          The url to be used to issue a client side redirect request; when a request to the url comes in, this buffered response is streamed to the browser.
 void setContentType(java.lang.String mimeType)
          Set the content type on the response, if appropriate in the subclass.
 
Methods inherited from class wicket.response.StringResponse
getOutputStream, toString, write
 
Methods inherited from class wicket.Response
close, encodeURL, isRedirect, redirect, setContentLength, setLastModifiedTime, setLocale, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BufferedResponse

public BufferedResponse(java.lang.String redirectUrl)
Construct.

Parameters:
redirectUrl - The url to be used to issue a client side redirect request; when a request to the url comes in, this buffered response is streamed to the browser.
Method Detail

getRedirectUrl

public java.lang.String getRedirectUrl()
The url to be used to issue a client side redirect request; when a request to the url comes in, this buffered response is streamed to the browser.

Returns:
The redirect url that is used for this response

getContentLength

public int getContentLength()
Gets the content length.

Returns:
The content length of this redirect response

getContentType

public java.lang.String getContentType()
Sets the content length.

Returns:
The content type of this redirect response

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
See Also:
Response.setContentType(java.lang.String)


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