public class NotCompatibleParser extends BaseParser
colorProvider, cookieProvider, cookieStore, credential, debuggingDataHandler, encodingDetector, executor, PARAM_CLASS_REGEX, sardine| Constructor and Description |
|---|
NotCompatibleParser(SubstitutionScheduleData scheduleData,
CookieProvider cookieProvider) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getAllClasses()
Get a list of all available classes.
|
java.util.List<java.lang.String> |
getAllTeachers()
Get a list of all available teachers.
|
Credential |
getCredential() |
org.joda.time.LocalDateTime |
getLastChange()
Returns the time when the substitution schedule was last changed.
|
SubstitutionSchedule |
getSubstitutionSchedule()
Downloads and parses the substitution schedule
|
boolean |
isPersonal()
Some substitution schedule systems allow the user to only see his "own" substitution schedule depending on the
credentials he enters.
|
void |
setCredential(Credential credential) |
contains, getClassesFromJson, getInstance, getWebdavClient, httpGet, httpGet, httpGet, httpPost, httpPost, httpPost, httpPost, recognizeType, setDebuggingDataHandler, setLocalSourcepublic NotCompatibleParser(SubstitutionScheduleData scheduleData, CookieProvider cookieProvider)
public SubstitutionSchedule getSubstitutionSchedule() throws java.io.IOException, org.json.JSONException, CredentialInvalidException
SubstitutionScheduleParsergetSubstitutionSchedule in interface SubstitutionScheduleParsergetSubstitutionSchedule in class BaseParserSubstitutionSchedulejava.io.IOException - Connection or parsing errororg.json.JSONException - Error with the JSON configurationCredentialInvalidException - the supplied credential (BaseParser.setCredential(Credential) is
not correctpublic java.util.List<java.lang.String> getAllClasses()
throws java.io.IOException,
org.json.JSONException,
CredentialInvalidException
BaseParsergetAllClasses in class BaseParserjava.io.IOException - Connection or parsing errororg.json.JSONException - Error with the JSON configurationCredentialInvalidExceptionpublic java.util.List<java.lang.String> getAllTeachers()
throws java.io.IOException,
org.json.JSONException,
CredentialInvalidException
BaseParsernull.getAllTeachers in class BaseParserjava.io.IOException - Connection or parsing errororg.json.JSONException - Error with the JSON configurationCredentialInvalidExceptionpublic org.joda.time.LocalDateTime getLastChange()
throws java.io.IOException,
org.json.JSONException,
CredentialInvalidException
SubstitutionScheduleParserBaseParser returns null.getLastChange in interface SubstitutionScheduleParsergetLastChange in class BaseParserjava.io.IOException - Connection or parsing errororg.json.JSONException - Error with the JSON configurationCredentialInvalidException - the supplied credential (BaseParser.setCredential(Credential) is
not correctpublic void setCredential(Credential credential)
setCredential in interface SubstitutionScheduleParsersetCredential in class BaseParserpublic Credential getCredential()
getCredential in interface SubstitutionScheduleParsergetCredential in class BaseParserpublic boolean isPersonal()
SubstitutionScheduleParsertrue.isPersonal in interface SubstitutionScheduleParserisPersonal in class BaseParser