Top Description Inners Fields Constructors Methods
org.eclipse.jetty.ee10.runner

public Class Runner

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
java.io.PrintStream, java.net.MalformedURLException, .URI, .URL, .URLClassLoader, java.nio.file.Files, .Path, .Paths, java.util.ArrayList, .Arrays, .Collections, .List, .Locale, .Objects, org.eclipse.jetty.ee10.plus.webapp.EnvConfiguration, .PlusConfiguration, org.eclipse.jetty.ee10.servlet.ServletContextHandler, .SessionHandler, org.eclipse.jetty.ee10.servlet.security.ConstraintMapping, .ConstraintSecurityHandler, org.eclipse.jetty.ee10.webapp.MetaInfConfiguration, .WebAppContext, org.eclipse.jetty.io.ConnectionStatistics, org.eclipse.jetty.security.Constraint, .HashLoginService, org.eclipse.jetty.security.authentication.BasicAuthenticator, org.eclipse.jetty.server.Connector, .CustomRequestLog, .Handler, .Server, .ServerConnector, .ShutdownMonitor, org.eclipse.jetty.server.handler.ContextHandler, .ContextHandlerCollection, .DefaultHandler, .StatisticsHandler, org.eclipse.jetty.util.FileID, .RolloverFileOutputStream, .StringUtil, org.eclipse.jetty.util.resource.Resource, .ResourceFactory, .Resources, org.eclipse.jetty.xml.XmlConfiguration, org.slf4j.Logger, .LoggerFactory

Deprecated

No replacement provided or available. Migrate to jetty-home (and use ${jetty.base} directory).

Runner

Combine jetty classes into a single executable jar and run webapps based on the args to it.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public class

Field Summary

Modifier and TypeField and Description
protected URLClassLoader
protected Runner.Classpath
protected ArrayList<String>
protected ContextHandlerCollection
protected boolean
protected String
protected Server
protected String
protected String
public static final String
public static final String
public static final int
private static final Logger
public static final String[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
configure(String[]
the command line arguments
args
)

Configure a jetty instance and deploy the webapps presented as args

protected void
initClassLoader()

Establish a classloader with custom paths (if any)

public static void
main(String[] args)

protected void
public void
run()

private URL
toURL(URI uri)

public void
usage(String
the error header
error
)

Generate helpful usage message and exit

public void
version()

Generate version message and exit

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_classLoaderback to summary
protected URLClassLoader _classLoader
_classpathback to summary
protected Runner.Classpath _classpath
_configFilesback to summary
protected ArrayList<String> _configFiles
_contextsback to summary
protected ContextHandlerCollection _contexts
_enableStatsback to summary
protected boolean _enableStats
_logFileback to summary
protected String _logFile
_serverback to summary
protected Server _server
_serverUriFileback to summary
protected String _serverUriFile
_statsPropFileback to summary
protected String _statsPropFile
CONTAINER_INCLUDE_JAR_PATTERNback to summary
public static final String CONTAINER_INCLUDE_JAR_PATTERN
DEFAULT_CONTEXT_PATHback to summary
public static final String DEFAULT_CONTEXT_PATH
DEFAULT_PORTback to summary
public static final int DEFAULT_PORT
LOGback to summary
private static final Logger LOG
PLUS_CONFIGURATION_CLASSESback to summary
public static final String[] PLUS_CONFIGURATION_CLASSES

Constructor Detail

Runnerback to summary
public Runner()

Method Detail

configureback to summary
public void configure(String[] args) throws Exception

Configure a jetty instance and deploy the webapps presented as args

Parameters
args:String[]

the command line arguments

Exceptions
Exception:
if unable to configure
initClassLoaderback to summary
protected void initClassLoader()

Establish a classloader with custom paths (if any)

mainback to summary
public static void main(String[] args)
prependHandlerback to summary
protected void prependHandler(Handler handler, Handler.Sequence handlers)
runback to summary
public void run() throws Exception
toURLback to summary
private URL toURL(URI uri)
usageback to summary
public void usage(String error)

Generate helpful usage message and exit

Parameters
error:String

the error header

versionback to summary
public void version()

Generate version message and exit

org.eclipse.jetty.ee10.runner back to summary

public Class Runner.Classpath

extends Object
Class Inheritance

Classpath

Field Summary

Modifier and TypeField and Description
private List<URI>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public URI[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_classpathback to summary
private List<URI> _classpath

Constructor Detail

Classpathback to summary
public Classpath()

Method Detail

addJarsback to summary
public void addJars(Resource lib)
addPathback to summary
public void addPath(Resource path)
asArrayback to summary
public URI[] asArray()