public class IndiwareStundenplan24Parser extends IndiwareParser
This parser can be accessed using "stundenplan24" for SubstitutionScheduleData.setApi(String).
SubstitutionScheduleData.setData(JSONObject) to configure the parser:
schoolNumber (String, required if baseurl not specified)baseurl (String, required if schoolNumber not specified)classes (Array of Strings, required)schoolNumber, you have to use a
UserPasswordAuthenticationData
because all schedules on Stundenplan24.de seem to be protected by a login. Schedules on custom URLs may use
different kinds of login, in that case the parameters from LoginHandler are supported.datacolorProvider, cookieProvider, cookieStore, credential, debuggingDataHandler, encodingDetector, executor, PARAM_CLASS_REGEX, sardine, scheduleData| Constructor and Description |
|---|
IndiwareStundenplan24Parser(SubstitutionScheduleData scheduleData,
CookieProvider cookieProvider) |
| Modifier and Type | Method and Description |
|---|---|
SubstitutionSchedule |
getSubstitutionSchedule()
Downloads and parses the substitution schedule
|
getAllClasses, getAllTeacherscontains, getClassesFromJson, getCredential, getInstance, getLastChange, getWebdavClient, httpGet, httpGet, httpGet, httpPost, httpPost, httpPost, httpPost, isPersonal, recognizeType, setCredential, setDebuggingDataHandlerpublic IndiwareStundenplan24Parser(SubstitutionScheduleData scheduleData, CookieProvider cookieProvider)
public SubstitutionSchedule getSubstitutionSchedule() throws java.io.IOException, org.json.JSONException, CredentialInvalidException
SubstitutionScheduleParsergetSubstitutionSchedule in interface SubstitutionScheduleParsergetSubstitutionSchedule in class IndiwareParserSubstitutionSchedulejava.io.IOException - Connection or parsing errororg.json.JSONException - Error with the JSON configurationCredentialInvalidException - the supplied credential (BaseParser.setCredential(Credential) is
not correct