Package com.tailf.maapi
Class MaapiUserSession
Object
com.tailf.maapi.MaapiUserSession
User session descriptor class. Objects of this class is returned by the
Maapi.getUserSession(int)
method.-
Constructor Summary
ConstructorDescriptionMaapiUserSession
(int lmode, ConfETuple usess) Internally used constructorMaapiUserSession
(ConfETuple usess) Internally used constructor -
Method Summary
Modifier and TypeMethodDescriptionGet User session context, one of "cli" | "webui" | "netconf" | "noaaa" | any MAAPI stringGet user session ip address as java InetAddress instanceGet user session login timeGet User session protocolGet snmpv3 context if availablegetUser()
Get user nameint
Get user session idtoString()
-
Constructor Details
-
MaapiUserSession
Internally used constructor- Parameters:
usess
-- Throws:
MaapiException
-
MaapiUserSession
Internally used constructor- Parameters:
lmode
-usess
-- Throws:
MaapiException
-
-
Method Details
-
getUser
Get user name- Returns:
- user name as string
-
getContext
Get User session context, one of "cli" | "webui" | "netconf" | "noaaa" | any MAAPI string- Returns:
- context as string
-
getSessionFlags
Get User session protocol- Returns:
- flag as MaapiUserSessionFlag
-
getIPAddress
Get user session ip address as java InetAddress instance- Returns:
- ip as InetAddress
-
getUserId
public int getUserId()Get user session id- Returns:
- usid as int
-
getLoginTime
Get user session login time- Returns:
- login time as Date
-
getSnmpV3Context
Get snmpv3 context if available- Returns:
- snmpv3 context as string
-
toString
-