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

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

public class PriorityClient
extends RestApiClient<PriorityClient>

TODO: Document this class / interface here

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
PriorityClient(JIRAEnvironmentData environmentData)
          Constructs a new PriorityClient for a JIRA instance.
 
Method Summary
 List<Priority> get()
          GETs all priorities
 Priority get(String priorityID)
          GETs the priority with the given ID.
 Response getResponse(String priorityID)
          GETs the priority with the given ID, returning a Response object.
protected  com.sun.jersey.api.client.WebResource priority()
          Returns a WebResource for priorities.
protected  com.sun.jersey.api.client.WebResource priorityWithID(String priorityID)
          Returns a WebResource for the priority 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

PriorityClient

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

Parameters:
environmentData - The JIRA environment data
Method Detail

get

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

Returns:
a list of Priority
Throws:
com.sun.jersey.api.client.UniformInterfaceException - if anything goes wrong

get

public Priority get(String priorityID)
             throws com.sun.jersey.api.client.UniformInterfaceException
GETs the priority with the given ID.

Parameters:
priorityID - a String containing a priority ID
Returns:
a Priority
Throws:
com.sun.jersey.api.client.UniformInterfaceException - if anything goes wrong

getResponse

public Response getResponse(String priorityID)
GETs the priority with the given ID, returning a Response object.

Parameters:
priorityID - a String containing a priority ID
Returns:
a Response

priority

protected com.sun.jersey.api.client.WebResource priority()
Returns a WebResource for priorities.

Returns:
a WebResource

priorityWithID

protected com.sun.jersey.api.client.WebResource priorityWithID(String priorityID)
Returns a WebResource for the priority having the given ID.

Parameters:
priorityID - a String containing a priority ID
Returns:
a WebResource


Copyright © 2002-2012 Atlassian. All Rights Reserved.