org.neociclo.odetteftp.protocol
Class DefaultEndFileResponse
java.lang.Object
org.neociclo.odetteftp.protocol.DefaultEndFileResponse
- All Implemented Interfaces:
- EndFileResponse
public class DefaultEndFileResponse
- extends Object
- implements EndFileResponse
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
positiveEndFileAnswer
public static EndFileResponse positiveEndFileAnswer()
positiveEndFileAnswer
public static DefaultEndFileResponse positiveEndFileAnswer(boolean changeDirection)
negativeEndFileAnswer
public static DefaultEndFileResponse negativeEndFileAnswer()
negativeEndFileAnswer
public static DefaultEndFileResponse negativeEndFileAnswer(AnswerReason reason,
String reasonText)
accepted
public boolean accepted()
- Specified by:
accepted
in interface EndFileResponse
- Returns:
- if this is a positive or negative end file esponse
getReason
public AnswerReason getReason()
- Specified by:
getReason
in interface EndFileResponse
- Returns:
- reason for negative end file response
getReasonText
public String getReasonText()
- Specified by:
getReasonText
in interface EndFileResponse
- Returns:
- description for negative end file response
changeDirection
public boolean changeDirection()
- Specified by:
changeDirection
in interface EndFileResponse
- Returns:
- if a change direction (CD) must be peformed
ACCORD