TransferOutcome (The Data Transfer Agent Library 1.1.1-SNAPSHOT API)
Date: 2012-11-16

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gcube.datatransfer.agent.library.outcome
Class TransferOutcome

    java.lang.Object
      org.gcube.datatransfer.agent.library.outcome.TransferOutcome

Direct Known Subclasses:
  FileTransferOutcome, TreeTransferOutcome

    public abstract class TransferOutcome

extends Object

Constructor Summary
`TransferOutcome()`

Method Summary
`String` | `failure()` Returns the exception raised when unsuccessfully transfer a file.
`String` | `getException()`
`boolean` | `isFailure()`
`boolean` | `isSuccess()`
`void` | `setException(String exception)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TransferOutcome

    public TransferOutcome()

Method Detail

### isSuccess

    public boolean isSuccess()

  Returns:
    `true` if the outcome indicates success, `false` otherwise

### isFailure

    public boolean isFailure()

  Returns:
    `true` if the outcome indicates a failure, `false` otherwise

### getException

    public String getException()

### setException

    public void setException(String exception)

### failure

    public String failure()

  Returns the exception raised when unsuccessfully transfer a file.

  Returns:
    the exception, or `null` if the outcome indicates a success

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2012. All Rights Reserved.