Skip to content

openig-contrib/openig-resources-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Resources Handler

Serves static resources (html, images, css, …​) from a set of configurable directories.

If requests includes a If-Modified-Since header and the resource is found, then a freshness test is performed, and a 304 Not Modified status is returned.

Only GET requests are processed, others are rejected with 405 Method Not Allowed status code.

  • Version: 1.0

  • License: Apache Software License 2.0

  • Authors: Guillaume Sauthier

Usage

{
  "name": "ResourcesHandler",
  "type": "ResourcesHandler",
  "config": {
    "directories": [
      "/Users/guillaume/public",
      "${system['user.home']}/.openig/static}"
    ]
  }
}

Build

>$ gradle clean build
   :clean
   :compileJava UP-TO-DATE
   :compileGroovy
   :processResources
   :classes
   :jar
   :assemble
   :compileTestJava UP-TO-DATE
   :compileTestGroovy
   :processTestResources UP-TO-DATE
   :testClasses
   :test
   :check
   :build

   BUILD SUCCESSFUL

Total time: 7.576 secs

Get your artifact from build/libs/.

Disclaimer

This plugin is not supported by ForgeRock AS.

About

Serves static resources from a configurable set of directories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages