org.apache.wicket.response
Class FileResponse

java.lang.Object
  extended by org.apache.wicket.Response
      extended by org.apache.wicket.response.FileResponse

public final class FileResponse
extends Response

A Response implementation that writes to a file.

Author:
Jonathan Locke

Constructor Summary
FileResponse(File file)
          Constructor
 
Method Summary
 void close()
          Closes the response output stream
 OutputStream getOutputStream()
           
 void write(CharSequence string)
          Writes the given string to the Response subclass output destination.
 
Methods inherited from class org.apache.wicket.Response
detectContentType, encodeURL, filter, getCharacterEncoding, isRedirect, println, redirect, reset, setCharacterEncoding, setContentLength, setContentType, setLastModifiedTime, setLocale, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileResponse

public FileResponse(File file)
Constructor

Parameters:
file - The file to write to
Method Detail

close

public void close()
Description copied from class: Response
Closes the response output stream

Overrides:
close in class Response
See Also:
Response.close()

getOutputStream

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

write

public void write(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
See Also:
Response.write(CharSequence)


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.