[resteasy-commits] [resteasy/Resteasy] 26164e: [RESTEASY-1481] UndertowJaxrsServer: Exposing the ...

GitHub noreply at github.com
Thu Sep 1 06:57:09 EDT 2016


  Branch: refs/heads/master
  Home:   https://github.com/resteasy/Resteasy
  Commit: 26164e09412a33d5a7702bd454a0b2667662961a
      https://github.com/resteasy/Resteasy/commit/26164e09412a33d5a7702bd454a0b2667662961a
  Author: gpjacobs <gpjacobs at users.noreply.github.com>
  Date:   2016-09-01 (Thu, 01 Sep 2016)

  Changed paths:
    M server-adapters/resteasy-undertow/src/main/java/org/jboss/resteasy/plugins/server/undertow/UndertowJaxrsServer.java
    M server-adapters/resteasy-undertow/src/test/java/org/jboss/resteasy/test/undertow/UndertowTest.java

  Log Message:
  -----------
  [RESTEASY-1481] UndertowJaxrsServer: Exposing the ability to add prefix paths to the server root path handler (#903)

* Exposing the ability to add prefix paths to the server root path handler

Undertow allows adding a variety of paths, but the default behavior in the current UndertowJaxrsServer automatically registers a root handler and implicitly adds the JAX-RS defined paths to it, disallowing manually adding other paths. Adding this method allows the manual addition of other paths such as for serving static resources (e.g. web pages, API documentation) alongside the REST endpoints. 

Inspired by a discussion I found when trying to find a solution to this problem: http://lists.jboss.org/pipermail/undertow-dev/2014-February/000680.html

* Adding missing import

Adding the import needed for ResourceHandler

* Adding test serving a prefix path holding a static file




More information about the resteasy-commits mailing list