Ignore:
Timestamp:
02/24/15 18:53:22 (9 years ago)
Author:
olhsha@mpi.nl
Message:

Revising javadoc is completed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/CachedRepresentationResource.java

    r6038 r6044  
    5252
    5353/**
    54  * REST class for GETting, POSTing and PUTting cached representations;
    55  * DELETing cached representation is provided by TargetRsource class;
    56  * Every REST method in the case of successful completion of its action outputs the declared output type
     54 * A REST class for GETting, POSTing and PUTting cached representations.
     55 * DELETing cached representation is provided by {@link TargetRsource} class.
     56 * Every REST method in the case of successful completion produces an object of the declared output type
    5757 * (a JAXB-element or a message string) or sends a HTTP-error with the corresponding diagnostics otherwise.
    5858 * @author olhsha
     
    6363public class CachedRepresentationResource extends ResourceResource {
    6464   
    65     /**
    66      *
    67      * @param request a {@link HttpServletRequest} object representing request; the set parameter is used in unit tests.
    68      */
    69     public void setHttpRequest(HttpServletRequest request) {
    70         this.httpServletRequest = request;
    71     }
    72 
    73     /**
    74      *
    75      * @param externalId the external UUID of a cached representations.
    76      * @return a {@link CachedRepresentationInfo} representing the metadata for the cached representation with the "externalId".
    77      * @throws IOException if sending the error fails.
     65   
     66    /**
     67     *
     68     * @param externalId the external UUID of a cached representation.
     69     * @return a {@link CachedRepresentationInfo} object representing the metadata for the cached representation with the "externalId".
     70     * @throws IOException if sending an error fails.
    7871     */
    7972    @GET
     
    112105     * @param externalId the external UUID of a cached representation.
    113106     * @return the image-blob if the cached-representation's blob is an image file.
    114      * @throws IOException if logging the error fails (should be changed to sending httpResponse error message).
     107     * @throws IOException if logging an error fails (should be changed to sending httpResponse error message).
    115108     */
    116109    @GET
     
    150143     * @param externalId the external UUID of a cached representation.
    151144     * @return the cached-representation's blob.
    152      * @throws IOException is sending the error fails.
     145     * @throws IOException is sending an error fails.
    153146     */
    154147    @GET
     
    180173    /**
    181174     *
    182      * @param cachedIdentifier the external uuid of a cached representation.
    183      * @param multiPart a {@link MultiPart} object containing two parts: a {@linkCachedRepresentationInfo} object for the cached-representation's metadata, and its blob.
    184      * @return a message about how many rows in "cached_representation" table have been update; "1" if updated, and "0" otherwisee.
    185      * @throws IOException if sending the error fails.
     175     * @param cachedIdentifier the external UUID of a cached representation.
     176     * @param multiPart a {@link MultiPart} object containing two parts: a {@link CachedRepresentationInfo} object for the cached-representation's metadata, and its blob.
     177     * @return a message about how many rows in "cached_representation" table have been updated; "1" if updated, and "0" otherwisee.
     178     * @throws IOException if sending an error fails.
    186179     */
    187180    @PUT
     
    263256    /**
    264257     *
    265      * @param cachedInfo a {@link CachedRepresentationInfo} representing the new metadata.
    266      * @return a message about how many rows in "cached_representation" table, "1" if updated, "0" otherwise.
    267      * @throws IOException if sending the error fails.
     258     * @param cachedInfo a {@link CachedRepresentationInfo} object representing the new metadata.
     259     * @return a message about how many rows in "cached_representation" table have been updated: "1" if updated, "0" otherwise.
     260     * @throws IOException if sending an error fails.
    268261     */
    269262    @PUT
Note: See TracChangeset for help on using the changeset viewer.