protected JiraSession getSession() throws ManifoldCFException, ServiceInterruption {
if (session == null) {
// Check for parameter validity
if (StringUtils.isEmpty(jiraprotocol)) {
throw new ManifoldCFException("Parameter " + JiraConfig.JIRA_PROTOCOL_PARAM
+ " required but not set");
}
if (Logging.connectors.isDebugEnabled()) {
Logging.connectors.debug("JIRA: jiraprotocol = '" + jiraprotocol + "'");
}
if (StringUtils.isEmpty(jirahost)) {
throw new ManifoldCFException("Parameter " + JiraConfig.JIRA_HOST_PARAM
+ " required but not set");
}
if (Logging.connectors.isDebugEnabled()) {
Logging.connectors.debug("JIRA: jirahost = '" + jirahost + "'");
}
if (Logging.connectors.isDebugEnabled()) {
Logging.connectors.debug("JIRA: jiraport = '" + jiraport + "'");
}
if (StringUtils.isEmpty(jirapath)) {
throw new ManifoldCFException("Parameter " + JiraConfig.JIRA_PATH_PARAM
+ " required but not set");
}
if (Logging.connectors.isDebugEnabled()) {
Logging.connectors.debug("JIRA: jirapath = '" + jirapath + "'");