Package org.keycloak.exportimport
Interface ExportAdapter
-
public interface ExportAdapter
This adapter allows the exporter to act independent of APIs used to serve the exported data to the caller.- Author:
- Alexander Schwartz
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ExportAdapter.ConsumerOfOutputStream
Custom consumer that is allowed to throw anIOException
as writing to an output stream might do this.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setType(String mediaType)
Set the mime type of the output.void
writeToOutputStream(ExportAdapter.ConsumerOfOutputStream consumer)
Write to the output stream.
-
-
-
Method Detail
-
setType
void setType(String mediaType)
Set the mime type of the output.- Parameters:
mediaType
- Mime Type
-
writeToOutputStream
void writeToOutputStream(ExportAdapter.ConsumerOfOutputStream consumer)
Write to the output stream. Once writing is complete, close it.- Parameters:
consumer
- A consumer to that accepts the output stream.
-
-