public class AsyncRequestManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DUP_SEQ_NUM |
static java.lang.String |
PAGE_SEQ_NUM |
static java.lang.String |
XHR_SEQ_NUM |
Modifier and Type | Method and Description |
---|---|
long |
getLastRequestSeqNumHandled() |
long |
getNextPageRenderSeqNumber()
THIS METHOD SHOULD ONLY BE CALLED BY the PageInstance render method when
the page is performing a complete render (or rerender) of the main
application page.
|
void |
manageRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Looks at the passed in request, determines if it's a synchronous or high/low priority asynchronous request
by looking at the requesttype parameter.
|
void |
resetRequestSequenceNumber()
Resets the xhr request sequence number back to 1 so the next request
to be handled by this this class should have the xhr-seq-num header value of 1.
|
public static final java.lang.String XHR_SEQ_NUM
public static final java.lang.String PAGE_SEQ_NUM
public static final java.lang.String DUP_SEQ_NUM
public void manageRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
request
- HttpServletRequest object sent to the Tpae UI framework (via the WebClientServlet) from the client (browser).response
- HttpServletResponse object that contains the response the Tpae UI framework returns to the clientjava.io.IOException
- passing the IOException thrown from the eventual call to handleRequest on WebClientSession. Expecting the calling routine to handle the exception.javax.servlet.ServletException
- passing the ServletException thrown from the eventual call to handleRequest on WebClientSession. Expecting the calling routine to handle the exception.public void resetRequestSequenceNumber()
public long getNextPageRenderSeqNumber()
public long getLastRequestSeqNumHandled()