com.atlassian.jira.rest.v1.images
Class DropDownResource

java.lang.Object
  extended by com.atlassian.jira.rest.v1.images.DropDownResource

public class DropDownResource
extends Object

REST endpoint for retrieving a dropdown arrow of a given colour.

Since:
v4.0

Constructor Summary
DropDownResource(DropDownCreatorService dropDownCreatorService)
           
 
Method Summary
 javax.ws.rs.core.Response getImage(String colorHex, String backgroundColorHex)
          Retrieve a dropdown arrow for the passed in color.
 javax.ws.rs.core.Response getImageFromPath(String colorHex, String backgroundColorHex)
          Same as the /dropdowns?color&bgcolor url, but the colours are specified in the path not the query string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropDownResource

public DropDownResource(DropDownCreatorService dropDownCreatorService)
Method Detail

getImage

public javax.ws.rs.core.Response getImage(String colorHex,
                                          String backgroundColorHex)
Retrieve a dropdown arrow for the passed in color.

Input strings can ontain a leading hash (#) and can be a 3 char or 6 char hex string. See any web tutorial for what colour the string represents.

This is cached effectively forever

Parameters:
colorHex - The main color of the dropdown
backgroundColorHex - Thebackground colour of the dropdown. This will also be transparent. Useful for IE6
Returns:
An array of bytes that represent the returned png. This is cached effectively forever

getImageFromPath

public javax.ws.rs.core.Response getImageFromPath(String colorHex,
                                                  String backgroundColorHex)
Same as the /dropdowns?color&bgcolor url, but the colours are specified in the path not the query string. The leading (hash) component of the path is ignored.



Copyright © 2002-2013 Atlassian. All Rights Reserved.