Class AbstractResource.WriteCallback
- java.lang.Object
-
- org.apache.wicket.request.resource.AbstractResource.WriteCallback
-
- Direct Known Subclasses:
PartWriterCallback
- 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 thewriteData(org.apache.wicket.request.resource.IResource.Attributes)
method.- Author:
- Matej Knopp
-
-
Constructor Summary
Constructors Constructor Description WriteCallback()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
writeData(IResource.Attributes attributes)
Write the resource data to response.protected void
writeStream(IResource.Attributes attributes, InputStream stream)
Convenience method to write anInputStream
to response.
-
-
-
Constructor Detail
-
WriteCallback
public 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 void writeStream(IResource.Attributes attributes, InputStream stream) throws IOException
Convenience method to write anInputStream
to response.- Parameters:
attributes
- request attributesstream
- input stream- Throws:
IOException
-
-