Undertow Concepts: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 8: Line 8:
Undertow is a web server written in Java. It provides both blocking and non-blocking APIs based on NIO. It has a composition-based architecture that allows assembling a web server combining small single purpose handlers.  
Undertow is a web server written in Java. It provides both blocking and non-blocking APIs based on NIO. It has a composition-based architecture that allows assembling a web server combining small single purpose handlers.  


Undertow is embeddable, its lifecycle is controlled by the embedding application. Undertow is the default web server in [[WildFly]].
Undertow is embeddable, its lifecycle is controlled by the embedding application and its configuration is controlled programmatically via API calls. Undertow is the default web server in [[WildFly]], and in this case the configuration is exposed via XML in the server configuration file as:
 
<pre>
        ...
        <subsystem xmlns="urn:jboss:domain:undertow:3.0">
            ...
        </subsystem>
        ...
</pre>.


It has support for Servlet 3.1.
It has support for Servlet 3.1.

Revision as of 01:50, 19 January 2016

Internal

Overview

Undertow is a web server written in Java. It provides both blocking and non-blocking APIs based on NIO. It has a composition-based architecture that allows assembling a web server combining small single purpose handlers.

Undertow is embeddable, its lifecycle is controlled by the embedding application and its configuration is controlled programmatically via API calls. Undertow is the default web server in WildFly, and in this case the configuration is exposed via XML in the server configuration file as:

        ...
        <subsystem xmlns="urn:jboss:domain:undertow:3.0">
            ...
        </subsystem>
        ...

.

It has support for Servlet 3.1.

Artifacts

Request Lifecycle

XNIO Concepts

HttpServerExchange

An exchange can be in blocking or non-blocking mode, and it can be put in blocking mode.

Handler