com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client
Class CommentClient
java.lang.Object
com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient<CommentClient>
com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.CommentClient
public class CommentClient
- extends RestApiClient<CommentClient>
Client for the Comment resource.
- Since:
- v4.3
Methods inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient |
anonymous, createResource, errorResponse, expanded, loginAs, loginAs, percentEncode, resourceRoot, setOf, toResponse, toResponse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommentClient
public CommentClient(JIRAEnvironmentData environmentData)
- Constructs a new CommentClient for a JIRA instance.
- Parameters:
environmentData
- The JIRA environment data
get
public Response<Comment> get(String issueKey,
String commentID)
throws com.sun.jersey.api.client.UniformInterfaceException
- GETs the comment with the given ID.
- Parameters:
issueKey
- the comment belongs tocommentID
- a String containing a comment id
- Returns:
- a Comment
- Throws:
com.sun.jersey.api.client.UniformInterfaceException
- if there is a problem getting the comment
getComments
public Response<CommentsWithPaginationBean> getComments(String issueKey)
put
public Response<Comment> put(String issueKey,
Comment comment)
post
public Response<Comment> post(String issueKey,
Comment comment)
delete
public Response delete(String issueKey,
Comment comment)
delete
public Response delete(String issueKey,
String commentId)
getResponse
public Response getResponse(String issueKey,
String commentID)
- GETs the comment with the given ID, and returns a Response.
- Parameters:
issueKey
- the comment belongs tocommentID
- a String containing a comment ID
- Returns:
- a Response
commentWithID
protected com.sun.jersey.api.client.WebResource commentWithID(String issueKey,
String commentID)
- Returns a WebResource for the comment with the given ID.
- Parameters:
issueKey
- the comment belongs tocommentID
- a String containing a comment ID
- Returns:
- a WebResource
Copyright © 2002-2012 Atlassian. All Rights Reserved.