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 java.lang.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, java.io.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)
Write the resource data to response.

Parameters:
attributes - request attributes

writeStream

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

Parameters:
attributes - request attributes
stream - input stream


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