web-path-matcher

Simple web path expression matcher

Лицензия

Лицензия

Категории

Категории

Ant Компиляция и сборка
Группа

Группа

com.github.antonsjava
Идентификатор

Идентификатор

web-path-matcher
Последняя версия

Последняя версия

1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

web-path-matcher
Simple web path expression matcher
Ссылка на сайт

Ссылка на сайт

https://github.com/antonsjava/web-path-matcher
Система контроля версий

Система контроля версий

https://github.com/antonsjava/web-path-matcher

Скачать web-path-matcher

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.antonsjava/web-path-matcher/ -->
<dependency>
    <groupId>com.github.antonsjava</groupId>
    <artifactId>web-path-matcher</artifactId>
    <version>1.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.antonsjava/web-path-matcher/
implementation 'com.github.antonsjava:web-path-matcher:1.1'
// https://jarcasting.com/artifacts/com.github.antonsjava/web-path-matcher/
implementation ("com.github.antonsjava:web-path-matcher:1.1")
'com.github.antonsjava:web-path-matcher:jar:1.1'
<dependency org="com.github.antonsjava" name="web-path-matcher" rev="1.1">
  <artifact name="web-path-matcher" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.antonsjava', module='web-path-matcher', version='1.1')
)
libraryDependencies += "com.github.antonsjava" % "web-path-matcher" % "1.1"
[com.github.antonsjava/web-path-matcher "1.1"]

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

web-path-matcher

Simple web path matching utility. Pattern to be matched can use

  • individual '?' character to represent any character
  • individual '*' character to represent any sequence of characters except '/'
  • path segment with only '*' characters (more than one) to represent any sequence of path elements

Examples

  • '/foo/**' represents paths like /foo or /foo/bar/one
  • '/foo/*.xml' represents paths like /foo/a.xml or /foo/bar.xml
  • '/foo/?.xml' represents paths like /foo/a.xml or /foo/b.xml

It is helper implementation for implementing http servlet filters and similar implementations.

Java usage

  PathMatcher matcher = PathMatcher.instance("/foo/**");
  String path = "/foo/bar";
  if(matcher.match(path)) { ... }

Maven usage

   <dependency>
      <groupId>com.github.antonsjava</groupId>
      <artifactId>web-path-matcher</artifactId>
      <version>1.0</version>
   </dependency>

Версии библиотеки

Версия
1.1
1.0