net.sf.jdigg.requests
Class ListCommentsRequest

java.lang.Object
  extended by net.sf.jdigg.requests.AbstractRequest
      extended by net.sf.jdigg.requests.ListCommentsRequest

public class ListCommentsRequest
extends AbstractRequest

Fetches a list of comments from Digg.

Please read this before you use the API: Be Polite, Please!

Since:
1.0 M1
Author:
Philip May

Field Summary
 
Fields inherited from class net.sf.jdigg.requests.AbstractRequest
DIGG_SERVICE_URL, log
 
Constructor Summary
ListCommentsRequest(RequestConfig requestConfig)
           
 
Method Summary
 Comments allComments(ListCommentsArguments listCommentsArguments)
          All comments.
 Comments popularComments(ListCommentsArguments listCommentsArguments)
          All comments on popular stories.
 Comments topLevelCommentsForGivenStory(ListCommentsArguments listCommentsArguments, int id)
          Top-level comments for a given story.
 Comments upcomingComments(ListCommentsArguments listCommentsArguments)
          All comments on upcoming stories.
 
Methods inherited from class net.sf.jdigg.requests.AbstractRequest
buildRequestString, getHttpClient, getRequestConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListCommentsRequest

public ListCommentsRequest(RequestConfig requestConfig)
Method Detail

allComments

public Comments allComments(ListCommentsArguments listCommentsArguments)
                     throws RequestException,
                            ResponseParserException,
                            DiggException
All comments.

Throws:
RequestException
ResponseParserException
DiggException

popularComments

public Comments popularComments(ListCommentsArguments listCommentsArguments)
                         throws RequestException,
                                ResponseParserException,
                                DiggException
All comments on popular stories.

Throws:
RequestException
ResponseParserException
DiggException

upcomingComments

public Comments upcomingComments(ListCommentsArguments listCommentsArguments)
                          throws RequestException,
                                 ResponseParserException,
                                 DiggException
All comments on upcoming stories.

Throws:
RequestException
ResponseParserException
DiggException

topLevelCommentsForGivenStory

public Comments topLevelCommentsForGivenStory(ListCommentsArguments listCommentsArguments,
                                              int id)
                                       throws RequestException,
                                              ResponseParserException,
                                              DiggException
Top-level comments for a given story.

Throws:
RequestException
ResponseParserException
DiggException


Copyright © 2008. All Rights Reserved.