|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient<AttachmentClient> com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.AttachmentClient
public class AttachmentClient
Client for the Attachment resource.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient |
---|
RestApiClient.Method |
Field Summary |
---|
Fields inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient |
---|
REST_VERSION |
Constructor Summary | |
---|---|
AttachmentClient(JIRAEnvironmentData environmentData)
Constructs a new AttachmentClient for a JIRA instance. |
Method Summary | |
---|---|
protected com.sun.jersey.api.client.WebResource |
attachmentMeta()
Returns the WebResource for the attachment meta |
protected com.sun.jersey.api.client.WebResource |
attachmentWithID(String attachmentID)
Returns the WebResource for the attachment having the given id. |
Response |
deleteResponse(String attachmentID)
Deletes the attachment with the given ID, and returns the Response. |
Attachment |
get(String attachmentID)
GETs the attachment with the given id. |
Map |
getMeta()
GETs the global attachment meta |
Response |
getResponse(String attachmentID)
GETs the attachment with the given ID, and returns the Response. |
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 |
Constructor Detail |
---|
public AttachmentClient(JIRAEnvironmentData environmentData)
environmentData
- The JIRA environment dataMethod Detail |
---|
public Attachment get(String attachmentID) throws com.sun.jersey.api.client.UniformInterfaceException
attachmentID
- a String containing the attachment id
com.sun.jersey.api.client.UniformInterfaceException
- if there is a problempublic Response getResponse(String attachmentID)
attachmentID
- a String containing the attachment ID
public Response deleteResponse(String attachmentID)
attachmentID
- a String containing the attachment ID
protected com.sun.jersey.api.client.WebResource attachmentWithID(String attachmentID)
attachmentID
- a String containing the attachment id
public Map getMeta()
protected com.sun.jersey.api.client.WebResource attachmentMeta()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |