| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private final AttributeContainerMap | |
| private final ByteBufferPool | |
| private final List | |
| private volatile Server. | |
| private final AutoLock | |
| private Handler | |
| private boolean | |
| private boolean | |
| private boolean | |
| private Request. | |
| private Invocable. | |
| private final MimeTypes. | |
| private RequestLog | |
| private final Scheduler | |
| private final Context | |
| private String | |
| private boolean | |
| private long | |
| private File | |
| private final ThreadPool | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Server(int
The port of a network HTTP connector (or 0 for a randomly allocated port). port)Convenience constructor
Creates server and a |
| public | Server(InetSocketAddress
the inet socket address to create the connector from addr)Convenience constructor
Creates server and a |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | clearAttributes()
Overrides default org. |
| protected void | doStart()
Overrides org. |
| protected void | doStop()
Stops the managed lifecycle beans in the reverse order they were added.
|
| public void | dump(Appendable
The appendable to dump to out, String The indent to apply after any new lines. indent)Overrides org. Implements org. |
| public Object | getAttribute(String
the attribute to get name)Implements org. |
| public Set | getAttributeNameSet()
Implements org. |
| public ByteBufferPool | |
| public Connector[] | |
| public Context | getContext()
Get the |
| public HttpField | Returns: AHttpField instance efficiently recording the current time to a second resolution,
that cannot be cleared from a ResponseHttpFields instance.
|
| public Resource | |
| public Handler | |
| public Resource | |
| public Request. | |
| public Invocable. | |
| public MimeTypes. | |
| public RequestLog | |
| public Scheduler | |
| public Server | getServer()
Overrides org. Implements org. |
| public String | |
| public boolean | |
| public long | |
| public File | Returns: The server temporary directory if set, else null. To always obtain a non-null temporary directory useContext#getTempDirectory() on getContext().
|
| public ThreadPool | |
| public URI | |
| public static String | |
| public boolean | handle(Request
the HTTP request to handle request, Response the HTTP response to handle response, Callback the callback to complete when the handling is complete callback)Overrides org. Implements org. Invoked to handle the passed HTTP request and response. |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public static void | |
| private Resource | Returns: the Resource found, or null if not found.the name of the resource (relative to `/org/eclipse/jetty/server/`) name)Create a new Resource representing a resources that is managed by the Server. |
| public Object | removeAttribute(String
the attribute to remove name)Implements org. |
| public void | removeConnector(Connector
The connector to remove. connector)Convenience method which calls |
| public Object | setAttribute(String
the attribute to set name, Object the value to set. A null value is equivalent to removing the attribute. attribute)Implements org. |
| public void | |
| public void | setDefaultHandler(Handler
The handler to use if no other handler is set or has handled the request. This handler should
always accept the request, even if only to send a 404. defaultHandler)
|
| public void | |
| public void | setDumpAfterStart(boolean
true if dumpAfterStart)dumpStdErr() is called after startingSet true if |
| public void | setDumpBeforeStop(boolean
true if dumpBeforeStop)dumpStdErr() is called before stoppingSet true if |
| public void | |
| public void | |
| public void | |
| public void | setStopAtShutdown(boolean
If true, this server instance will be explicitly stopped when the
JVM is shutdown. Otherwise the JVM is stopped with the server running. stop)Set stop server at shutdown behaviour. |
| public void | |
| public void | setTempDirectory(String
A string representation of the temporary directory. temp)Convenience method to call |
| public void | setTempDirectory(File
A directory that must exist and be writable or null to get the default. temp)Set the temporary directory returned by |
| protected void | start(LifeCycle
the lifecycle to start l)Overrides org. |
| public String | toString()
Overrides org. |