Package com.atlassian.feedback
Class DefaultIssueCollectorUrlManager
java.lang.Object
com.atlassian.feedback.DefaultIssueCollectorUrlManager
DefaultIssueCollectorUrlManager is used to retrieve and store the Issue Collector URLs. This is
mainly for testing purposes, to avoid having to rely on JAC during the web driver tests.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Represents the different JIRA project types and their respective Issue Collectors. -
Constructor Summary
ConstructorDescriptionDefaultIssueCollectorUrlManager
(ApplicationProperties jiraApplicationProperties) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the Issue Collector URL stored in application properties against one of the keys in JiraType, or the default URL for the product type if none can be found.void
setUrl
(DefaultIssueCollectorUrlManager.JiraType type, String dirtyUrl) Sets and overrides the Issue Collector URL for a specific project type in the Application Properties.
-
Constructor Details
-
DefaultIssueCollectorUrlManager
-
-
Method Details
-
getUrl
Retrieves the Issue Collector URL stored in application properties against one of the keys in JiraType, or the default URL for the product type if none can be found. If validation fails, then it returns default the URL.- Parameters:
type
- {JiraType} Jira project type- Returns:
- {String} Issue Collector URL for the specified project type
-
setUrl
public void setUrl(DefaultIssueCollectorUrlManager.JiraType type, String dirtyUrl) throws MalformedURLException Sets and overrides the Issue Collector URL for a specific project type in the Application Properties. NOTE: This is only provided for testing purposes and should not be used in production.- Parameters:
dirtyUrl
- {String} URL to an Issue Collector- Throws:
MalformedURLException
- if dirtyURL does not adhere to the format of a URL.
-