|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.DefaultCometSupportResolver
public class DefaultCometSupportResolver
This is the default implementation of @link {CometSupportResolver}
| Field Summary | |
|---|---|
static String |
GLASSFISH_V2
|
static String |
GRIZZLY
|
static String |
JBOSS_5
|
static String |
JBOSSWEB
|
static String |
JETTY
|
static String |
JETTY_7
|
static Logger |
logger
|
static String |
SERVLET_30
|
static String |
TOMCAT
|
static String |
WEBLOGIC
|
| Constructor Summary | |
|---|---|
DefaultCometSupportResolver(AtmosphereServlet.AtmosphereConfig config)
|
|
| Method Summary | |
|---|---|
CometSupport |
defaultCometSupport(boolean preferBlocking)
This method is used to determine the default CometSupport if all else fails |
List<Class<? extends CometSupport>> |
detectContainersPresent()
Returns a list of comet support by containers available on the classpath |
CometSupport |
newCometSupport(Class<? extends CometSupport> targetClass)
Given a Class of something that extends CometSupport, it tries to return an instance of that class The class has to have a visible constructor with the signature (@link {AtmosphereConfig}) |
CometSupport |
newCometSupport(String targetClassFQN)
|
CometSupport |
resolve(boolean useNativeIfPossible,
boolean defaultToBlocking)
This method is the general interface to the outside world |
protected CometSupport |
resolveMultipleNativeSupportConflict(List<Class<? extends CometSupport>> available)
This method is called if there are more than one potential native container in scope |
protected CometSupport |
resolveNativeCometSupport(List<Class<? extends CometSupport>> available)
This method is called to determine which native comet support to the used |
protected boolean |
testClassExists(String testClass)
Convenience method that tests if a class with the given FQN is present on the classpath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SERVLET_30
public static final String GLASSFISH_V2
public static final String TOMCAT
public static final String JBOSS_5
public static final String JETTY
public static final String JETTY_7
public static final String GRIZZLY
public static final String WEBLOGIC
public static final String JBOSSWEB
public static final Logger logger
| Constructor Detail |
|---|
public DefaultCometSupportResolver(AtmosphereServlet.AtmosphereConfig config)
| Method Detail |
|---|
protected boolean testClassExists(String testClass)
testClass -
public List<Class<? extends CometSupport>> detectContainersPresent()
public CometSupport defaultCometSupport(boolean preferBlocking)
preferBlocking -
public CometSupport newCometSupport(Class<? extends CometSupport> targetClass)
targetClass -
public CometSupport newCometSupport(String targetClassFQN)
public CometSupport resolve(boolean useNativeIfPossible,
boolean defaultToBlocking)
resolve in interface CometSupportResolveruseNativeIfPossible - - should the resolver try to use a native container comet support if present?defaultToBlocking - - should the resolver default to blocking IO comet support?
protected CometSupport resolveNativeCometSupport(List<Class<? extends CometSupport>> available)
available -
protected CometSupport resolveMultipleNativeSupportConflict(List<Class<? extends CometSupport>> available)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||