Class AtlassianServerCapabilities
- java.lang.Object
-
- com.atlassian.bitbucket.jenkins.internal.model.AtlassianServerCapabilities
-
public class AtlassianServerCapabilities extends Object
Capabilities as advertised by Atlassian products.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEPLOYMENTS_CAPABILITY_KEY
static String
RICH_BUILDSTATUS_CAPABILITY_KEY
static String
WEBHOOK_CAPABILITY_KEY
-
Constructor Summary
Constructors Constructor Description AtlassianServerCapabilities(String application, Map<String,String> capabilities)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getApplication()
Return the application type as provided by the remote side.Map<String,String>
getCapabilities()
boolean
isBitbucketServer()
-
-
-
Field Detail
-
WEBHOOK_CAPABILITY_KEY
public static final String WEBHOOK_CAPABILITY_KEY
- See Also:
- Constant Field Values
-
RICH_BUILDSTATUS_CAPABILITY_KEY
public static final String RICH_BUILDSTATUS_CAPABILITY_KEY
- See Also:
- Constant Field Values
-
DEPLOYMENTS_CAPABILITY_KEY
public static final String DEPLOYMENTS_CAPABILITY_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getApplication
@Nullable public String getApplication()
Return the application type as provided by the remote side.- Returns:
- the application type, or null if it was not part of the response
-
isBitbucketServer
public boolean isBitbucketServer()
- Returns:
- true if the server claims to be a Bitbucket server instance. False if the application type was not provided or if it is some other Atlassian server
-
-