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

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

public class StatusClient
extends RestApiClient<StatusClient>

Client for the status 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
StatusClient(JIRAEnvironmentData environmentData)
          Constructs a new StatusClient for a JIRA instance.
 
Method Summary
 List<Status> get()
          GETs all statuses
 Status get(String statusID)
          GETs the status with the given id.
 Response getResponse(String statusID)
          GETs the status with the given id, returning a Response object.
protected  com.sun.jersey.api.client.WebResource status()
          Returns a WebResource for the all status.
protected  com.sun.jersey.api.client.WebResource statusWithID(String statusID)
          Returns a WebResource for the status having the given id.
 
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

StatusClient

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

Parameters:
environmentData - The JIRA environment data
Method Detail

get

public Status get(String statusID)
           throws com.sun.jersey.api.client.UniformInterfaceException
GETs the status with the given id.

Parameters:
statusID - a String containing the status id
Returns:
a Status
Throws:
com.sun.jersey.api.client.UniformInterfaceException - if there's a problem getting the status

get

public List<Status> get()
                 throws com.sun.jersey.api.client.UniformInterfaceException
GETs all statuses

Returns:
a List of Statuses
Throws:
com.sun.jersey.api.client.UniformInterfaceException - if there's a problem getting the status

getResponse

public Response getResponse(String statusID)
GETs the status with the given id, returning a Response object.

Parameters:
statusID - a String containing the status id
Returns:
a Response

status

protected com.sun.jersey.api.client.WebResource status()
Returns a WebResource for the all status.

Returns:
a WebResource

statusWithID

protected com.sun.jersey.api.client.WebResource statusWithID(String statusID)
Returns a WebResource for the status having the given id.

Parameters:
statusID - a String containing the status id
Returns:
a WebResource


Copyright © 2002-2012 Atlassian. All Rights Reserved.