Package de.frankmuenster.mahoe.web
Class AbstractWebSite<C,I extends WebAccountInformation,M extends AbstractBankMessages<C>>
- 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>> extends java.lang.Object implements WebSite<I>
Abstrakte WebSite Klasse.- Author:
- Frank Münster
-
-
Field Summary
Fields Modifier and Type Field Description protected I
accountInfo
Die Accountinfosstatic java.lang.String
NON_BREAK_SPACE
Non breaking space unicodeprotected static java.lang.String
TABLE_TAG
HTML Tag einer Tabelleprotected C
webClient
Unser WebClient
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractWebSite(de.willuhn.jameica.hbci.rmi.Konto konto)
Unser Konstruktor.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static <T> java.lang.Class<T>
getGenericClassParameter(java.lang.Class<?> parameterizedSubClass, java.lang.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 java.util.Calendar
getStartdate()
Das Datum, ab dem Umsätze und Banknachrichten abgerufen werden sollen, falls noch keine Umsätze vorliegen.protected abstract C
getWebClient()
Erstellt den bankspezifischen WebClient.protected 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 Detail
-
TABLE_TAG
protected static final java.lang.String TABLE_TAG
HTML Tag einer Tabelle- See Also:
- Constant Field Values
-
NON_BREAK_SPACE
public static final java.lang.String NON_BREAK_SPACE
Non breaking space unicode- See Also:
- Constant Field Values
-
webClient
protected C webClient
Unser WebClient
-
accountInfo
protected I extends WebAccountInformation accountInfo
Die Accountinfos
-
-
Constructor Detail
-
AbstractWebSite
protected AbstractWebSite(de.willuhn.jameica.hbci.rmi.Konto konto) throws WebSiteException
Unser Konstruktor. Nur zugänglich für Sub-Klassen.- Parameters:
konto
- das Konto- Throws:
WebSiteException
-
-
Method Detail
-
getGenericClassParameter
public static <T> java.lang.Class<T> getGenericClassParameter(java.lang.Class<?> parameterizedSubClass, java.lang.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
public int getMessages(I accountInfo) throws WebSiteException, de.willuhn.util.ApplicationException
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
protected abstract java.util.Calendar getStartdate()
Das Datum, ab dem Umsätze und Banknachrichten abgerufen werden sollen, falls noch keine Umsätze vorliegen.- Returns:
- das StartDatum
-
getWebClient
protected abstract C getWebClient()
Erstellt den bankspezifischen WebClient.- Returns:
- den WebClient
-
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
-
-