Package com.github.taymindis.jh
Class DispatcherSync<T>
- java.lang.Object
-
- javax.servlet.ServletRequestWrapper
-
- javax.servlet.http.HttpServletRequestWrapper
-
- com.github.taymindis.jh.Dispatcher
-
- com.github.taymindis.jh.DispatcherSync<T>
-
- All Implemented Interfaces:
javax.servlet.http.HttpServletRequest,javax.servlet.ServletRequest
public class DispatcherSync<T> extends Dispatcher
dispatching in between web container
-
-
Field Summary
-
Fields inherited from class com.github.taymindis.jh.Dispatcher
httpStatus, resourcePath, splitter, suffix
-
-
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 DispatcherSyncaddAttribute(String key, Object val)DispatcherSyncdispatch(String jspPath)dispatching between the file via web containerObjectget(String key)TgetResult()TgetResult(long timeout, TimeUnit unit)booleanisCancelled()booleanisDone()DispatcherSyncset(String key, Object val)voidsetResult(Object rs)-
Methods inherited from class com.github.taymindis.jh.Dispatcher
DirectResult, DirectResult, DirectResult, DirectResult, DirectResult, DirectResult, 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
-
set
public DispatcherSync set(String key, Object val)
- Specified by:
setin classDispatcher
-
get
public Object get(String key)
- Specified by:
getin classDispatcher
-
dispatch
public DispatcherSync dispatch(String jspPath) throws javax.servlet.ServletException, IOException
dispatching between the file via web container- Specified by:
dispatchin classDispatcher- Parameters:
jspPath- resource path- Returns:
- OJHDispatcher
- Throws:
IOException- IOExceptionjavax.servlet.ServletException- ServletException
-
setResult
public void setResult(Object rs)
- Specified by:
setResultin classDispatcher
-
getResult
public T getResult()
- Specified by:
getResultin classDispatcher
-
getResult
public T 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
-
-