Project JXTA

net.jxta.ext.config
Class Transport

java.lang.Object
  extended by net.jxta.ext.config.Transport
Direct Known Subclasses:
HttpTransport, TcpTransport

public abstract class Transport
extends Object

Transport configuration container base class.

Author:
james todd [gonzo at jxta dot org]

Nested Class Summary
static class Transport.Scheme
           
 
Constructor Summary
Transport(String scheme)
          Constructor for the Transport object
 
Method Summary
 void addAddress(Address address)
          Adds a feature to the Address attribute of the Transport object
 void addAddresses(List addresses)
          Adds a feature to the Addresses attribute of the Transport object
 void addPublicAddress(PublicAddress address)
          Adds a feature to the PublicAddress attribute of the Transport object
 void addPublicAddresses(List addresses)
          Adds a feature to the PublicAddresses attribute of the Transport object
 void clearAddresses()
          Description of the Method
 void clearPublicAddresses()
          Description of the Method
 List getAddresses()
          Gets the addresses attribute of the Transport object
 ProxyAddress getProxyAddress()
          Gets the proxyAddress attribute of the Transport object
 List getPublicAddresses()
          Gets the publicAddresses attribute of the Transport object
 String getScheme()
          Gets the scheme attribute of the Transport object
 boolean isEnabled()
          Gets the enabled attribute of the Transport object
 boolean isIncoming()
          Gets the incoming attribute of the Transport object
 boolean isOutgoing()
          Gets the outgoing attribute of the Transport object
 boolean isProxy()
          Gets the proxy attribute of the Transport object
 Address removeAddress(Address address)
          Description of the Method
 Address removePublicAddress(PublicAddress address)
          Description of the Method
 void setAddress(Address address)
          Sets the address attribute of the Transport object
 void setAddresses(List addresses)
          Sets the addresses attribute of the Transport object
 void setEnabled(boolean isEnabled)
          Sets the enabled attribute of the Transport object
 void setIncoming(boolean isIncoming)
          Sets the incoming attribute of the Transport object
 void setOutgoing(boolean isOutgoing)
          Sets the outgoing attribute of the Transport object
 void setProxy(boolean isProxyEnabled)
          Sets the proxy attribute of the Transport object
 void setProxyAddress(ProxyAddress proxy)
          Sets the proxyAddress attribute of the Transport object
 void setPublicAddress(PublicAddress address)
          Sets the publicAddress attribute of the Transport object
 void setPublicAddresses(List addresses)
          Sets the publicAddresses attribute of the Transport object
 void setScheme(String scheme)
          Sets the scheme attribute of the Transport object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transport

public Transport(String scheme)
Constructor for the Transport object

Parameters:
scheme - Description of the Parameter
Method Detail

getScheme

public String getScheme()
Gets the scheme attribute of the Transport object

Returns:
The scheme value

setScheme

public void setScheme(String scheme)
Sets the scheme attribute of the Transport object

Parameters:
scheme - The new scheme value

isEnabled

public boolean isEnabled()
Gets the enabled attribute of the Transport object

Returns:
The enabled value

setEnabled

public void setEnabled(boolean isEnabled)
Sets the enabled attribute of the Transport object

Parameters:
isEnabled - The new enabled value

isIncoming

public boolean isIncoming()
Gets the incoming attribute of the Transport object

Returns:
The incoming value

setIncoming

public void setIncoming(boolean isIncoming)
Sets the incoming attribute of the Transport object

Parameters:
isIncoming - The new incoming value

isOutgoing

public boolean isOutgoing()
Gets the outgoing attribute of the Transport object

Returns:
The outgoing value

setOutgoing

public void setOutgoing(boolean isOutgoing)
Sets the outgoing attribute of the Transport object

Parameters:
isOutgoing - The new outgoing value

getAddresses

public List getAddresses()
Gets the addresses attribute of the Transport object

Returns:
The addresses value

setAddress

public void setAddress(Address address)
Sets the address attribute of the Transport object

Parameters:
address - The new address value

setAddresses

public void setAddresses(List addresses)
Sets the addresses attribute of the Transport object

Parameters:
addresses - The new addresses value

addAddress

public void addAddress(Address address)
Adds a feature to the Address attribute of the Transport object

Parameters:
address - The feature to be added to the Address attribute

addAddresses

public void addAddresses(List addresses)
Adds a feature to the Addresses attribute of the Transport object

Parameters:
addresses - The feature to be added to the Addresses attribute

removeAddress

public Address removeAddress(Address address)
Description of the Method

Parameters:
address - Description of the Parameter
Returns:
Removed address or null if absent

clearAddresses

public void clearAddresses()
Description of the Method


getPublicAddresses

public List getPublicAddresses()
Gets the publicAddresses attribute of the Transport object

Returns:
The publicAddresses value

addPublicAddress

public void addPublicAddress(PublicAddress address)
Adds a feature to the PublicAddress attribute of the Transport object

Parameters:
address - The feature to be added to the PublicAddress attribute

addPublicAddresses

public void addPublicAddresses(List addresses)
Adds a feature to the PublicAddresses attribute of the Transport object

Parameters:
addresses - The feature to be added to the PublicAddresses attribute

setPublicAddress

public void setPublicAddress(PublicAddress address)
Sets the publicAddress attribute of the Transport object

Parameters:
address - The new publicAddress value

setPublicAddresses

public void setPublicAddresses(List addresses)
Sets the publicAddresses attribute of the Transport object

Parameters:
addresses - The new publicAddresses value

removePublicAddress

public Address removePublicAddress(PublicAddress address)
Description of the Method

Parameters:
address - Description of the Parameter
Returns:
Description of the Return Value

clearPublicAddresses

public void clearPublicAddresses()
Description of the Method


isProxy

public boolean isProxy()
Gets the proxy attribute of the Transport object

Returns:
The proxy value

setProxy

public void setProxy(boolean isProxyEnabled)
Sets the proxy attribute of the Transport object

Parameters:
isProxyEnabled - The new proxy value

getProxyAddress

public ProxyAddress getProxyAddress()
Gets the proxyAddress attribute of the Transport object

Returns:
The proxyAddress value

setProxyAddress

public void setProxyAddress(ProxyAddress proxy)
Sets the proxyAddress attribute of the Transport object

Parameters:
proxy - The new proxyAddress value
Throws:
IllegalArgumentException - Description of the Exception

JXTA J2SE