|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface of all service sessions
Method Summary | |
void |
disconnect()
Disconnects session |
java.lang.String |
echo(java.lang.String text)
Ping the server to test the connection to the server and to see if the server is still responding |
long |
getConnectTime()
Returns the connect time in milliseconds (base: January 1, 1970 UTC ) |
java.lang.String |
getNetBIOSName()
Gets NetBIOS name |
java.lang.Object |
getProperty(java.lang.String key)
Gets an API-user property |
java.net.InetAddress |
getServerAddress()
Gets the address of the server |
java.lang.String |
getServerLanMan()
Returns LAN Manager of the server |
java.lang.String |
getServerOS()
Returns server OS name |
java.lang.String |
getServerPrimaryDomain()
Returns the primary domain of the server |
long |
getServerTime()
Returns the server time (from 1970 in msec) |
int |
getServerTimeZone()
Time zone of server (min from UTC) |
java.lang.String |
getSessionName()
Returns share name |
java.lang.String |
getShareName()
Returns the name of this session |
boolean |
isConnected()
Checks if the server is connected |
boolean |
isUserLevelSecurity()
Returns true if the share has user level security |
void |
reconnect()
Reconnects server if disconnected |
void |
setAllowAutoReconnection(boolean on)
Sets automatic reconnection |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets an API-user property. |
Method Detail |
public void setAllowAutoReconnection(boolean on)
on
- true if automatic reconnection allowedpublic java.lang.String getShareName()
public java.lang.String getSessionName()
public java.lang.String getServerOS()
public java.lang.String getServerLanMan()
public java.lang.String getServerPrimaryDomain()
public java.lang.String getNetBIOSName()
public java.net.InetAddress getServerAddress()
public int getServerTimeZone()
public long getServerTime()
public boolean isConnected()
public void setProperty(java.lang.String key, java.lang.Object value)
key
- property namevalue
- property value;getProperty(String)
public java.lang.Object getProperty(java.lang.String key)
key
- property name#setProperty(String)
public boolean isUserLevelSecurity()
public long getConnectTime()
public void reconnect() throws java.io.IOException
java.io.IOException
- if an I/O error occurspublic void disconnect()
public java.lang.String echo(java.lang.String text) throws java.io.IOException
text
- text to sendjava.io.IOException
- if an I/O error occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |