Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.rst

Type-safe URI linking in Java 8 with Ratpack

Demonstration of how to create links to handlers in a type-safe way.

A working implementation is done for the Ratpack web framework, though the general idea should work for other web frameworks as well.

RootResourceHandler demonstrates how the type-safe linking can be used. The root ressource links to the greeting ressource. The method that creates the links (Router#linkTo) requires the same parameters as the actual handler method RootRessourceHandler#greet(Context, String) (except for the Context parameter, which every handler receives).

The current implementation only supports up to two path parameters. Note that this is a limitation of the implementation, not of the general approach.

License

MIT/Expat. See LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Languages

You can’t perform that action at this time.