package org.rmatil.sync.core.messaging;

import org.rmatil.sync.core.messaging.fileexchange.offer.FileOfferRequest;

public enum StatusCode {

    NONE,

    ACCEPTED,

    /**
     * If the client sending the response
     * has denied the request
     */
    DENIED,

    /**
     * If the client has a conflict if
     * he would execute the requested action
     */
    CONFLICT,

    /**
     * If the client already has the state,
     * offered in an {@link FileOfferRequest}
     */
    REQUEST_OBSOLETE,

    /**
     * If the sending client is not authorized
     * to start a particular action on the receiving client
     */
    ACCESS_DENIED,

    /**
     * The status code of a file exchange message, if the
     * file has changed while transferring
     */
    FILE_CHANGED,

    FILE_CORRUPT,

    /**
     * The status code of a file exchange, if the
     * requested file has been lost
     */
    FILE_MISSING
}

@@ -76,82 +76,951 @@
 ing.
-fileexchange.offer.FileOfferRequest;%0A%0Apublic enum StatusCode %7B%0A%0A    NONE,%0A
+base.AMessage;%0Aimport org.rmatil.sync.core.messaging.base.ARequest;%0Aimport org.rmatil.sync.core.messaging.base.AResponse;%0Aimport org.rmatil.sync.core.messaging.fileexchange.offer.FileOfferRequest;%0Aimport org.rmatil.sync.core.messaging.fileexchange.push.FilePushExchangeHandler;%0A%0A/**%0A * Similar to HTTP responses, a %7B@link AMessage%7D, the base class%0A * for an %7B@link ARequest%7D resp. %7B@link AResponse%7D, contains%0A * a flag indicating the message's status.%0A * %3Cp%3E%0A * However, not only responses may have a status but also%0A * requests. The %7B@link FilePushExchangeHandler%7D uses this flag%0A * to indicate whether a file has changed in the mean time of synchronising%0A * to allow the receiving client to restart the exchange.%0A */%0Apublic enum StatusCode %7B%0A%0A    /**%0A     * Used for initial requests%0A     * which do not have any status yet%0A     */%0A    NONE,%0A%0A    /**%0A     * If the request was accepted%0A     * and the corresponding operation executed%0A     */
 %0A   
@@ -1624,12 +1624,12 @@
 rans
-ferr
+mitt
 ing%0A
@@ -1659,27 +1659,8 @@
 D,%0A%0A
-    FILE_CORRUPT,%0A%0A
     

Add documentation and remove obsolete FILE_CORRUPT status