public class CoreProvider extends Provider
Provider
subclass explicitly coded into
YAAC; all others are loaded from JAR files as defined by the Provider
class's
documentation.Modifier and Type | Class and Description |
---|---|
static class |
CoreProvider.TransmitGeneratedObjectReport
Helper class for transmitting a locally generated Object or Item Report packet
and keeping it registered in the local object list.
|
Provider.PortEntry
Modifier and Type | Field and Description |
---|---|
static AbstractMenuAction |
EXIT_ACTION
This Action performs the operations needed to cleanly shut down YAAC and free up the
system resources it is using.
|
static java.lang.String |
MENU_VIEW_DRAW_TOOLBAR
The menu tag name for View->View Draw Toolbar, so that other closers of the toolbar can inform the
menu item to clear its checkbox.
|
static java.lang.String[] |
PRE_LOCALIZED_FILE_LOAD_MENU
This menu tag hierarchy covers the File->Load menu.
|
static java.lang.String[] |
PRE_LOCALIZED_FILE_SAVE_MENU
This menu tag hierarchy covers the File->Save menu.
|
static java.lang.String[] |
PRE_LOCALIZED_LOCATE_MENU
This menu tag hierarchy covers the Locate menu.
|
static java.lang.String[] |
PRE_LOCALIZED_VIEW_LAYERS_MENU
This menu tag hierarchy covers the View->Layers sub-menu.
|
static java.lang.String[] |
PRE_LOCALIZED_VIEW_MENU
This menu tag hierarchy covers the View menu.
|
static java.lang.String[] |
PRE_LOCALIZED_VIEW_OBJECTS_MENU
This menu tag hierarchy covers the View->Objects sub-menu.
|
static java.lang.String[] |
PRE_LOCALIZED_VIEW_PACKETS_MENU
This menu tag hierarchy covers the View->Packets sub-menu.
|
static java.lang.String[] |
PRE_LOCALIZED_VIEW_STATIONS_MENU
This menu tag hierarchy covers the View->Stations sub-menu.
|
static java.lang.String[] |
TOP_MENU
The pre-localization hierarchy of sub-menu names for a menu at the top level, made available
for use by plugins creating new menus.
|
PLUGIN_NEEDS_NEWER_YAAC_PROTOCOL, PLUGIN_UNKNOWN_INCOMPATIBILITY, PROVIDER_API_VERSION
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAboutAttributions()
Specify attributions, credits/acknowledgements, and license references to be displayed in the
About dialog box.
|
java.util.Map<java.lang.String,java.lang.String> |
getConfigurationPanels()
Get any panels needed by this Provider to provision or configure the services
offered by the Provider.
|
HttpServer |
getCoreWebServer()
Get the web server instance associated with the core services of YAAC.
|
Filter[] |
getFilters()
Get any filters to add to the main CumulativeBooleanAndFilter in the main class of YAAC.
|
javax.help.HelpSet |
getHelpSet()
Provide the base HelpSet for complete
online documentation.
|
java.lang.String |
getImageIconPath()
Return an icon image associated with this Provider.
|
static CoreProvider |
getInstance()
Get the core instance of Provider for YAAC.
|
static java.util.ArrayList<java.lang.String> |
getListOfServerTileDirs()
Get the list of older tile directories available on the server that
use a
ChangeSet.YAAC_STRUCTURE_VERSION acceptable to this
version of YAAC. |
static ChangeSet |
getLocalOSMChangeSet(boolean announceErrors)
Get the local OSM ChangeSet record for the versions of the OpenStreetMap data stored
locally.
|
AbstractMenuAction[] |
getMenuItems()
Get Actions to define new menu items from this Provider.
|
Provider.PortEntry[] |
getPortConnectorTypes()
Get PortConnector drivers provided by this Provider.
|
static ChangeSet |
getServerOSMChangeSet(java.lang.String webTileDir)
Query the author's website for the currently available changeset of the pre-imported OpenStreetMap tile files.
|
java.lang.String |
getUserAgent()
Return a standard string for identifying this installation of YAAC to a web server in the
User-Agent HTTP header property.
|
boolean |
hasRXTX()
Report whether this plugin was able to load the (now obsolete) RXTX native library for accessing serial ports.
|
static boolean |
isIPv4Forced()
Indicate if YAAC is configured to support Internet networks supporting IPv6.
|
boolean |
isNonencryptedHTTPForced()
Indicate if YAAC is configured to support Internet networks prohibiting encrypted traffic (such as the
Amateur Radio HSMM [High-Speed MultiMedia] networks).
|
static void |
main(java.lang.String[] args)
Method to allow printing out version of YAAC (alternative to
YAAC class's -version
command-line option). |
void |
runInitializersAfter()
Execute this function after calling all of the other functions of the
CoreProvider.
|
static void |
setIPv4Forced(boolean onlyIPv4)
Specify if YAAC is configured to support Internet networks supporting IPv6.
|
void |
setNonencryptedHTTPForced(boolean onlyHTTP)
Specify if YAAC is configured to support Internet networks prohibiting encrypted traffic.
|
buildNewerYaacNeededMsg, consumeXMLPreferenceData, findHelpSet, getAuthor, getInfo, getInitFailureReason, getName, getVersion, runInitializersBefore
public static final java.lang.String[] TOP_MENU
public static final AbstractMenuAction EXIT_ACTION
public static final java.lang.String[] PRE_LOCALIZED_FILE_LOAD_MENU
public static final java.lang.String[] PRE_LOCALIZED_FILE_SAVE_MENU
public static final java.lang.String[] PRE_LOCALIZED_VIEW_MENU
public static final java.lang.String[] PRE_LOCALIZED_VIEW_PACKETS_MENU
public static final java.lang.String[] PRE_LOCALIZED_VIEW_STATIONS_MENU
public static final java.lang.String[] PRE_LOCALIZED_VIEW_OBJECTS_MENU
public static final java.lang.String[] PRE_LOCALIZED_VIEW_LAYERS_MENU
public static final java.lang.String[] PRE_LOCALIZED_LOCATE_MENU
public static final java.lang.String MENU_VIEW_DRAW_TOOLBAR
public static CoreProvider getInstance()
public Provider.PortEntry[] getPortConnectorTypes()
getPortConnectorTypes
in class Provider
public java.util.Map<java.lang.String,java.lang.String> getConfigurationPanels()
getConfigurationPanels
in class Provider
Localizer.getMsg(String)
,
Localizer.getMsg(String, String)
,
Localizer.getMsgBundle()
,
Localizer.getMsgBundle(String)
public Filter[] getFilters()
getFilters
in class Provider
public static ChangeSet getLocalOSMChangeSet(boolean announceErrors)
announceErrors
- boolean true if this method should raise GUI displays to announce fatal errorspublic static java.util.ArrayList<java.lang.String> getListOfServerTileDirs()
ChangeSet.YAAC_STRUCTURE_VERSION
acceptable to this
version of YAAC.public static ChangeSet getServerOSMChangeSet(java.lang.String webTileDir)
webTileDir
- String of subdirectory on webserver where tile files are located, or null to
use default of "tiledir"public AbstractMenuAction[] getMenuItems()
getMenuItems
in class Provider
AbstractMenuAction
,
AbstractPopupMenuAction
public java.lang.String[] getAboutAttributions()
getAboutAttributions
in class Provider
public javax.help.HelpSet getHelpSet()
getHelpSet
in class Provider
public java.lang.String getImageIconPath()
getImageIconPath
in class Provider
public void runInitializersAfter()
runInitializersAfter
in class Provider
APRSStack.addAprsMessageListener(org.ka2ddo.aprs.AprsMessageListener)
,
AX25Stack.addAX25FrameListener(org.ka2ddo.ax25.AX25FrameListener)
,
MsgEventDispatcher.addMsgEventListener(org.ka2ddo.yaac.ax25.MsgEventListener)
,
StationTracker.addTrackerListener(org.ka2ddo.yaac.ax25.TrackerListener)
public HttpServer getCoreWebServer()
public boolean hasRXTX()
getPortConnectorTypes()
public java.lang.String getUserAgent()
public boolean isNonencryptedHTTPForced()
public void setNonencryptedHTTPForced(boolean onlyHTTP)
onlyHTTP
- boolean true if only unencrypted HTTP may be used for web requestspublic static boolean isIPv4Forced()
public static void setIPv4Forced(boolean onlyIPv4)
onlyIPv4
- boolean true if only IPv4 addresses will be used for socket connectionspublic static void main(java.lang.String[] args)
YAAC
class's -version
command-line option).args
- ignored