public class HttpJiraSession extends AbstractHttpSession
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpJiraSession.JiraIssueIterator
The iterator class returned.
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
JIRA_FILTER |
protected static String |
JIRA_ISSUE |
protected static String |
JIRA_LOGIN |
protected static String |
JIRA_LOGOUT |
protected static String |
JIRA_MY_ISSUES |
protected static String |
JIRA_SEARCH |
| Constructor and Description |
|---|
HttpJiraSession() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the JIRA session.
|
void |
configure(org.apache.commons.configuration.Configuration config)
Configuration allows:
<jira-home>URL</jira-home> - the JIRA base URL <proxy-host> - HTTP proxy (proxy authorization not possible yet) <team name="NAME"> <Member name="FULLNAME">UID</Member> </Team> - team and member UID associations |
InputStream |
getAttachment(Attachment attachment)
Returns an input stream that will contain the attachment's content.
|
protected HttpURLConnection |
getConnection(String bugzillaPage)
Makes a request to Bugzilla without any GET parameters.
|
protected HttpURLConnection |
getConnection(String jiraPage,
String getParams,
Map<String,String> requestProperties,
boolean isGet)
Makes a request to Bugzilla including eventual GET parameters.
|
protected Map<String,String> |
getDefaultRequestProperties()
Returns default properties for JIRA access.
|
static UrlParameters |
getDefaultSearchParameters()
Returns default search parameters.
|
Issue |
getIssue(String id)
Returns the given issue
|
String |
getMaximumBugzillaVersion()
Returns the maximum Bugzilla version this session class supports.
|
String |
getMinimumBugzillaVersion()
Returns the minimum Bugzilla version this session class supports.
|
boolean |
open()
Opens the HTTP Session.
|
Iterator<Issue> |
searchBugs(SearchData searchData,
SearchResultCountCallback callback)
Performs a search for Bugzilla bugs.
|
addCookie, applyCookies, debugResponse, dump, getBaseUrl, getBugzillaVersion, getConnection, getConnection, getCookies, getProxy, getProxyAuthorizationCallback, isLoggedIn, retrieveCookies, setBaseUrl, setBugzillaVersion, setLoggedIn, setProxy, setProxyAuthorizationCallbackcheckBugzillaVersion, createIssue, getAuthorizationCallback, getBugzillaBugClass, getLog, getLogin, getPassword, setAuthorizationCallback, setBugzillaBugClassprotected static String JIRA_LOGIN
protected static String JIRA_LOGOUT
protected static String JIRA_SEARCH
protected static String JIRA_MY_ISSUES
protected static String JIRA_FILTER
protected static String JIRA_ISSUE
public void configure(org.apache.commons.configuration.Configuration config)
throws org.apache.commons.configuration.ConfigurationException
configure in interface Configurableconfigure in class AbstractHttpSessionconfig - - configuration objectorg.apache.commons.configuration.ConfigurationException - - when configuration failspublic void close()
close in interface Sessionclose in class AbstractHttpSessionSession.close()public String getMaximumBugzillaVersion()
Sessionpublic String getMinimumBugzillaVersion()
Sessionprotected Map<String,String> getDefaultRequestProperties()
public boolean open()
Session.open()public Issue getIssue(String id)
Sessionid - id of issueSession.getIssue(java.lang.String)public InputStream getAttachment(Attachment attachment) throws IOException
attachment - attachment to retrieve.IOException - when the IO stream cannot be createdpublic Iterator<Issue> searchBugs(SearchData searchData, SearchResultCountCallback callback)
SessionsearchData - - all search parameterscallback - - a callback object that will retrieve the number of bugs
found for this searchprotected HttpURLConnection getConnection(String bugzillaPage)
bugzillaPage - - ID of page to make the request to.protected HttpURLConnection getConnection(String jiraPage, String getParams, Map<String,String> requestProperties, boolean isGet)
getConnection in class AbstractHttpSessionjiraPage - URL path to requestgetParams - param string to be appendedrequestProperties - properties of the requestisGet - true when a GET request shall be prepared, fals for a POST requestpublic static UrlParameters getDefaultSearchParameters()
Copyright © 2012. All Rights Reserved.