public class HeaderSeparatorResouce extends Object
Constructor and Description |
---|
HeaderSeparatorResouce(HeaderSeparatorService headerSeparatorService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getImage(String colorHex,
String backgroundColorHex)
Retrieve a header separator for the passed in colors.
|
javax.ws.rs.core.Response |
getImageFromPath(String colorHex,
String backgroundColorHex)
Same as the /header-separator?color&bgcolor url, but the colours are specified in the path not the query string.
|
public HeaderSeparatorResouce(HeaderSeparatorService headerSeparatorService)
public javax.ws.rs.core.Response getImage(String colorHex, String backgroundColorHex)
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
colorHex
- The main color of the separatorbackgroundColorHex
- The background colour of the separator.Copyright © 2002-2019 Atlassian. All Rights Reserved.