Package com.atlassian.bamboo.build
Class CookieCutterImpl
java.lang.Object
com.atlassian.bamboo.build.CookieCutterImpl
- All Implemented Interfaces:
CookieCutter
- Direct Known Subclasses:
FilterController
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
getValueFromConglomerateCookie
(String cookieKey, String key) Retrieve variable from AJS conglomerate cookie.@NotNull String
getValueFromCookie
(String key) getValueFromCookie
(String key, String defaultValue) void
saveValueInCookie
(String key, String value)
-
Field Details
-
FILTER_COOKIE_AGE
public static int FILTER_COOKIE_AGE -
AJS_CONGLOMERATE_COOKIE
- See Also:
-
-
Constructor Details
-
CookieCutterImpl
public CookieCutterImpl()
-
-
Method Details
-
saveValueInCookie
- Specified by:
saveValueInCookie
in interfaceCookieCutter
-
getValueFromCookie
- Specified by:
getValueFromCookie
in interfaceCookieCutter
-
getValueFromCookie
- Specified by:
getValueFromCookie
in interfaceCookieCutter
-
getValueFromConglomerateCookie
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
-