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

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

public class ResolutionClient
extends RestApiClient<ResolutionClient>

Client class for the Resolution 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
ResolutionClient(JIRAEnvironmentData environmentData)
          Constructs a new ResolutionClient for a JIRA instance.
 
Method Summary
 List<Resolution> get()
          GETs all priorities
 Resolution get(String resolutionID)
          GETs the resolution having the given id.
 Response getResponse(String resolutionID)
          GETs the resolution having the given id, and returns a Reponse.
 
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

ResolutionClient

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

Parameters:
environmentData - The JIRA environment data
Method Detail

get

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

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

get

public Resolution get(String resolutionID)
               throws com.sun.jersey.api.client.UniformInterfaceException
GETs the resolution having the given id.

Parameters:
resolutionID - a String containing the resolution id
Returns:
a Resolution
Throws:
com.sun.jersey.api.client.UniformInterfaceException - if there is an error

getResponse

public Response getResponse(String resolutionID)
GETs the resolution having the given id, and returns a Reponse.

Parameters:
resolutionID - a String containing the resolution id
Returns:
a Response


Copyright © 2002-2012 Atlassian. All Rights Reserved.