Package org.serviceconnector.web
Class WebSession
java.lang.Object
org.serviceconnector.web.WebSession
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHost()getId()intgetPort()intdoubleGets the session timeout seconds.Gets the session timeout.Gets the timeouter task.voidsetCredentials(WebCredentials credentials) voidvoidsetPort(int port) voidsetRemoteHost(String remoteHost) voidsetRemotePort(int remotePort) voidsetTimeout(ScheduledFuture<TimeoutWrapper> timeout) Sets the session timeout.voidsetTimeouterTask(TimeoutWrapper timeouterTask) Sets the timeouter task.voidsetUserAgent(String userAgent)
-
Constructor Details
-
WebSession
public WebSession()Instantiates a new web session.
-
-
Method Details
-
getSessionTimeoutSeconds
public double getSessionTimeoutSeconds()Gets the session timeout seconds.- Returns:
- the session timeout seconds
-
getTimeout
Gets the session timeout.- Returns:
- the session timeout
-
setTimeout
Sets the session timeout.- Parameters:
timeout- the new session timeout
-
setTimeouterTask
Sets the timeouter task.- Parameters:
timeouterTask- the new timeouter task
-
getTimeouterTask
Gets the timeouter task.- Returns:
- the timeouter task
-
getUserAgent
-
setUserAgent
-
getHost
-
setHost
-
getPort
public int getPort() -
setPort
public void setPort(int port) -
getRemoteHost
-
setRemoteHost
-
getRemotePort
public int getRemotePort() -
setRemotePort
public void setRemotePort(int remotePort) -
getCredentials
-
setCredentials
-
getId
-