TrackService

com.j0h1.contour.server.rest

## Class TrackService

- java.lang.Object
- - com.j0h1.contour.server.rest.TrackService

-     public class TrackService
      extends java.lang.Object

  The methods of this service class are invoked by requesting the defined URL paths. The response of this service is either a single Track object or a List of Track objects.
  Author:
    Johannes Riedmann

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TrackService()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `TrackResponseList` | `getAllCategories(java.lang.String language)` This method responds to it's specified path by generating a XML document containing a list of all Track objects persisted in the database.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TrackService

          public TrackService()

  - ### Method Detail

    - #### getAllCategories

          public TrackResponseList getAllCategories(java.lang.String language)

      This method responds to it's specified path by generating a XML document containing a list of all Track objects persisted in the database.
      Parameters:
        `language` - Language code ("en"/"de") to retrieve the track names in the correct language.
      Returns:
        Responds with a list of all Track objects mapped to a XML document. If there are no tracks persisted, an empty list is returned.