jersey

Suggestions for OAuth2 libraries for integration with Jersey? [closed]

懵懂的女人 提交于 2020-01-01 09:39:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I am working on making Jersey web services available using OAuth2 to other clients and am having a tough time finding libraries that tie in nicely with Jersey. So far I have looked at the following libraries. http://static.springsource.org/spring-security/oauth/support.html We got the demo working, but do not want

Suggestions for OAuth2 libraries for integration with Jersey? [closed]

倾然丶 夕夏残阳落幕 提交于 2020-01-01 09:39:13
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I am working on making Jersey web services available using OAuth2 to other clients and am having a tough time finding libraries that tie in nicely with Jersey. So far I have looked at the following libraries. http://static.springsource.org/spring-security/oauth/support.html We got the demo working, but do not want

Inject EJB in Jersey filter

扶醉桌前 提交于 2020-01-01 09:27:14
问题 I am currently developing an application with Jersey JAX-RS as backend and AngularJS as frontend ; I need a sort of authentication, and so with every request I send a token that should be verify by the backend. For this, I decided to create a Jersey filter that will look for that token, and then call my AuthenticateService to check if the user can be authenticated. Authorization is then managed by @RolesAllowed annotation. Here is my problem : I can't inject an EJB inside a Jersey filter,

Java- Jersey, JAX RS

五迷三道 提交于 2020-01-01 08:53:55
问题 I've some experience developing Java programs. However I have always struggled to understand some basics, such as all the different components that make up a Java Enterprise Application. For example I have implemented RESTful and SOAP based Web services that are consumed from a J2ME application and performed performance and costing tests for my MSC. To develop the RESTful/SOAP based Web services, I used the wizard functionality in Netbeans. It uses JAX-RS to implement the REST web services.

404 when calling Jersey 2 REST endpoint on Glassfish

人走茶凉 提交于 2020-01-01 07:22:52
问题 This is my web.xml <servlet> <servlet-name>Simulator HTTP API</servlet-name> <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Simulator HTTP API</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> </web-app> and this is my simple web service: @Path("partner") public class PartnerAPI { @Path("/mt") @GET @Produces(MediaType.TEXT_PLAIN) public String sendMT() { return "Sent"; }

404 when calling Jersey 2 REST endpoint on Glassfish

独自空忆成欢 提交于 2020-01-01 07:22:47
问题 This is my web.xml <servlet> <servlet-name>Simulator HTTP API</servlet-name> <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Simulator HTTP API</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> </web-app> and this is my simple web service: @Path("partner") public class PartnerAPI { @Path("/mt") @GET @Produces(MediaType.TEXT_PLAIN) public String sendMT() { return "Sent"; }

How to use Jersey's internal routing mechanism to extract a class/method reference?

拥有回忆 提交于 2020-01-01 06:33:08
问题 I have a Jersey 1.8 application running. Jersey is running as a Servlet. I need to write a servlet filter that given a plain request/response, is able to figure out which REST resource/method will respond to the request and extract values from annotations. For example, imagine I have the following resource: @Path("/foo") @MyAnnotation("hello") public class FooResource { @GET @Path("/bar") @MyOtherAnnotation("world") public Response bar(){ ... } } When a request GET /foo/bar comes in, I need

How can I cleanly override the default ServiceLocator used by Jersey?

天大地大妈咪最大 提交于 2020-01-01 05:54:52
问题 I am developing an application that uses Jersey (2.5) as its REST front-end, and Jetty as embedded HTTP(S) server, both in a so-called "embedded" way, eg. without resorting to making .war and deploying it but through programmatic configuration of handlers, resources, injections... I would like to somehow override the HK2 ServiceLocator that is used on the server side by Jersey, or possibly provide this service locator with a parent for resolving dependencies that are defined outside of the

JAX-RS services in Google App Engine

做~自己de王妃 提交于 2020-01-01 05:51:30
问题 I'm developing a Google App Enigne application that uses some REST services and offers in turn web services. I'm using the GAE Eclipse plugin. I have 2 questions: What is the best JAX-RS library to use with GAE nowadays? I'd like to use Jersey because I understand is the most "standard" library (isn't it?), but I could use any in principle... I've been looking for documentation, but I've only found some samples in blogs that only work with old versions of Jersey, etc... For the web services I

JAX-RS services in Google App Engine

半城伤御伤魂 提交于 2020-01-01 05:51:26
问题 I'm developing a Google App Enigne application that uses some REST services and offers in turn web services. I'm using the GAE Eclipse plugin. I have 2 questions: What is the best JAX-RS library to use with GAE nowadays? I'd like to use Jersey because I understand is the most "standard" library (isn't it?), but I could use any in principle... I've been looking for documentation, but I've only found some samples in blogs that only work with old versions of Jersey, etc... For the web services I