org.apache.wicket.request.resource
Class AbstractResource.WriteCallback
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractResource.WriteCallback
public AbstractResource.WriteCallback()
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 attributesstream
- input stream
- Throws:
IOException
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.