com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client
Class ComponentClient

java.lang.Object
  extended by com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient<ComponentClient>
      extended by com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.ComponentClient

public class ComponentClient
extends RestApiClient<ComponentClient>

Client for the component resource.

Since:
v4.3

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
ComponentClient(JIRAEnvironmentData environmentData)
          Constructs a new ComponentClient for a JIRA instance.
 
Method Summary
protected  com.sun.jersey.api.client.WebResource componentWithId(String componentID)
          Returns the web resource for a given comment.
 Component create(Component component)
           
 Response createResponse(Component component)
           
 Response delete(String componentId)
           
 Response delete(String componentId, URI swapComponent)
           
 Component get(String componentID)
          GETs the component with the given ID.
 ComponentIssueCounts getComponentIssueCounts(String componentId)
           
 Response getComponentIssueCountsResponse(String componentId)
           
 Response getResponse(String componentID)
          GETs the component with the given ID, and returns the Response.
 Response putResponse(Component component)
           
 Response putResponse(String componentId, Component component)
           
 
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

ComponentClient

public ComponentClient(JIRAEnvironmentData environmentData)
Constructs a new ComponentClient for a JIRA instance.

Parameters:
environmentData - The JIRA environment data
Method Detail

get

public Component get(String componentID)
              throws com.sun.jersey.api.client.UniformInterfaceException
GETs the component with the given ID.

Parameters:
componentID - a String containing a component ID
Returns:
a Component
Throws:
com.sun.jersey.api.client.UniformInterfaceException - if anything goes wrong

getResponse

public Response getResponse(String componentID)
GETs the component with the given ID, and returns the Response.

Parameters:
componentID - a String containing the component ID
Returns:
a Response

componentWithId

protected com.sun.jersey.api.client.WebResource componentWithId(String componentID)
Returns the web resource for a given comment.

Parameters:
componentID - a String containing the comment ID
Returns:
a WebResource

create

public Component create(Component component)

createResponse

public Response createResponse(Component component)

putResponse

public Response putResponse(String componentId,
                            Component component)

putResponse

public Response putResponse(Component component)

getComponentIssueCounts

public ComponentIssueCounts getComponentIssueCounts(String componentId)
                                             throws com.sun.jersey.api.client.UniformInterfaceException
Throws:
com.sun.jersey.api.client.UniformInterfaceException

getComponentIssueCountsResponse

public Response getComponentIssueCountsResponse(String componentId)

delete

public Response delete(String componentId)
                throws com.sun.jersey.api.client.UniformInterfaceException
Throws:
com.sun.jersey.api.client.UniformInterfaceException

delete

public Response delete(String componentId,
                       URI swapComponent)
                throws com.sun.jersey.api.client.UniformInterfaceException
Throws:
com.sun.jersey.api.client.UniformInterfaceException


Copyright © 2002-2012 Atlassian. All Rights Reserved.