|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fossilec.odettej.Session
public final class Session
The Session class represents a session between Odette FTP entities and is not subclassed.
Method Summary | |
---|---|
OdetteFTPEntity |
acceptConnection(Transport transport)
|
OdetteFTPEntity |
connect(java.lang.String address,
java.lang.String userCode,
java.lang.String password)
|
TransferMode |
getCapableTransferMode()
|
static Session |
getInstance(java.util.Properties props)
Get a new Session object. |
static Session |
getInstance(java.util.Properties props,
boolean restart)
|
static Session |
getInstance(java.util.Properties props,
TransferMode mode)
|
static Session |
getInstance(java.util.Properties props,
TransferMode mode,
boolean restart)
|
int |
getMaxBuffer()
|
int |
getMaxWindow()
|
java.util.Properties |
getProperties()
|
java.lang.String |
getProperty(java.lang.String key)
Searches for the property with the specified key in local constants and session property list. |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Searches for the property with the specified key in local constants and session property list. |
Service |
getService()
|
boolean |
isCompressionCapable()
|
boolean |
isRestartCapable()
|
void |
setAuthenticator(PeerAuthenticator provider)
|
java.lang.Object |
setProperty(java.lang.String key,
java.lang.String value)
Set a property in Session and return the previous property value. |
void |
setReceivingSupport(ListenerTemplate provider)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Session getInstance(java.util.Properties props)
props
- Properties object that holds relevant properties.
public static Session getInstance(java.util.Properties props, TransferMode mode)
public static Session getInstance(java.util.Properties props, boolean restart)
public static Session getInstance(java.util.Properties props, TransferMode mode, boolean restart)
public int getMaxBuffer()
public int getMaxWindow()
public boolean isCompressionCapable()
public boolean isRestartCapable()
public TransferMode getCapableTransferMode() throws OdetteFTPException
OdetteFTPException
public void setReceivingSupport(ListenerTemplate provider)
public void setAuthenticator(PeerAuthenticator provider)
public Service getService()
public java.lang.String getProperty(java.lang.String key)
null
if the property is not
found.
key
- Key name of the property.
public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
key
- Key name of the property.defaultValue
- Default value which is returned.
public java.lang.Object setProperty(java.lang.String key, java.lang.String value)
null
value remove the existing property if exists.null
.
key
- Key name of the property.value
- The value attribute to the specified key.
null
if it did not have one.public java.util.Properties getProperties()
public OdetteFTPEntity acceptConnection(Transport transport) throws OdetteFTPException
OdetteFTPException
public OdetteFTPEntity connect(java.lang.String address, java.lang.String userCode, java.lang.String password) throws OdetteFTPException
OdetteFTPException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |