jap.forward
Class JAPRoutingSettings.TransportMode

java.lang.Object
  extended by jap.forward.JAPRoutingSettings.TransportMode
Enclosing class:
JAPRoutingSettings

public static final class JAPRoutingSettings.TransportMode
extends java.lang.Object

This Class holds all supported Ways to establish an forwarding Connection.

It's also acts as an registry, for mapping the different transport Modes to the corresponding Transportidentifier.


Field Summary
static JAPRoutingSettings.TransportMode LOCAL
          Constant for Forwarding to ourself.
private  java.lang.String m_identifier
          The Identifier for an Transportmode.
static JAPRoutingSettings.TransportMode SKYPE
          Constant for Transport over Skype
static JAPRoutingSettings.TransportMode TCPIP
          Constant for direkt Transport over TCP/IP
static JAPRoutingSettings.TransportMode UNKNOWN
          Constant for an Unknown Transportmode.
 
Constructor Summary
private JAPRoutingSettings.TransportMode(java.lang.String a_identifier)
          New TransportMode for given identifier
 
Method Summary
static JAPRoutingSettings.TransportMode getByIdentifier(java.lang.String a_identifier)
          Trys to map an given Identifier to an TransportMode.
 java.lang.String getIdentifier()
          Gets the Identifier of an TransportMode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SKYPE

public static final JAPRoutingSettings.TransportMode SKYPE
Constant for Transport over Skype


TCPIP

public static final JAPRoutingSettings.TransportMode TCPIP
Constant for direkt Transport over TCP/IP


LOCAL

public static final JAPRoutingSettings.TransportMode LOCAL
Constant for Forwarding to ourself. Client and Server is the same JAP Instance


UNKNOWN

public static final JAPRoutingSettings.TransportMode UNKNOWN
Constant for an Unknown Transportmode. (Fallback)


m_identifier

private java.lang.String m_identifier
The Identifier for an Transportmode.

This String is always intern.

See Also:
String.intern()
Constructor Detail

JAPRoutingSettings.TransportMode

private JAPRoutingSettings.TransportMode(java.lang.String a_identifier)
New TransportMode for given identifier

Method Detail

getIdentifier

public java.lang.String getIdentifier()
Gets the Identifier of an TransportMode.

Returns:
The Identifer as an intern String.
See Also:
String.intern()

getByIdentifier

public static JAPRoutingSettings.TransportMode getByIdentifier(java.lang.String a_identifier)
Trys to map an given Identifier to an TransportMode.

Returns:
The corresponding TransportMode to an Identifier or UNKNOWN if none could be found.