Package org.eclipse.jetty.ant
Class ServerProxyImpl
java.lang.Object
org.eclipse.jetty.ant.ServerProxyImpl
- All Implemented Interfaces:
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 ClassesModifier and TypeClassDescriptionstatic classWebAppScannerListener Handle notifications that files we are interested in have changed during execution. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWebApplication(AntWebAppContext webApp) Adds a new web application to this server.intintbooleanisDaemon()voidsetConnectors(List<Connector> connectors) voidsetContextHandlers(ContextHandlers contextHandlers) voidsetDaemon(boolean daemon) voidsetJettyXml(File jettyXml) voidsetLoginServices(List<LoginService> loginServices) voidsetRequestLog(RequestLog requestLog) voidsetScanIntervalSecs(int scanIntervalSecs) voidsetStopKey(String stopKey) voidsetStopPort(int stopPort) voidsetTempDirectory(File tempDirectory) voidsetWebApplications(List<AntWebAppContext> webApplications) voidstart()Starts this server.
-
Constructor Details
-
ServerProxyImpl
public ServerProxyImpl()Default constructor. Creates a new Jetty server with a standard connector listening on a given port.
-
-
Method Details
-
addWebApplication
Description copied from interface:ServerProxyAdds a new web application to this server.- Specified by:
addWebApplicationin interfaceServerProxy- Parameters:
webApp- a AntWebAppContext object.
-
getStopPort
public int getStopPort() -
setStopPort
public void setStopPort(int stopPort) -
getStopKey
-
setStopKey
-
getJettyXml
-
setJettyXml
-
getConnectors
-
setConnectors
-
getRequestLog
-
setRequestLog
-
getLoginServices
-
setLoginServices
-
getWebApplications
-
setWebApplications
-
getTempDirectory
-
setTempDirectory
-
start
public void start()Description copied from interface:ServerProxyStarts this server.- Specified by:
startin interfaceServerProxy
-
getProxiedObject
- Specified by:
getProxiedObjectin interfaceServerProxy
-
isDaemon
public boolean isDaemon()- Returns:
- the daemon
-
setDaemon
public void setDaemon(boolean daemon) - Parameters:
daemon- the daemon to set
-
getContextHandlers
- Returns:
- the contextHandlers
-
setContextHandlers
- Parameters:
contextHandlers- the contextHandlers to set
-
getScanIntervalSecs
public int getScanIntervalSecs() -
setScanIntervalSecs
public void setScanIntervalSecs(int scanIntervalSecs)
-