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 java.lang.ObjectCallback 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 voidwriteData(IResource.Attributes attributes)Write the resource data to response.protected voidwriteStream(IResource.Attributes attributes, java.io.InputStream stream)Convenience method to write anInputStreamto response.
-
-
-
Method Detail
-
writeData
public abstract void writeData(IResource.Attributes attributes) throws java.io.IOException
Write the resource data to response.- Parameters:
attributes- request attributes- Throws:
java.io.IOException
-
writeStream
protected final void writeStream(IResource.Attributes attributes, java.io.InputStream stream) throws java.io.IOException
Convenience method to write anInputStreamto response.- Parameters:
attributes- request attributesstream- input stream- Throws:
java.io.IOException
-
-