|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ContainerAbstraction
We need to keep container specific logic out of BasePollHandler, and other parts of DWR. Each container will need an implementation of this interface, which will generally just return configurations of generic classes.
| Method Summary | |
|---|---|
Sleeper |
createSleeper(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RealScriptSession scriptSession,
ScriptConduit conduit)
Create a sleeper that is appropriate for the given servlet container |
java.lang.Class<? extends ServerLoadMonitor> |
getServerLoadMonitorImplementation()
The setup process allows the ContainerAbstraction to select a special ServerLoadMonitor implementation |
boolean |
handleResumedRequest(javax.servlet.http.HttpServletRequest request)
Some async-servlet implementations (Jetty) restart requests, when we might have already completed dealing with them. |
boolean |
isNativeEnvironment(javax.servlet.ServletConfig servletConfig)
We ask ContainerAbstractions to identify if the environment given is 'theirs'. |
| Method Detail |
|---|
boolean isNativeEnvironment(javax.servlet.ServletConfig servletConfig)
servletConfig - Access to ServletContext etc.
java.lang.Class<? extends ServerLoadMonitor> getServerLoadMonitorImplementation()
boolean handleResumedRequest(javax.servlet.http.HttpServletRequest request)
request - The request that we might be finished with
Sleeper createSleeper(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RealScriptSession scriptSession,
ScriptConduit conduit)
throws java.io.IOException
request - The Sleeper will probably need to know about the requestresponse - The Sleeper will probably need to know about the responsescriptSession - The Sleeper will probably need to know about the scriptSessionconduit - The Sleeper will probably need to know about the conduit
java.io.IOException
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||