Skip to content

Instantly share code, notes, and snippets.

View leonardovere's full-sized avatar
💻
Working from home

Leonardo Roberto Candido leonardovere

💻
Working from home
View GitHub Profile
@felipewind
felipewind / ProductResource.java
Last active March 20, 2024 20:33
Passing JWT token using the swagger-ui
import java.util.List;
import javax.annotation.security.RolesAllowed;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
@mariofts
mariofts / Apuracao.java
Created May 22, 2015 18:53
WebSocket com JSF
package br.com.caelum.notasfiscais.websocket;
import java.util.ArrayList;
import java.util.Arrays;
import javax.enterprise.context.ApplicationScoped;
import javax.websocket.OnClose;
import javax.websocket.OnMessage;
import javax.websocket.OnOpen;
import javax.websocket.Session;