|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ka2ddo.ax25.Connector
org.ka2ddo.yaac.io.PortConnector
org.ka2ddo.yaac.io.TransmittingPortConnector
org.ka2ddo.yaac.io.TNCConnector
org.ka2ddo.yaac.io.AprsIsConnector
public class AprsIsConnector
This class defines a potentially bidirectional connection to an APRS-IS server. New functionality includes support for SOCKS5 proxy server relay connections (RFC1928), supporting username/password authentication (RFC1929). TODO: support GSSAPI authentication (RFC1961)
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.ka2ddo.ax25.Connector |
---|
Connector.PortStats |
Field Summary | |
---|---|
static java.lang.String |
CONFIG_GUI
Specify the fully-qualified platform-wildcarded class name for the editor for AprsIsConnector. |
static java.lang.String |
TYPE_NAME
Specify the PortConnector type name for AprsIsConnector. |
Fields inherited from class org.ka2ddo.yaac.io.PortConnector |
---|
currentCfg, portConfig |
Fields inherited from class org.ka2ddo.ax25.Connector |
---|
CAP_FULL_DUPLEX, CAP_GPS_DATA, CAP_HF, CAP_IGATE, CAP_OPENTRAC, CAP_RCV_PACKET_DATA, CAP_RF, CAP_WAYPOINT_SENDER, CAP_WEATHER, CAP_XMT_PACKET_DATA, stats |
Constructor Summary | |
---|---|
AprsIsConnector()
Create an uninitialized instance of AprsIsConnector. |
Method Summary | |
---|---|
void |
close()
Shut down this PortConnector. |
void |
configure(PortConfig config)
Update the configuration of the connector to match the updated setup. |
void |
failureGuiCreated(PortFailureReporterIfc failureGui)
Specify the lazily-created failure reporting GUI object for the reported failure. |
void |
failureGuiDismissed()
The GUI object has been dismissed by the user and should not be used any more by the requesting I/O code. |
int |
getBitRate()
Get the bit transmission rate on this port. |
int |
getCapabilities()
Specify what capabilities a port of this type has. |
boolean |
isOpen()
Reports whether this PortConnector has an open connection to its port. |
void |
run()
Private internal method used to read the incoming APRS messages from the socket connection to the selected APRS-IS server. |
void |
sendFrame(AX25Frame frame)
Transmit a AX.25 frame to the connected APRS-IS server. |
void |
setAppVersion(java.lang.String name,
java.lang.String version)
Sets the name and version of the containing application. |
java.lang.String |
toString()
Returns a string representation of the AprsIsConnector object. |
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e)
Method invoked when the given thread terminates due to the given uncaught exception. |
Methods inherited from class org.ka2ddo.yaac.io.TNCConnector |
---|
convertTNC2FormatToAX25Frame, getCallsign, getPortAddress, setPortAddress |
Methods inherited from class org.ka2ddo.yaac.io.PortConnector |
---|
addFrameListener, addPortEventListener, createPort, fireConsumeFrame, fireConsumeFrame, fireFailed, fireReceiving, fireTransmitting, getPortConnectorClass, portConnectorClasses, portTypeNames, registerPortConnectorType, removeFrameListener, removePortEventListener, setPortConfig |
Methods inherited from class org.ka2ddo.ax25.Connector |
---|
finalize, getStats, hasCapability |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TYPE_NAME
public static final java.lang.String CONFIG_GUI
Constructor Detail |
---|
public AprsIsConnector()
Method Detail |
---|
public void setAppVersion(java.lang.String name, java.lang.String version)
setAppVersion
in interface NeedsAppVersionInfoIfc
name
- String name of the application (cannot contain whitespace)version
- String version of the application (cannot contain whitespace)public void configure(PortConfig config) throws java.io.IOException, java.lang.IllegalArgumentException
configure
in class PortConnector
config
- PortConfig defining new port settings
java.io.IOException
- if interface changes could not be applied
java.lang.IllegalArgumentException
- if type information is invalid for
changing the settings of this PortConnectorpublic boolean isOpen()
isOpen
in class Connector
public final void run()
run
in interface java.lang.Runnable
public int getBitRate()
getBitRate
in class TNCConnector
public void failureGuiCreated(PortFailureReporterIfc failureGui)
failureGuiCreated
in interface PortFailureReportListener
failureGui
- PortFailureReporterIfc object for the GUIGuiIfc.showIOFailureDialog(org.ka2ddo.yaac.io.PortConfig, String, org.ka2ddo.yaac.io.PortFailureReportListener)
public void failureGuiDismissed()
failureGuiDismissed
in interface PortFailureReportListener
public final void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
Any exception thrown by this method will be ignored by the Java Virtual Machine.
uncaughtException
in interface java.lang.Thread.UncaughtExceptionHandler
t
- the threade
- the exceptionpublic void sendFrame(AX25Frame frame)
sendFrame
in class TransmittingPortConnector
frame
- AX25Frame to transmitpublic void close()
close
in class Connector
public java.lang.String toString()
toString
in class java.lang.Object
public int getCapabilities()
getCapabilities
in class Connector
Connector.CAP_RCV_PACKET_DATA
,
Connector.CAP_XMT_PACKET_DATA
,
Connector.CAP_FULL_DUPLEX
,
Connector.CAP_GPS_DATA
,
Connector.CAP_IGATE
,
Connector.CAP_OPENTRAC
,
Connector.CAP_RF
,
Connector.CAP_WAYPOINT_SENDER
,
Connector.CAP_WEATHER
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |