Jersey Standalone

Compact JAX-RS distribution based on Grizzly and Jersey

License

License

Categories

Categories

Jersey Program Interface REST Frameworks
GroupId

GroupId

com.github.skapral.jersey.se
ArtifactId

ArtifactId

jersey-se
Last Version

Last Version

0.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

Jersey Standalone
Compact JAX-RS distribution based on Grizzly and Jersey
Project URL

Project URL

https://github.com/skapral/jersey-se
Source Code Management

Source Code Management

https://github.com/skapral/jersey-se.git

Download jersey-se

How to add to project

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

Dependencies

compile (15)

Group / Artifact Type Version
org.glassfish.grizzly : grizzly-http-server jar 2.4.4
org.glassfish.jersey.core : jersey-client jar 2.30
org.glassfish.jersey.containers : jersey-container-grizzly2-http jar 2.30
org.glassfish.jersey.containers : jersey-container-grizzly2-servlet jar 2.30
org.glassfish.jersey.inject : jersey-hk2 jar 2.30
org.glassfish.jersey.media : jersey-media-multipart jar 2.30
javax.xml.bind : jaxb-api jar 2.4.0-b180830.0359
io.vavr : vavr jar 0.10.2
com.github.skapral.config : config-properties jar 0.0.2
org.assertj : assertj-core jar 3.14.0
com.pragmaticobjects.oo.tests : tests-junit5 jar 0.0.0
org.apache.httpcomponents : httpclient jar 4.5.10
org.apache.httpcomponents : httpmime jar 4.5.10
commons-io : commons-io jar 2.6
com.pragmaticobjects.oo.equivalence : equivalence-base jar 0.0.1

Project Modules

There are no modules declared in this project.

Jersey Standalone

Build Status (Travis) Build status (AppVeyor) Codecov

Compact self-sufficient JAX-RS distribution based on Grizzly and Jersey.

Quick start

  1. Add Maven dependency
<dependency>
    <groupId>com.github.skapral.jersey.se</groupId>
    <artifactId>jersey-se</artifactId>
    <version>x.y.z</version>
</dependency>
  1. Define JAX-RS resource config
public class SimpleConfig extends ResourceConfig {
    /**
     * Ctor.
     */
    public SimpleConfig() {
        super(
            StatusEndpoint.class
        );
    }
}

@Path("status")
public class StatusEndpoint {
    /**
     * @return returns "OK"
     */
    @GET
    @Produces(MediaType.TEXT_PLAIN)
    public String status() {
        return "OK";
    }
}
  1. Define entry point.
public static void main(String... args) throws Exception {
    new SrvGrizzlyWithJersey(
        new Cp_PORT(),
        new SimpleConfig()
    ).start();
    System.in.read(); // Server instance uses daemon threads, so hold
    // main thread until you need the server online.
}
  1. Run the instance.

Versions

Version
0.0.3
0.0.2
0.0.1
0.0.0