Package org.serviceconnector.service
Class AbstractSession
java.lang.Object
org.serviceconnector.service.AbstractSession
- Direct Known Subclasses:
Session,Subscription
The Class AbstractSession.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSession(String sessionInfo, String ipAddressList) Instantiates a new session.AbstractSession(String sessionInfo, String ipAddressList, boolean cascaded) Instantiates a new abstract session. -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddump(XMLDumpWriter writer) Dump the session into the xml writer.Gets the creation time.getId()Gets the id.Gets the ip address list.Gets the server.Gets the service.Gets the session info.Gets the session timeout.Gets the timeouter task.booleanChecks if is cascaded session.voidSets the server.voidsetService(Service service) Sets the service.voidsetTimeout(ScheduledFuture<TimeoutWrapper> timeout) Sets the session timeout.voidsetTimeouterTask(TimeoutWrapper timeouterTask) Sets the timeouter task.toString()To string.
-
Field Details
-
server
The server. -
ipAddressList
The ip address list.
-
-
Constructor Details
-
AbstractSession
Instantiates a new session.- Parameters:
sessionInfo- the session infoipAddressList- the ip address list
-
AbstractSession
Instantiates a new abstract session.- Parameters:
sessionInfo- the session infoipAddressList- the ip address listcascaded- the cascaded
-
-
Method Details
-
getId
Gets the id.- Returns:
- the id
-
setServer
Sets the server.- Parameters:
server- the new server
-
getServer
Gets the server.- Returns:
- the server
-
setService
Sets the service.- Parameters:
service- the new service
-
getService
Gets the service.- Returns:
- the service
-
getTimeout
Gets the session timeout.- Returns:
- the session timeout
-
setTimeout
Sets the session timeout.- Parameters:
timeout- the new session timeout
-
getIpAddressList
Gets the ip address list.- Returns:
- the ip address list
-
getSessionInfo
Gets the session info.- Returns:
- the session info
-
setTimeouterTask
Sets the timeouter task.- Parameters:
timeouterTask- the new timeouter task
-
getTimeouterTask
Gets the timeouter task.- Returns:
- the timeouter task
-
getCreationTime
Gets the creation time.- Returns:
- the creation time
-
isCascaded
public boolean isCascaded()Checks if is cascaded session. Indicates if session has been created by a cascaded client or a real client.- Returns:
- true, if is cascaded
-
toString
To string. -
dump
Dump the session into the xml writer.- Parameters:
writer- the writer- Throws:
Exception- the exception
-