public class LeisenfelsUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STATUS_REPORT_DESCRIPTOR_NAME
The default status report descriptor file name.
|
static java.lang.String |
STATUS_REPORT_ENCODING
Globally used encoding/charset.
|
static java.lang.String |
STATUS_REPORT_FILE_NAME
The default status report archive file name.
|
static java.lang.String |
STATUS_REPORT_SERVLET_PASSWORD
The password of the submit servlet.
|
static java.lang.String |
STATUS_REPORT_SERVLET_URL
The URL of the submit servlet, redirecting is not possible for POST request!
|
static java.lang.String |
STATUS_REPORT_SERVLET_USERNAME
The username of the submit servlet.
|
Constructor and Description |
---|
LeisenfelsUtils()
Constructor method for i18n purposes only.
|
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
checkResponse(byte[] data)
Extracts the result of the transmission.
|
static void |
main(java.lang.String[] args)
Testing functionality.
|
static void |
processSupportData(AbstractDataSource[] messagedata,
FileDataSource[] attacheddata,
AbstractDataSource[] licensedata,
TextDataSource[] logfiledata,
AbstractDataSource[] statusinfodata,
ImageDataSource[] screenshotdata,
java.io.File tempdir,
DeployProps deployprops,
boolean storeonly,
PassphraseProvider aesprovider,
java.awt.Component parent,
ApplicationModel model,
StatusBar statusbar,
DockingManager manager,
java.util.Properties licenseprops)
Create a single encrypted JAR archive from the given support data portions and sends an e-mail.
|
protected static boolean |
saveSupportData(java.io.File aestempfile,
java.awt.Component parent,
ApplicationModel model,
StatusBar statusbar,
java.lang.String name,
java.lang.String dialogtitle)
Presents a file chooser dialog and writes the data to the file.
|
protected static void |
sendSupportData(java.io.File aestempfile,
java.awt.Component parent,
ApplicationModel model,
java.lang.String filename,
StatusBar statusbar,
DockingManager manager)
Transmits the encrypted support data to the Admin upload servlet.
|
static void |
showCalculateVolumeDiscountDialog(java.awt.Component parent)
Checks whether the given class implements the given interface (convenience).
|
static void |
showSupportData(PassphraseProvider aesprovider,
DeployProps deployprops,
java.awt.Component parent,
ApplicationModel model,
DockingManager manager,
SupportDataDialog dialog)
Decrypt given JAR/ZIP file and load contents to be displayed by the data viewer.
|
protected static void |
writeZIPEntry(java.util.zip.ZipOutputStream zostream,
AbstractDataSource datasource,
java.lang.String path,
StatusReport report,
java.lang.String category)
Writes the given data sources as ZIP file entry.
|
public static final java.lang.String STATUS_REPORT_SERVLET_URL
public static final java.lang.String STATUS_REPORT_SERVLET_USERNAME
public static final java.lang.String STATUS_REPORT_SERVLET_PASSWORD
public static final java.lang.String STATUS_REPORT_ENCODING
public static final java.lang.String STATUS_REPORT_FILE_NAME
public static final java.lang.String STATUS_REPORT_DESCRIPTOR_NAME
public LeisenfelsUtils() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic static void showCalculateVolumeDiscountDialog(java.awt.Component parent)
parent
- The parental componentpublic static void processSupportData(AbstractDataSource[] messagedata, FileDataSource[] attacheddata, AbstractDataSource[] licensedata, TextDataSource[] logfiledata, AbstractDataSource[] statusinfodata, ImageDataSource[] screenshotdata, java.io.File tempdir, DeployProps deployprops, boolean storeonly, PassphraseProvider aesprovider, java.awt.Component parent, ApplicationModel model, StatusBar statusbar, DockingManager manager, java.util.Properties licenseprops)
messagedata
- Messagesattacheddata
- Attachmentslicensedata
- License datalogfiledata
- Log filesstatusinfodata
- Status infoscreenshotdata
- Screen shotstempdir
- Application temporary directorydeployprops
- The application propertiesstoreonly
- Store as local file (no submit)?aesprovider
- The AES passphrase providerparent
- The GUI componentmodel
- The application modelstatusbar
- The message componentmanager
- The docking managerlicenseprops
- The licensing infoprotected static void writeZIPEntry(java.util.zip.ZipOutputStream zostream, AbstractDataSource datasource, java.lang.String path, StatusReport report, java.lang.String category) throws java.io.IOException
zostream
- The ZIP streamdatasource
- The datapath
- The entry pathreport
- The XML descriptorcategory
- The categoryjava.io.IOException
- If an I/O error occursprotected static boolean saveSupportData(java.io.File aestempfile, java.awt.Component parent, ApplicationModel model, StatusBar statusbar, java.lang.String name, java.lang.String dialogtitle)
aestempfile
- The data sourcesparent
- The parent componentmodel
- The configuration, maybe null
statusbar
- The message componentname
- The default file namedialogtitle
- The titleprotected static void sendSupportData(java.io.File aestempfile, java.awt.Component parent, ApplicationModel model, java.lang.String filename, StatusBar statusbar, DockingManager manager)
aestempfile
- The data sourcesparent
- The parent componentmodel
- The configuration, maybe null
filename
- The file namestatusbar
- The message componentmanager
- The docking managerprotected static java.lang.String checkResponse(byte[] data)
data
- The response datanull
)public static void showSupportData(PassphraseProvider aesprovider, DeployProps deployprops, java.awt.Component parent, ApplicationModel model, DockingManager manager, SupportDataDialog dialog)
aesprovider
- The AES passphrase providerdeployprops
- The application propertiesparent
- The GUI componentmodel
- The application modelmanager
- The docking managerdialog
- The preconfigured status report dialogpublic static void main(java.lang.String[] args)
args
- The parametersCopyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.