org.fossilec.odettej.service
Class AnswerReason

java.lang.Object
  extended by org.fossilec.odettej.service.AnswerReason

public final class AnswerReason
extends java.lang.Object

Enumeration that represents each reason code for avaiable Answer Reasons while transfering a Virtual File.

Answer Codes

        Value: 01 - Invalid filename.
               02 - Invalid destination.
               03 - Invalid origin.
               04 - Storage record format not supported.
               05 - Maximum record length not supported.
               06 - File size is too big.
               10 - Invalid record count.
               11 - Invalid byte count.
               12 - Access method failure.
               13 - Duplicate file.
               99 - Unspecified reason.
 


Field Summary
static AnswerReason ACCESS_METHOD_FAILURE
          Access method failure.
static AnswerReason DUPLICATE_FILE
          Duplicate file.
static AnswerReason FILE_SIZE_EXCEED
          File size is too big.
static AnswerReason INVALID_BYTE_COUNT
          Invalid byte count.
static AnswerReason INVALID_DESTINATION
          Invalid destination.
static AnswerReason INVALID_FILENAME
          Invalid filename.
static AnswerReason INVALID_ORIGIN
          Invalid origin.
static AnswerReason INVALID_RECORD_COUNT
          Invalid record count.
static AnswerReason UNSPECIFIED
          Unspecified reason.
static AnswerReason UNSUPPORTED_MAXIMUM_RECORD_LENGTH
          Maximum record length not supported.
static AnswerReason UNSUPPORTED_STORAGE_RECORD_FORMAT
          Storage record format not supported.
 
Method Summary
 java.lang.String getCode()
          Return the protocol representation of AnswerReason enum.
static AnswerReason parse(java.lang.String code)
          Convenient method for parsing the proper TransferMode instance given a identifier character.
static java.util.Collection values()
          Return a collection of the avaiable typed enumerations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVALID_FILENAME

public static final AnswerReason INVALID_FILENAME
Invalid filename.


INVALID_DESTINATION

public static final AnswerReason INVALID_DESTINATION
Invalid destination.


INVALID_ORIGIN

public static final AnswerReason INVALID_ORIGIN
Invalid origin.


UNSUPPORTED_STORAGE_RECORD_FORMAT

public static final AnswerReason UNSUPPORTED_STORAGE_RECORD_FORMAT
Storage record format not supported.


UNSUPPORTED_MAXIMUM_RECORD_LENGTH

public static final AnswerReason UNSUPPORTED_MAXIMUM_RECORD_LENGTH
Maximum record length not supported.


FILE_SIZE_EXCEED

public static final AnswerReason FILE_SIZE_EXCEED
File size is too big.


INVALID_RECORD_COUNT

public static final AnswerReason INVALID_RECORD_COUNT
Invalid record count.


INVALID_BYTE_COUNT

public static final AnswerReason INVALID_BYTE_COUNT
Invalid byte count.


ACCESS_METHOD_FAILURE

public static final AnswerReason ACCESS_METHOD_FAILURE
Access method failure.


DUPLICATE_FILE

public static final AnswerReason DUPLICATE_FILE
Duplicate file.


UNSPECIFIED

public static final AnswerReason UNSPECIFIED
Unspecified reason.

Method Detail

getCode

public java.lang.String getCode()
Return the protocol representation of AnswerReason enum.

Returns:
String corresponding protocol code.

parse

public static AnswerReason parse(java.lang.String code)
Convenient method for parsing the proper TransferMode instance given a identifier character.

Parameters:
code - The transfer mode character being evaluated
Returns:
CommandIdentifier Instance that correspond to the parameter
Throws:
CommandNotRecognisedException - Command not recognised

values

public static java.util.Collection values()
Return a collection of the avaiable typed enumerations.

Returns:


Copyright © 2005 ObjectWeb Consortium. All Rights Reserved.