public class FauxAsyncContext extends Object
| Constructor and Description |
|---|
FauxAsyncContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Mark this as completed and stop blocking.
|
javax.servlet.http.HttpServletRequest |
getRequest()
Returns current HttpServletRequest
|
javax.servlet.http.HttpServletResponse |
getResponse()
Returns current HttpServletResponse
|
long |
getTimeout()
Timeout value in miliseconds.
|
boolean |
isCompleted()
Returns true if the complete() method was called, false if we have
reached a timeout.
|
void |
setTimeout(long timeout)
Sets the current timeout value in miliseconds - only positive numbers are
accepted
|
void |
waitForTimeoutOrCompletion()
Blocks the current thread for the set timeout, can be stopped by calling
the complete() method.
|
public FauxAsyncContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
public void setTimeout(long timeout)
timeout - public long getTimeout()
public javax.servlet.http.HttpServletResponse getResponse()
public javax.servlet.http.HttpServletRequest getRequest()
public void complete()
public boolean isCompleted()
public void waitForTimeoutOrCompletion()
Copyright © 2023 jUPnP.org. All rights reserved.