Package org.eclipse.jetty.ant
Class ServerProxyImpl
- java.lang.Object
-
- org.eclipse.jetty.ant.ServerProxyImpl
-
- All Implemented Interfaces:
ServerProxy
public class ServerProxyImpl extends java.lang.Object implements ServerProxy
A proxy class for interaction with Jetty server object. Used to have some level of abstraction over standard Jetty classes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerProxyImpl.WebAppScannerListener
WebAppScannerListener Handle notifications that files we are interested in have changed during execution.
-
Constructor Summary
Constructors Constructor Description ServerProxyImpl()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addWebApplication(AntWebAppContext webApp)
Adds a new web application to this server.java.util.List<Connector>
getConnectors()
ContextHandlers
getContextHandlers()
java.io.File
getJettyXml()
java.util.List<LoginService>
getLoginServices()
java.lang.Object
getProxiedObject()
RequestLog
getRequestLog()
int
getScanIntervalSecs()
java.lang.String
getStopKey()
int
getStopPort()
java.io.File
getTempDirectory()
java.util.List<AntWebAppContext>
getWebApplications()
boolean
isDaemon()
void
setConnectors(java.util.List<Connector> connectors)
void
setContextHandlers(ContextHandlers contextHandlers)
void
setDaemon(boolean daemon)
void
setJettyXml(java.io.File jettyXml)
void
setLoginServices(java.util.List<LoginService> loginServices)
void
setRequestLog(RequestLog requestLog)
void
setScanIntervalSecs(int scanIntervalSecs)
void
setStopKey(java.lang.String stopKey)
void
setStopPort(int stopPort)
void
setTempDirectory(java.io.File tempDirectory)
void
setWebApplications(java.util.List<AntWebAppContext> webApplications)
void
start()
Starts this server.
-
-
-
Method Detail
-
addWebApplication
public void addWebApplication(AntWebAppContext webApp)
Description copied from interface:ServerProxy
Adds a new web application to this server.- Specified by:
addWebApplication
in interfaceServerProxy
- Parameters:
webApp
- a AntWebAppContext object.
-
getStopPort
public int getStopPort()
-
setStopPort
public void setStopPort(int stopPort)
-
getStopKey
public java.lang.String getStopKey()
-
setStopKey
public void setStopKey(java.lang.String stopKey)
-
getJettyXml
public java.io.File getJettyXml()
-
setJettyXml
public void setJettyXml(java.io.File jettyXml)
-
getConnectors
public java.util.List<Connector> getConnectors()
-
setConnectors
public void setConnectors(java.util.List<Connector> connectors)
-
getRequestLog
public RequestLog getRequestLog()
-
setRequestLog
public void setRequestLog(RequestLog requestLog)
-
getLoginServices
public java.util.List<LoginService> getLoginServices()
-
setLoginServices
public void setLoginServices(java.util.List<LoginService> loginServices)
-
getWebApplications
public java.util.List<AntWebAppContext> getWebApplications()
-
setWebApplications
public void setWebApplications(java.util.List<AntWebAppContext> webApplications)
-
getTempDirectory
public java.io.File getTempDirectory()
-
setTempDirectory
public void setTempDirectory(java.io.File tempDirectory)
-
start
public void start()
Description copied from interface:ServerProxy
Starts this server.- Specified by:
start
in interfaceServerProxy
- See Also:
ServerProxy.start()
-
getProxiedObject
public java.lang.Object getProxiedObject()
- Specified by:
getProxiedObject
in interfaceServerProxy
- See Also:
ServerProxy.getProxiedObject()
-
isDaemon
public boolean isDaemon()
- Returns:
- the daemon
-
setDaemon
public void setDaemon(boolean daemon)
- Parameters:
daemon
- the daemon to set
-
getContextHandlers
public ContextHandlers getContextHandlers()
- Returns:
- the contextHandlers
-
setContextHandlers
public void setContextHandlers(ContextHandlers contextHandlers)
- Parameters:
contextHandlers
- the contextHandlers to set
-
getScanIntervalSecs
public int getScanIntervalSecs()
-
setScanIntervalSecs
public void setScanIntervalSecs(int scanIntervalSecs)
-
-