Package com.atlassian.bamboo.build
Class CookieCutterImpl
- java.lang.Object
-
- com.atlassian.bamboo.build.CookieCutterImpl
-
- All Implemented Interfaces:
CookieCutter
- Direct Known Subclasses:
FilterController
public class CookieCutterImpl extends Object implements CookieCutter
-
-
Field Summary
Fields Modifier and Type Field Description static String
AJS_CONGLOMERATE_COOKIE
static int
FILTER_COOKIE_AGE
-
Constructor Summary
Constructors Constructor Description CookieCutterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable String
getValueFromConglomerateCookie(String cookieKey, String key)
Retrieve variable from AJS conglomerate cookie.@NotNull String
getValueFromCookie(String key)
String
getValueFromCookie(String key, String defaultValue)
void
saveValueInCookie(String key, String value)
-
-
-
Field Detail
-
FILTER_COOKIE_AGE
public static int FILTER_COOKIE_AGE
-
AJS_CONGLOMERATE_COOKIE
public static final String AJS_CONGLOMERATE_COOKIE
- See Also:
- Constant Field Values
-
-
Method Detail
-
saveValueInCookie
public void saveValueInCookie(String key, String value)
- Specified by:
saveValueInCookie
in interfaceCookieCutter
-
getValueFromCookie
@NotNull public @NotNull String getValueFromCookie(String key)
- Specified by:
getValueFromCookie
in interfaceCookieCutter
-
getValueFromCookie
public String getValueFromCookie(String key, String defaultValue)
- Specified by:
getValueFromCookie
in interfaceCookieCutter
-
getValueFromConglomerateCookie
@Nullable public @Nullable String getValueFromConglomerateCookie(String cookieKey, String key)
Retrieve variable from AJS conglomerate cookie. AJS saves its cookie variables in single cookie as key=value, '|' char is the separator.- Specified by:
getValueFromConglomerateCookie
in interfaceCookieCutter
- Parameters:
cookieKey
- key of the cookiekey
- key of a variable- Returns:
- value or null if not found
-
-