Package de.frankmuenster.mahoe.web
Class AbstractWebSite<C,I extends WebAccountInformation,M extends AbstractBankMessages<C,I>>
java.lang.Object
de.frankmuenster.mahoe.web.AbstractWebSite<C,I,M>
- Type Parameters:
C
- the client class, HTMLUnit or SelemiumI
-M
-
- All Implemented Interfaces:
WebSite<I>
- Direct Known Subclasses:
AbstractSeleniumWebSite
,AktienWebSite
,BshWebSite
public abstract class AbstractWebSite<C,I extends WebAccountInformation,M extends AbstractBankMessages<C,I>>
extends Object
implements WebSite<I>
Abstrakte WebSite Klasse.
- Author:
- Frank Münster
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractWebSite
(de.willuhn.jameica.hbci.rmi.Konto konto) Unser Konstruktor. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Class<T>
getGenericClassParameter
(Class<?> parameterizedSubClass, Class<?> genericSuperClass, int pos) Searches and returns the class of a generic Type with the given position in the given superclass.int
getMessages
(I accountInfo) Lädt neue Bank-Nachrichten.protected abstract Calendar
Das Datum, ab dem Umsätze und Banknachrichten abgerufen werden sollen, falls noch keine Umsätze vorliegen.protected abstract C
Erstellt den bankspezifischen WebClient.protected final void
setAccountBasicInfo
(de.willuhn.jameica.hbci.rmi.Konto konto) Creates a newWebAccountInformation
object for the bank from the given account.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.frankmuenster.mahoe.web.WebSite
createSepaTransfer, getAccountInformation, getAccountSheets, getBookedTransactions, getPreBookedTransactions, isStillLoggedIn, login, logoff
-
Field Details
-
TABLE_TAG
HTML Tag einer Tabelle- See Also:
-
NON_BREAK_SPACE
Non breaking space unicode- See Also:
-
webClient
Unser WebClient -
accountInfo
Die Accountinfos
-
-
Constructor Details
-
AbstractWebSite
Unser Konstruktor. Nur zugänglich für Sub-Klassen.- Parameters:
konto
- das Konto- Throws:
WebSiteException
-
-
Method Details
-
getGenericClassParameter
public static <T> Class<T> getGenericClassParameter(Class<?> parameterizedSubClass, Class<?> genericSuperClass, int pos) Searches and returns the class of a generic Type with the given position in the given superclass. Takes into account the complete hierarchy.- Parameters:
parameterizedSubClass
-genericSuperClass
-pos
-- Returns:
- the class
-
getMessages
Lädt neue Bank-Nachrichten.- Specified by:
getMessages
in interfaceWebSite<C>
- Parameters:
accountInfo
-- Returns:
- die Anzahl an gespeicherten Nachrichten
- Throws:
WebSiteException
de.willuhn.util.ApplicationException
-
getStartdate
Das Datum, ab dem Umsätze und Banknachrichten abgerufen werden sollen, falls noch keine Umsätze vorliegen.- Returns:
- das StartDatum
-
getWebClient
Erstellt den bankspezifischen WebClient.- Returns:
- den WebClient
- Throws:
WebSiteException
-
setAccountBasicInfo
protected final void setAccountBasicInfo(de.willuhn.jameica.hbci.rmi.Konto konto) throws WebSiteException Creates a newWebAccountInformation
object for the bank from the given account. Then is sets the account and the last Transaction date.- Parameters:
konto
- the account to take the information from.- Throws:
WebSiteException
-