Package com.github.taymindis.jh
Class DispatcherSync
- java.lang.Object
-
- javax.servlet.ServletRequestWrapper
-
- javax.servlet.http.HttpServletRequestWrapper
-
- com.github.taymindis.jh.Dispatcher
-
- com.github.taymindis.jh.DispatcherSync
-
- All Implemented Interfaces:
javax.servlet.http.HttpServletRequest,javax.servlet.ServletRequest
public class DispatcherSync extends Dispatcher
dispatching in between web container
-
-
Field Summary
-
Fields inherited from class com.github.taymindis.jh.Dispatcher
httpStatus
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDispatcherSync(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DispatcherSynca(String key, Object val)DispatcherSyncaddAttribute(String key, Object val)DispatcherSyncdispatch(String jspPathAndParam)dispatching between the file via web containerObjectgetResult()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 DispatcherSync addAttribute(String key, Object val)
- Specified by:
addAttributein classDispatcher
-
a
public DispatcherSync a(String key, Object val)
- Specified by:
ain classDispatcher
-
dispatch
public DispatcherSync dispatch(String jspPathAndParam) throws javax.servlet.ServletException, IOException
dispatching between the file via web container- Specified by:
dispatchin classDispatcher- Parameters:
jspPathAndParam- resource path- Returns:
- OJHDispatcher
- Throws:
IOException- IOExceptionjavax.servlet.ServletException- ServletException
-
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
-
isDone
public boolean isDone()
- Specified by:
isDonein classDispatcher
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelledin classDispatcher
-
-