com.github.hemantsonu20:sip-parser-antlr

A Sip parser

Лицензия

Лицензия

Категории

Категории

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

Группа

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

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

sip-parser-antlr
Последняя версия

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

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

com.github.hemantsonu20:sip-parser-antlr
A Sip parser
Ссылка на сайт

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

https://github.com/hemantsonu20/sip-parser-antlr
Система контроля версий

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

https://github.com/hemantsonu20/sip-parser-antlr

Скачать sip-parser-antlr

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

<!-- https://jarcasting.com/artifacts/com.github.hemantsonu20/sip-parser-antlr/ -->
<dependency>
    <groupId>com.github.hemantsonu20</groupId>
    <artifactId>sip-parser-antlr</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.hemantsonu20/sip-parser-antlr/
implementation 'com.github.hemantsonu20:sip-parser-antlr:1.0.0'
// https://jarcasting.com/artifacts/com.github.hemantsonu20/sip-parser-antlr/
implementation ("com.github.hemantsonu20:sip-parser-antlr:1.0.0")
'com.github.hemantsonu20:sip-parser-antlr:jar:1.0.0'
<dependency org="com.github.hemantsonu20" name="sip-parser-antlr" rev="1.0.0">
  <artifact name="sip-parser-antlr" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.hemantsonu20', module='sip-parser-antlr', version='1.0.0')
)
libraryDependencies += "com.github.hemantsonu20" % "sip-parser-antlr" % "1.0.0"
[com.github.hemantsonu20/sip-parser-antlr "1.0.0"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.antlr : antlr4-runtime jar 4.5.3

test (1)

Идентификатор библиотеки Тип Версия
org.testng : testng jar 6.9.9

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

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

sip-parser-antlr

Overview

A sip uri parser written with using antlr

The grammar of the sip uri is based on the RFC-3261 with some minor exceptions.

A typical sip-uri takes up the form

sip:hemant@github.com:80;uriparam1=urivalue1;uriparam2?headerkey1=headerValue1

The library parses this sip uri and returns a java class SipUriInfo. It has following fields.

private boolean isSips;
private String userInfo;
private String host;
private int port = -1;
private Map<String, String> uriParameters;
private Map<String, String> headers;

Examples

// to parse sip uri
SipUriInfo info = SipUtils.parseSipUri("sip:hemant@github.com:80;uriparam1=urivalue1;uriparam2?headerkey1=headerValue1");

// to parse sips uri
SipUriInfo info = SipUtils.parseSipsUri("sips:hemant@github.com:80;uriparam1=urivalue1;uriparam2?headerkey1=headerValue1");

For more examples see TestSipUtils

Maven Artifact

<dependency>
    <groupId>com.github.hemantsonu20</groupId>
    <artifactId>sip-parser-antlr</artifactId>
    <version>1.0.0</version>
</dependency>

Latest Published Version

1.0.0 published on July 13th 2016

License

Apache License 2.0

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

Версия
1.0.0