public class KexFaxTexter extends AbstraktKexVersandKomponente implements de.bsvrz.dav.daf.main.ClientReceiverInterface
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected de.bsvrz.dav.daf.main.DataDescription |
ddPARAM
Datenbeschreibung fuer die Parametrierung.
|
private byte[] |
errorPuffer
Puffer fuer Fehlermeldungen.
|
private static String |
GHOSTSCRIPT_FONTS
Ghostscript Fonts.
|
private static String |
GHOSTSCRIPT_FORMAT
Ghostscript Formatter.
|
private static String |
GHOSTSCRIPT_LINUX32
Ghostscript-Executable Linux 32-Bit.
|
private static String |
GHOSTSCRIPT_LINUX64
Ghostscript-Executable Linux 64-Bit.
|
private static String |
GHOSTSCRIPT_WINDOWS_DLL
Ghostscript Windows DLL.
|
private static String |
GHOSTSCRIPT_WINDOWS_EXE
Ghostscript-Executable Windows.
|
private String |
gsLPPATH
Default Pfade zum GSLP Script.
|
private String |
gsPATH
Default Pfade zum Ghostscript.
|
protected KexFaxSender |
sender
SenderKlasse.
|
protected String |
stdEmpfaenger
StandardEmpfaenger.
|
protected String |
stdFaxKennung
StandardFaxKennung des Senders.
|
protected boolean |
stdHochaufloesend
Ob die Mitteilungen Hochaufloesend versendet werden.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
KexFaxTexter()
Konstruktor.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
extract(String resource,
File file)
Extrahiert eine Ressource aus dem Jar ins temporaere File.
|
protected File |
generiereFax(String absender,
boolean hochaufloesend,
FaxVersandAuftrag auftrag)
Generiert eine Fax Mitteilung ins Temp File.
|
void |
init(de.bsvrz.dav.daf.main.ClientDavInterface connection,
de.bsvrz.dav.daf.main.config.SystemObject modul,
int maxWarteschlangeGroesse)
Initialisierung des Versandmoduls.
|
protected VersandStatus |
sendeAuftrag(IVersandAuftrag auftrag,
int maxVersuche,
long pause)
Abstrakte Versandmethode.
|
void |
update(de.bsvrz.dav.daf.main.ResultData[] results) |
bearbeite, getDav, getGroesse, getLogger, getMaxGroesse, parametriereGenerell, run, sollBeenden, terminate
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private static final String GHOSTSCRIPT_WINDOWS_EXE
private static final String GHOSTSCRIPT_WINDOWS_DLL
private static final String GHOSTSCRIPT_LINUX64
private static final String GHOSTSCRIPT_LINUX32
private static final String GHOSTSCRIPT_FORMAT
private static final String GHOSTSCRIPT_FONTS
private String gsPATH
private String gsLPPATH
protected de.bsvrz.dav.daf.main.DataDescription ddPARAM
protected String stdFaxKennung
protected String stdEmpfaenger
protected boolean stdHochaufloesend
protected KexFaxSender sender
private final byte[] errorPuffer
void extract(String resource, File file) throws IOException
resource
- Resource Namefile
- temp FileIOException
- Schreibfehlerprotected File generiereFax(String absender, boolean hochaufloesend, FaxVersandAuftrag auftrag) throws IOException, InterruptedException, Exception
absender
- Absenderhochaufloesend
- true, wenn hochaufloesendauftrag
- VersandauftragIOException
- SchreibfehlerInterruptedException
- Generierung wurde unterbrochenException
- Ghostscript Prozess wurde nicht korrekt beendetpublic void init(de.bsvrz.dav.daf.main.ClientDavInterface connection, de.bsvrz.dav.daf.main.config.SystemObject modul, int maxWarteschlangeGroesse)
AbstraktKexVersandKomponente
init
in class AbstraktKexVersandKomponente
connection
- Verbindung zum DAVmodul
- VersandmodulmaxWarteschlangeGroesse
- max. Grösse der Warteschlangeprotected VersandStatus sendeAuftrag(IVersandAuftrag auftrag, int maxVersuche, long pause) throws InterruptedException
AbstraktKexVersandKomponente
sendeAuftrag
in class AbstraktKexVersandKomponente
auftrag
- Der AuftragmaxVersuche
- Anzahl der Versuchepause
- Pause zwischen den Versandversuchen in MilisekundenInterruptedException
- Wenn der Versand unterbrochen wurdepublic void update(de.bsvrz.dav.daf.main.ResultData[] results)
update
in interface de.bsvrz.dav.daf.main.ClientReceiverInterface
Copyright © 2017 BitCtrl Systems GmbH. All rights reserved.