Skip to content

Contains an overridden class from the UndertowJaxrsServer which allows serving static resources (web pages)

Notifications You must be signed in to change notification settings

gpjacobs/undertow-rs-static

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

undertow-rs-static

Contains an overridden class from the UndertowJaxrsServer which allows serving static resources (web pages)

To use, use UndertowJaxrsWebServer in place of where you would use UndertowJaxrsServer:

    UndertowJaxrsWebServer undertowServer = new UndertowJaxrsWebServer();
    undertowServer.addStaticResourcePath( "/swagger/", resource( new ClassPathResourceManager( RestServer.class.getClassLoader(), "web" ) ) );
    undertowServer.addStaticResourcePath( "/favicon.ico", resource( new ClassPathResourceManager( RestServer.class.getClassLoader(), "favicon.ico" ) ) );
    undertowServer.start( Undertow.builder().addHttpListener( port, host ) );

About

Contains an overridden class from the UndertowJaxrsServer which allows serving static resources (web pages)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages