public class DSBLightParser extends UntisCommonParser
It seems that the "light" version of DSB is discontinued, many schools are currently switching to the newer
DSBmobile (which can be parsed with DSBMobileParser.
This parser can be accessed using "dsblight" for SubstitutionScheduleData.setApi(String).
SubstitutionScheduleData.setData(JSONObject) to configure the parser:
id (String, required)Player.aspx?ID=...)classes (Array of Strings, required)encoding (String, required)login (Boolean, optional, Default: false)baseurl (String, optional, Default: https://light.dsbcontrol
.de/DSBlightWebsite/Homepage/)iframeIndex (Integer, optional)UntisCommonParser and LoginHandler
(the latter as an alternative to the Boolean login parameter defined here).
For password protected schedules, you have to use a
UserPasswordAuthenticationData.colorProvider, cookieProvider, cookieStore, credential, debuggingDataHandler, encodingDetector, executor, PARAM_CLASS_REGEX, scheduleData| Constructor and Description |
|---|
DSBLightParser(SubstitutionScheduleData scheduleData,
CookieProvider cookieProvider) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAllClasses()
Get a list of all available classes.
|
List<String> |
getAllTeachers()
Get a list of all available teachers.
|
SubstitutionSchedule |
getSubstitutionSchedule()
Downloads and parses the substitution schedule
|
parseSubstitutionTablecontains, getClassesFromJson, getCredential, getInstance, getLastChange, httpGet, httpGet, httpPost, httpPost, httpPost, httpPost, isPersonal, recognizeType, setCredential, setDebuggingDataHandlerpublic DSBLightParser(SubstitutionScheduleData scheduleData, CookieProvider cookieProvider)
public SubstitutionSchedule getSubstitutionSchedule() throws IOException, org.json.JSONException, CredentialInvalidException
SubstitutionScheduleParsergetSubstitutionSchedule in interface SubstitutionScheduleParsergetSubstitutionSchedule in class BaseParserSubstitutionScheduleIOException - Connection or parsing errororg.json.JSONException - Error with the JSON configurationCredentialInvalidException - the supplied credential (BaseParser.setCredential(Credential) is
not correctpublic List<String> getAllClasses() throws IOException, org.json.JSONException
BaseParsergetAllClasses in class UntisCommonParserIOException - Connection or parsing errororg.json.JSONException - Error with the JSON configurationpublic List<String> getAllTeachers()
BaseParsernull.getAllTeachers in class BaseParser