Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.
/ UrlParser Public archive

Library to parse URLs and extract path parameters, written with Servlet use in mind. Deprecated due to JAX-RS providing this feature already.

Notifications You must be signed in to change notification settings

ArjMart/UrlParser

Repository files navigation

UrlParser

A library to parse URI parameters in Java.

Example:

Template: "/path/to/resource/{STRING:itemName}/{INT:itemID}/more/paths/{BOOLEAN:itemHasBeenAddedToCart}
Path: "path/to/resource/apples/99/more/paths/false/"
Returns the following:
itemName: apples
itemID: 99
itemHasBeenAddedToCart: false

See doc folder (javadocs) for more usage information. Don't bother looking at the code, I haven't gotten around to documenting it well, other than the JavaDoc comments. You can also view the javadocs at arjmart.github.io/UrlParser.

About

Library to parse URLs and extract path parameters, written with Servlet use in mind. Deprecated due to JAX-RS providing this feature already.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages