Module org.apache.wicket.core
Class AbstractResource.WriteCallback
java.lang.Object
org.apache.wicket.request.resource.AbstractResource.WriteCallback
- Direct Known Subclasses:
PartWriterCallback
- Enclosing class:
- AbstractResource
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
-
Method Summary
Modifier and TypeMethodDescriptionabstract 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 Details
-
WriteCallback
public WriteCallback()
-
-
Method Details
-
writeData
Write the resource data to response.- Parameters:
attributes
- request attributes- Throws:
IOException
-
writeStream
Convenience method to write anInputStream
to response.- Parameters:
attributes
- request attributesstream
- input stream- Throws:
IOException
-