public abstract class UntisCommonParser extends BaseParser
colorProvider, cookieProvider, cookieStore, credential, executor, scheduleData| Constructor and Description |
|---|
UntisCommonParser(SubstitutionScheduleData scheduleData,
CookieProvider cookieProvider) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getAllClasses()
Gibt eine Liste aller verfügbaren Klassen zurück.
|
protected void |
parseDay(SubstitutionScheduleDay day,
org.jsoup.nodes.Element next,
SubstitutionSchedule v) |
protected void |
parseMessages(org.jsoup.nodes.Element table,
SubstitutionScheduleDay day)
Parst eine "Nachrichten zum Tag"-Tabelle aus Untis-Vertretungsplänen
|
protected SubstitutionScheduleDay |
parseMonitorVertretungsplanTag(org.jsoup.nodes.Element doc,
org.json.JSONObject data) |
protected void |
parseVertretungsplanTable(org.jsoup.nodes.Element table,
org.json.JSONObject data,
SubstitutionScheduleDay day)
Parst eine Vertretungstabelle eines Untis-Vertretungsplans
|
contains, getAllTeachers, getClassesFromJson, getClassName, getCredential, getInstance, getSubstitutionSchedule, httpGet, httpGet, httpPost, httpPost, httpPost, httpPost, recognizeType, setCredentialpublic UntisCommonParser(SubstitutionScheduleData scheduleData, CookieProvider cookieProvider)
protected void parseVertretungsplanTable(org.jsoup.nodes.Element table,
org.json.JSONObject data,
SubstitutionScheduleDay day)
throws org.json.JSONException
table - das table-Element des HTML-Dokuments, das geparst
werden solldata - Daten von der Schule (aus Schule.getData())day - der SubstitutionScheduleDay in dem die Vertretungen
gespeichert werden sollenorg.json.JSONExceptionprotected void parseMessages(org.jsoup.nodes.Element table,
SubstitutionScheduleDay day)
table - das table-Element des HTML-Dokuments, das geparst
werden sollday - der SubstitutionScheduleDay in dem die Nachrichtenprotected SubstitutionScheduleDay parseMonitorVertretungsplanTag(org.jsoup.nodes.Element doc, org.json.JSONObject data) throws org.json.JSONException
org.json.JSONExceptionpublic java.util.List<java.lang.String> getAllClasses()
throws java.io.IOException,
org.json.JSONException
BaseParsergetAllClasses in class BaseParserjava.io.IOExceptionorg.json.JSONExceptionprotected void parseDay(SubstitutionScheduleDay day, org.jsoup.nodes.Element next, SubstitutionSchedule v) throws org.json.JSONException
org.json.JSONException