Package com.github.taymindis.jh
Class DispatcherFuture
- java.lang.Object
-
- javax.servlet.ServletRequestWrapper
-
- javax.servlet.http.HttpServletRequestWrapper
-
- com.github.taymindis.jh.Dispatcher
-
- com.github.taymindis.jh.DispatcherFuture
-
- All Implemented Interfaces:
javax.servlet.http.HttpServletRequest,javax.servlet.ServletRequest
public class DispatcherFuture extends Dispatcher
dispatching async between web container
-
-
Field Summary
-
Fields inherited from class com.github.taymindis.jh.Dispatcher
httpStatus
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDispatcherFuture(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DispatcherFuturea(String key, Object val)DispatcherFutureaddAttribute(String key, Object val)DispatcherFuturedispatch(String jspPathAndParam)dispatching first between the file via web container, get the result at the end of requestObjectgetResult()ObjectgetResult(long timeout, TimeUnit unit)booleanisCancelled()booleanisDone()voidsetResult(Object rs)-
Methods inherited from class com.github.taymindis.jh.Dispatcher
getBgExecutor, init, isDispatchFutureEnabled, isSuccess, newBackgroundEvent, newEvent, ResetNewThreadSize, ShutDownBackgroundTask
-
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
-
Methods inherited from class javax.servlet.ServletRequestWrapper
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.servlet.ServletRequest
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
-
-
-
-
Method Detail
-
addAttribute
public DispatcherFuture addAttribute(String key, Object val)
- Specified by:
addAttributein classDispatcher
-
a
public DispatcherFuture a(String key, Object val)
- Specified by:
ain classDispatcher
-
dispatch
public DispatcherFuture dispatch(String jspPathAndParam) throws Exception
dispatching first between the file via web container, get the result at the end of request- Specified by:
dispatchin classDispatcher- Parameters:
jspPathAndParam- resource path- Returns:
- DispatchFuture
- Throws:
IOException- IOExceptionjavax.servlet.ServletException- ServletExceptionException
-
isDone
public boolean isDone()
- Specified by:
isDonein classDispatcher
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelledin classDispatcher
-
setResult
public void setResult(Object rs)
- Specified by:
setResultin classDispatcher
-
getResult
public Object getResult()
- Specified by:
getResultin classDispatcher
-
getResult
public Object getResult(long timeout, TimeUnit unit)
- Specified by:
getResultin classDispatcher
-
-