|
Openfire 3.5.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.http.HttpSessionManager
public class HttpSessionManager
Manages sessions for all users connecting to Openfire using the HTTP binding protocal, XEP-0124.
Constructor Summary | |
---|---|
HttpSessionManager()
Creates a new HttpSessionManager instance. |
Method Summary | |
---|---|
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. |
HttpConnection |
forwardRequest(long rid,
HttpSession session,
boolean isSecure,
org.dom4j.Element rootNode)
Forwards a client request, which is related to a session, to the server. |
int |
getInactivityTimeout()
Seconds a session has to be idle to be closed. |
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 |
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 |
start()
Starts the services used by the HttpSessionManager. |
void |
stop()
Stops any services and cleans up any resources used by the HttpSessionManager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpSessionManager()
Method Detail |
---|
public void start()
public 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 Wildfie.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 getMaxWait()
public int getPollingInterval()
public int getMaxRequests()
public int getInactivityTimeout()
public HttpConnection forwardRequest(long rid, HttpSession session, boolean isSecure, org.dom4j.Element rootNode) throws HttpBindException, HttpConnectionClosedException
rid
- the unique, sequential, requestID sent from the client.session
- the HTTP session of the client that made the request.isSecure
- true if the request was made over a secure channel, HTTPS, and false if it
was not.rootNode
- the XML body of the request.
HttpBindException
- for several reasons: if the encoding inside of an auth packet is
not recognized by the server, or if the packet type is not recognized.
HttpConnectionClosedException
- if the session is no longer available.
|
Openfire 3.5.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |