Fabric8 :: IANA Service Helper

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

License

License

GroupId

GroupId

io.fabric8
ArtifactId

ArtifactId

ianaservicehelper
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

Fabric8 :: IANA Service Helper
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Project URL

Project URL

http://fabric8.io/
Project Organization

Project Organization

Red Hat
Source Code Management

Source Code Management

http://github.com/fabric8io/ianaservicehelper/

Download ianaservicehelper

How to add to project

<!-- https://jarcasting.com/artifacts/io.fabric8/ianaservicehelper/ -->
<dependency>
    <groupId>io.fabric8</groupId>
    <artifactId>ianaservicehelper</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/io.fabric8/ianaservicehelper/
implementation 'io.fabric8:ianaservicehelper:0.0.1'
// https://jarcasting.com/artifacts/io.fabric8/ianaservicehelper/
implementation ("io.fabric8:ianaservicehelper:0.0.1")
'io.fabric8:ianaservicehelper:jar:0.0.1'
<dependency org="io.fabric8" name="ianaservicehelper" rev="0.0.1">
  <artifact name="ianaservicehelper" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.fabric8', module='ianaservicehelper', version='0.0.1')
)
libraryDependencies += "io.fabric8" % "ianaservicehelper" % "0.0.1"
[io.fabric8/ianaservicehelper "0.0.1"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

IANA Service HelperJoin the chat at https://gitter.im/fabric8io/users

license Maven Central Javadocs CircleCI Dependency Status

This utility provides a means to look up IANA registered services either by port or service name. The IANA registered services are embedded in a Map inside the JAR so no external connection is required. Maps are lazily initialized to ensure it's only allocated as used.

Usage

Look up service ports by service name:

Set<PortAndProtocol> ports = Helper.servicePorts("http");

Look up a service port by service name and protocol:

PortAndProtocol port = Helper.servicePort("http", "tcp");

Look up a service port by service name (protocol defaults to "tcp"):

PortAndProtocol port = Helper.servicePort("http");

Lookup service names by port and protocol:

Set<String> services = Helper.serviceNames(80, "tcp");

Lookup service names by port (protocol defaults to "tcp"):

Set<String> services = Helper.serviceNames(80);
io.fabric8

fabric8

open source development platform for kubernetes

Versions

Version
0.0.1