Constructor and Description |
---|
HttpSessionManager()
Creates a new HttpSessionManager instance.
|
Modifier and Type | Method and Description |
---|---|
HttpSession |
createSession(InetAddress address,
org.dom4j.Element rootNode,
HttpConnection connection)
Creates an HTTP binding session which will allow a user to exchange packets with Openfire.
|
protected void |
execute(Runnable runnable) |
int |
getInactivityTimeout()
Seconds a session has to be idle to be closed.
|
int |
getMaxPause()
Returns the maximum length of a temporary session pause (in seconds) that the client MAY
request.
|
int |
getMaxRequests()
Openfire MAY limit the number of simultaneous requests the client makes with the 'requests'
attribute.
|
int |
getMaxWait()
Returns the longest time (in seconds) that Openfire is allowed to wait before responding to
any request during the session.
|
int |
getPollingInactivityTimeout()
Seconds a polling session has to be idle to be closed.
|
int |
getPollingInterval()
Openfire SHOULD include two additional attributes in the session creation response element,
specifying the shortest allowable polling interval and the longest allowable inactivity
period (both in seconds).
|
HttpSession |
getSession(String streamID)
Returns the session related to a stream id.
|
void |
init()
Deprecated.
As of Openfire 4.0.0, the functionality of this method was added to the implementation of #start().
|
void |
start()
Starts the services used by the HttpSessionManager.
|
void |
stop()
Stops any services and cleans up any resources used by the HttpSessionManager.
|
public HttpSessionManager()
@Deprecated public void init()
public void start()
HttpBindManager
). BOSH installations expecting heavy loads may want to
allocate additional threads to this worker pool to ensure timely delivery of inbound packetspublic void stop()
public HttpSession getSession(String streamID)
streamID
- the stream id to retrieve the session.public HttpSession createSession(InetAddress address, org.dom4j.Element rootNode, HttpConnection connection) throws UnauthorizedException, HttpBindException
address
- the internet address that was used to bind to Openfire.rootNode
- the body element that was sent containing the request for a new session.connection
- the HTTP connection object which abstracts the individual connections to
Openfire over the HTTP binding protocol. The initial session creation response is returned to
this connection.UnauthorizedException
- if the Openfire server is currently in an uninitialized state.
Either shutting down or starting up.HttpBindException
- when there is an internal server error related to the creation of
the initial session creation response.public int getMaxPause()
public int getMaxWait()
public int getPollingInterval()
public int getMaxRequests()
public int getInactivityTimeout()
public int getPollingInactivityTimeout()
protected void execute(Runnable runnable)
Copyright © 2003-2008 Jive Software.