org.apache.wicket.request.resource
Class AbstractResource.WriteCallback

java.lang.Object
  extended by org.apache.wicket.request.resource.AbstractResource.WriteCallback
Enclosing class:
AbstractResource

public abstract static class AbstractResource.WriteCallback
extends Object

Callback invoked when resource data needs to be written to response. Subclass needs to implement the writeData(org.apache.wicket.request.resource.IResource.Attributes) method.

Author:
Matej Knopp

Constructor Summary
AbstractResource.WriteCallback()
           
 
Method Summary
abstract  void writeData(IResource.Attributes attributes)
          Write the resource data to response.
protected  void writeStream(IResource.Attributes attributes, InputStream stream)
          Convenience method to write an InputStream to response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractResource.WriteCallback

public AbstractResource.WriteCallback()
Method Detail

writeData

public abstract void writeData(IResource.Attributes attributes)
                        throws IOException
Write the resource data to response.

Parameters:
attributes - request attributes
Throws:
IOException

writeStream

protected final void writeStream(IResource.Attributes attributes,
                                 InputStream stream)
                          throws IOException
Convenience method to write an InputStream to response.

Parameters:
attributes - request attributes
stream - input stream
Throws:
IOException


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.