Class RequestContentType

    • Method Detail

      • setRootContentType

        public void setRootContentType​(java.lang.String rootContentType)
        Specifies the root content type to filter result. Examples: media, games or ebooks.

        If not called, contents for all types are returned.
        Parameters:
        rootContentType - Only accepts strings provided by RootContentType, such as media, games or ebooks.
      • setSeatClass

        public void setSeatClass​(java.lang.String seatClass)
        Specifies the seat class, such as first or business.
        If not called, SeatClass.All will be used.
        Parameters:
        seatClass - Only accepts strings provided by SeatClass.
      • executeSync

        public java.util.List<TypeList> executeSync()
                                             throws ContentDiscovery.Exception
        Gets a list of all content types for the specified content name. For example, the content name 'media' can have content types of 'video.movie' or 'video.music'.

        This call is synchronous.
        Returns:
        a list of TypeList.
        Throws:
        ContentDiscovery.Exception - if error occurs.