Class CommentRequestHandler

    • Constructor Detail

      • CommentRequestHandler

        public CommentRequestHandler​(DataService dataService,
                                     TokenService tokenService,
                                     com.google.gson.Gson gson)
    • Method Detail

      • handleGetComments

        public Collection<Comment> handleGetComments​(spark.Request request,
                                                     spark.Response response)
      • handleGetCommentsByUserId

        public Collection<Comment> handleGetCommentsByUserId​(spark.Request request,
                                                             spark.Response response)
      • handleGetComment

        public Comment handleGetComment​(spark.Request request,
                                        spark.Response response)
      • handleEditComment

        public Boolean handleEditComment​(spark.Request request,
                                         spark.Response response)
                                  throws IOException
        Throws:
        IOException
      • handleDeleteComment

        public Boolean handleDeleteComment​(spark.Request request,
                                           spark.Response response)
                                    throws IOException
        Throws:
        IOException