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

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

public class FieldClient
extends RestApiClient<FieldClient>

Client for the field resource.

Since:
v5.0

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
FieldClient(JIRAEnvironmentData environmentData)
          Constructs a new FieldClient for a JIRA instance.
 
Method Summary
protected  com.sun.jersey.api.client.WebResource field()
          Returns a WebResource for the all field.
protected  com.sun.jersey.api.client.WebResource fieldWithID(String fieldID)
          Returns a WebResource for the field having the given id.
 List<Field> get()
          GETs all fieldes
 Response getResponse(String fieldID)
          GETs the field with the given id, returning a Response object.
 
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

FieldClient

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

Parameters:
environmentData - The JIRA environment data
Method Detail

get

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

Returns:
a Field
Throws:
com.sun.jersey.api.client.UniformInterfaceException - if there's a problem getting the field

getResponse

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

Parameters:
fieldID - a String containing the field id
Returns:
a Response

field

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

Returns:
a WebResource

fieldWithID

protected com.sun.jersey.api.client.WebResource fieldWithID(String fieldID)
Returns a WebResource for the field having the given id.

Parameters:
fieldID - a String containing the field id
Returns:
a WebResource


Copyright © 2002-2012 Atlassian. All Rights Reserved.