Class ServerConnectorListener
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
-
- org.eclipse.jetty.osgi.boot.utils.ServerConnectorListener
-
- All Implemented Interfaces:
java.util.EventListener,LifeCycle.Listener
public class ServerConnectorListener extends AbstractLifeCycle.AbstractLifeCycleListener
ServerConnectorListener This is for test support, where we need jetty to run on a random port, and we need a client to be able to find out which port was picked.
-
-
Constructor Summary
Constructors Constructor Description ServerConnectorListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.file.PathgetFilePath()java.lang.StringgetSysPropertyName()voidlifeCycleStarted(LifeCycle event)voidsetFilePath(java.nio.file.Path filePath)voidsetSysPropertyName(java.lang.String sysPropertyName)-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
lifeCycleFailure, lifeCycleStarting, lifeCycleStopped, lifeCycleStopping
-
-
-
-
Method Detail
-
lifeCycleStarted
public void lifeCycleStarted(LifeCycle event)
- Specified by:
lifeCycleStartedin interfaceLifeCycle.Listener- Overrides:
lifeCycleStartedin classAbstractLifeCycle.AbstractLifeCycleListener- See Also:
AbstractLifeCycle.AbstractLifeCycleListener.lifeCycleStarted(org.eclipse.jetty.util.component.LifeCycle)
-
getFilePath
public java.nio.file.Path getFilePath()
- Returns:
- the filePath
-
setFilePath
public void setFilePath(java.nio.file.Path filePath)
- Parameters:
filePath- the filePath to set
-
getSysPropertyName
public java.lang.String getSysPropertyName()
- Returns:
- the sysPropertyName
-
setSysPropertyName
public void setSysPropertyName(java.lang.String sysPropertyName)
- Parameters:
sysPropertyName- the sysPropertyName to set
-
-