avaje-resteasy-guice

Packaging parent for Avaje projects.

License

License

Categories

Categories

GUI User Interface Guice Application Layer Libs Dependency Injection RESTEasy Program Interface REST Frameworks
GroupId

GroupId

org.avaje.resteasy
ArtifactId

ArtifactId

avaje-resteasy-guice
Last Version

Last Version

1.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

avaje-resteasy-guice
Packaging parent for Avaje projects.
Project URL

Project URL

https://github.com/avaje-common/avaje-resteasy-guice
Source Code Management

Source Code Management

https://github.com/avaje-common/avaje-resteasy-guice.git

Download avaje-resteasy-guice

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.slf4j : slf4j-api jar [1.7,)

provided (4)

Group / Artifact Type Version
javax.websocket : javax.websocket-api jar 1.0
javax.servlet : javax.servlet-api jar 3.1.0
org.jboss.resteasy : resteasy-servlet-initializer jar 3.0.11.Final
org.jboss.resteasy : resteasy-guice jar 3.0.11.Final

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

avaje-resteasy-guice

Extensions for using Resteasy with Guice and WebSockets

Maven

<dependency>
  <groupId>org.avaje.resteasy</groupId>
  <artifactId>avaje-resteasy-guice</artifactId>
  <version>1.1.2</version>
</dependency>

Bootstrap

Provides an extension to GuiceResteasyBootstrapServletContextListener that will detect eager singleton WebSocket server endpoints and registers them with the servlet container.

<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">

  <!-- Specify the modules to use as per normal Resteasy/Guice -->
  <context-param>
    <param-name>resteasy.guice.modules</param-name>
    <param-value>org.example.myapp.web.module.WebModule</param-value>
  </context-param>

  <!-- Bootstrap - registers Guice WebSocket singletons with the servlet container for you -->
  <listener>
    <listener-class>
      org.avaje.resteasy.Bootstrap
    </listener-class>
  </listener>

RestFilter

Extends the FilterDispatcher providing a configuration parameter that you can 'punch holes' through the filter for using default servlets to serve static content etc. You can specify a regex pattern of resource urls to exclude from processing.

    <filter>
      <description>Extended Resteasy filter</description
      <filter-name>RestFilter</filter-name>
     <filter-class>org.avaje.resteasy.RestFilter</filter-class>
      <init-param>
        <!-- Specify regex pattern of resource urls to ignore -->
        <param-name>ignore</param-name>
        <param-value>(/favicon.ico|/(assets|images|fonts|css|js|res)/.*)</param-value>
      </init-param>
    </filter>
 
    <filter-mapping>
      <filter-name>RestFilter</filter-name>
      <url-pattern>/*</url-pattern>
    </filter-mapping>
org.avaje.resteasy

avaje

Versions

Version
1.1.2
1.1.1