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
Modifier and TypeClassDescriptionstatic class
WebAppScannerListener Handle notifications that files we are interested in have changed during execution. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addWebApplication
(AntWebAppContext webApp) Adds a new web application to this server.int
int
boolean
isDaemon()
void
setConnectors
(List<Connector> connectors) void
setContextHandlers
(ContextHandlers contextHandlers) void
setDaemon
(boolean daemon) void
setJettyXml
(File jettyXml) void
setLoginServices
(List<LoginService> loginServices) void
setRequestLog
(RequestLog requestLog) void
setScanIntervalSecs
(int scanIntervalSecs) void
setStopKey
(String stopKey) void
setStopPort
(int stopPort) void
setTempDirectory
(File tempDirectory) void
setWebApplications
(List<AntWebAppContext> webApplications) void
start()
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: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
-
setStopKey
-
getJettyXml
-
setJettyXml
-
getConnectors
-
setConnectors
-
getRequestLog
-
setRequestLog
-
getLoginServices
-
setLoginServices
-
getWebApplications
-
setWebApplications
-
getTempDirectory
-
setTempDirectory
-
start
public void start()Description copied from interface:ServerProxy
Starts this server.- Specified by:
start
in interfaceServerProxy
-
getProxiedObject
- Specified by:
getProxiedObject
in 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)
-