public abstract class AbstractAuthorizedSession extends Object implements Session
| Constructor and Description |
|---|
AbstractAuthorizedSession()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkBugzillaVersion()
Checks the Bugzilla version connected to.
|
void |
configure(org.apache.commons.configuration.Configuration config)
Configures the session.
|
Issue |
createIssue()
Creates an instance of Issue.
|
void |
dump()
Debugs information into log.
|
AuthorizationCallback |
getAuthorizationCallback()
Returns the authorizationCallback.
|
Class<?> |
getBugzillaBugClass()
Returns the bugzillaBugClass.
|
org.slf4j.Logger |
getLog()
Returns the logger.
|
protected String |
getLogin()
Returns the login name as told by the callback handler.
|
protected String |
getPassword()
Returns the password as told by the callback handler.
|
void |
setAuthorizationCallback(AuthorizationCallback authorizationCallback)
Sets the authorizationCallback.
|
void |
setBugzillaBugClass(Class<?> bugzillaBugClass)
Sets the bugzillaBugClass.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getAttachment, getBugzillaVersion, getIssue, getMaximumBugzillaVersion, getMinimumBugzillaVersion, isLoggedIn, open, searchBugspublic void configure(org.apache.commons.configuration.Configuration config)
throws org.apache.commons.configuration.ConfigurationException
The default Issue implementation class to be used can also
be configured using the <Issue> tag, e.g.
<Issue class="b4j.core.DefaultIssue"/>
If the tag is missing or class is empty then DefaultIssue is assumed.
configure in interface Configurableconfig - - configuration objectorg.apache.commons.configuration.ConfigurationException - - when configuration failspublic AuthorizationCallback getAuthorizationCallback()
public void setAuthorizationCallback(AuthorizationCallback authorizationCallback)
authorizationCallback - the authorizationCallback to setpublic Class<?> getBugzillaBugClass()
public void setBugzillaBugClass(Class<?> bugzillaBugClass)
bugzillaBugClass - the bugzillaBugClass to setpublic Issue createIssue()
public org.slf4j.Logger getLog()
protected String getLogin()
protected String getPassword()
protected void checkBugzillaVersion()
UnsupportedVersionException if the version does not match.Copyright © 2012. All Rights Reserved.