public class UntisSubstitutionParser extends UntisCommonParser
Example: JKG Stuttgart
This parser can be accessed using "untis-substitution" for
SubstitutionScheduleData.setApi(String).
SubstitutionScheduleData.setData(JSONObject) to configure the parser:
baseurl (String, required if urls not specified){date(yyyy-MM-dd)} in the URL. This placeholder will then
be replaced with the dates of the next 7 days.urls (Array of strings, required if baseurl not specified){date(yyyy-MM-dd)} in the URL. This placeholder will then
be replaced with the dates of the next 7 days.encoding (String, required)columns (Array of Strings, required)UntisCommonParser, but additionally supports "columns" as a column type.classes (Array of Strings, required)website (String, recommended)LoginHandler for login-protected schedules
and those specified in UntisCommonParser.colorProvider, cookieProvider, cookieStore, credential, debuggingDataHandler, encodingDetector, executor, PARAM_CLASS_REGEX, sardine, scheduleData| Constructor and Description |
|---|
UntisSubstitutionParser(SubstitutionScheduleData scheduleData,
CookieProvider cookieProvider) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getAllTeachers()
Get a list of all available teachers.
|
SubstitutionSchedule |
getSubstitutionSchedule()
Downloads and parses the substitution schedule
|
getAllClasses, parseSubstitutionTable, parseSubstitutionTablecontains, getClassesFromJson, getCredential, getInstance, getLastChange, getWebdavClient, httpGet, httpGet, httpGet, httpPost, httpPost, httpPost, httpPost, isPersonal, recognizeType, setCredential, setDebuggingDataHandler, setLocalSourcepublic UntisSubstitutionParser(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> getAllTeachers()
BaseParsernull.getAllTeachers in class BaseParser