public class NestedConnectorListener extends AbstractLifeCycle.AbstractLifeCycleListener
All interactions with the BridgeServlet are done via introspection to avoid depending on it directly. The BridgeServlet lives in the bootstrap-webapp; not inside equinox.
| Constructor and Description |
|---|
NestedConnectorListener() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBridgeServletClassName() |
NestedConnector |
getNestedConnector() |
java.lang.String |
getRegisterServletDelegateMethodName() |
java.lang.String |
getUnregisterServletDelegateMethodName() |
void |
lifeCycleStarted(LifeCycle event) |
void |
lifeCycleStopping(LifeCycle event) |
protected void |
registerWithBridgeServlet()
Hook into the BridgeServlet
|
void |
setBridgeServletClassName(java.lang.String bridgeServletClassName) |
void |
setNestedConnector(NestedConnector nestedConnector) |
void |
setRegisterServletDelegateMethodName(java.lang.String registerServletDelegateMethodName) |
void |
setUnregisterServletDelegateMethodName(java.lang.String unregisterServletDelegateMethodName) |
protected void |
unregisterWithBridgeServlet()
Unhook into the BridgeServlet
|
lifeCycleFailure, lifeCycleStarting, lifeCycleStoppedpublic void setBridgeServletClassName(java.lang.String bridgeServletClassName)
bridgeServletClassName - Name of the class that is the
BridgeServlet. By default
org.eclipse.equinox.servletbridge.BridgeServletpublic java.lang.String getBridgeServletClassName()
public java.lang.String getRegisterServletDelegateMethodName()
public java.lang.String getUnregisterServletDelegateMethodName()
public void setRegisterServletDelegateMethodName(java.lang.String registerServletDelegateMethodName)
registerServletDelegateMethodName - Name of the static method on the
BridgeServlet class to register the servlet delegate.public void setUnregisterServletDelegateMethodName(java.lang.String unregisterServletDelegateMethodName)
unregisterServletDelegateMethodName - Name of the static method on
the BridgeServlet class to unregister the servlet delegate.public void setNestedConnector(NestedConnector nestedConnector)
nestedConnector - The NestedConnector that we are listening to here.public NestedConnector getNestedConnector()
public void lifeCycleStarted(LifeCycle event)
lifeCycleStarted in interface LifeCycle.ListenerlifeCycleStarted in class AbstractLifeCycle.AbstractLifeCycleListenerpublic void lifeCycleStopping(LifeCycle event)
lifeCycleStopping in interface LifeCycle.ListenerlifeCycleStopping in class AbstractLifeCycle.AbstractLifeCycleListenerprotected void registerWithBridgeServlet()
throws java.lang.Exception
java.lang.Exceptionprotected void unregisterWithBridgeServlet()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2013 FuseSource, Corp.. All Rights Reserved.