public class FileOperationDelegate extends AbstractOperationDelegate
FileOperationDelegate
writes the result data of a
IOperation
to a file. Clients need to pass the name of the file using
the constructor. The file will be created along with it's parent directories
if they are not existing.
The result will be written, when the IOperation
finishes successfully
with a response code in range of 200 and 299.
Constructor and Description |
---|
FileOperationDelegate(java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
void |
onOperationSuccessful(IOperation operation)
Is called when the operation executed successfully (i.e.
|
onOperationFailed, onOperationFinished
public void onOperationSuccessful(IOperation operation)
AbstractOperationDelegate
onOperationSuccessful
in class AbstractOperationDelegate
operation
- the successful IOperation
(incl. the result string)