public class Session extends java.lang.Object implements AccountingSession
Modifier and Type | Field and Description |
---|---|
protected Contract |
contract |
protected java.lang.String |
fromNumber |
protected org.apache.log4j.Logger |
logger |
protected Login |
login |
protected java.lang.String |
loginName |
protected int |
logRecordId |
protected java.lang.String |
logSessionTableName |
protected int |
mid |
protected int |
requestLogRecordId |
protected java.util.Calendar |
startTime |
protected java.lang.String |
toNumber |
Constructor and Description |
---|
Session() |
Modifier and Type | Method and Description |
---|---|
void |
addLogDebug(java.lang.String message) |
void |
addLogError(java.lang.String message) |
void |
addLogInfo(java.lang.String message) |
void |
checkAndCreateTables(java.sql.Connection con,
DefaultServerSetup setup)
Передаем сюда setup, т.к это метод вызывается как из радиуса так и из сервера (переобсчет сессий )
|
Contract |
getContract() |
java.lang.String |
getFromNumber() |
Login |
getLogin() |
java.lang.String |
getLoginName() |
java.lang.String |
getLogMessage(java.lang.String message) |
int |
getLogRecordId() |
int |
getMid() |
int |
getNasId() |
int |
getNasID()
Deprecated.
|
int |
getRequestLogRecordId() |
java.util.Set<java.lang.Integer> |
getServices() |
java.util.Calendar |
getStartTime() |
java.lang.String |
getToNumber() |
java.lang.String |
getUserName() |
void |
setContract(Contract contract) |
void |
setFromNumber(java.lang.String fromNumber) |
void |
setLogin(Login login) |
void |
setLoginName(java.lang.String loginName) |
void |
setLogRecordId(int logRecordId) |
void |
setMid(int mid) |
void |
setNasId(int nasId) |
void |
setNasID(int nasId)
Deprecated.
|
void |
setRequestLogRecordId(int requestLogRecordId) |
void |
setStartTime(java.util.Calendar startTime) |
void |
setToNumber(java.lang.String toNumber) |
java.lang.String |
toString() |
protected java.lang.String loginName
protected int logRecordId
protected int requestLogRecordId
protected java.util.Calendar startTime
protected int mid
protected java.lang.String fromNumber
protected java.lang.String toNumber
protected Login login
protected Contract contract
protected java.lang.String logSessionTableName
protected org.apache.log4j.Logger logger
public java.util.Calendar getStartTime()
public void setStartTime(java.util.Calendar startTime)
public int getMid()
public void setMid(int mid)
public java.lang.String getFromNumber()
public void setFromNumber(java.lang.String fromNumber)
public java.lang.String getToNumber()
public void setToNumber(java.lang.String toNumber)
public Login getLogin()
public void setLogin(Login login)
public Contract getContract()
public void setContract(Contract contract)
public int getLogRecordId()
public void setLogRecordId(int logRecordId)
public int getNasId()
@Deprecated public int getNasID()
getNasId()
.public void setNasId(int nasId)
@Deprecated public void setNasID(int nasId)
setNasId(int)
.nasId
- public void checkAndCreateTables(java.sql.Connection con, DefaultServerSetup setup)
con
- public int getRequestLogRecordId()
public void setRequestLogRecordId(int requestLogRecordId)
public java.lang.String getLoginName()
public java.lang.String getUserName()
getUserName
in interface AccountingSession
public void setLoginName(java.lang.String loginName)
public void addLogDebug(java.lang.String message)
public void addLogInfo(java.lang.String message)
public void addLogError(java.lang.String message)
public java.lang.String getLogMessage(java.lang.String message)
public java.util.Set<java.lang.Integer> getServices()
public java.lang.String toString()
toString
in class java.lang.Object