Questions tagged [apache-wink]

Apache Wink is a simple yet solid framework for building RESTful Web services. It is comprised of a Server module and a Client module for developing and consuming RESTful Web services.

Apache Wink is a simple yet solid framework for building RESTful Web services. It is comprised of a Server module and a Client module for developing and consuming RESTful Web services.

The Wink Server module is a complete implementation of the JAX-RS v1.1 specification. On top of this implementation, the Wink Server module provides a set of additional features that were designed to facilitate the development of RESTful Web services.

The Wink Client module is a Java based framework that provides functionality for communicating with RESTful Web services. The framework is built on top of the JDK HttpURLConnection and adds essential features that facilitate the development of such client applications.

124 questions
7
votes
1 answer

How to write single JAX-RS resource for variable number of path parameters

I have been writing a JAX-RS based ReST application using Apache Wink and I understood the concept of association between path params to resource handle class. Here I see that, We can define paths using @Path annotation and corresponding resource…
Raghavendra Nilekani
  • 386
  • 2
  • 10
  • 21
7
votes
4 answers

Override Jackson Object Mapper properties on Websphere 8.5.5 using Apache Wink

We are using IBM(s) bundled Apache Wink to offer JAXRS endpoints for our application. We are coding towards Websphere 8.5.5. Since we are servlet 3.0 compliant we use the 'programmatic' way of configuring the JaxRS application, meaning no entries in…
javapapo
  • 1,237
  • 14
  • 23
6
votes
1 answer

REST service not being registered in Apache wink with Spring and Maven

I have a Maven project with the dependencies listed below: wink.version = 1.1.3-incubating and spring.version = 3.0.5.RELEASE Application Context in Spring includes:
German Attanasio
  • 17,275
  • 7
  • 44
  • 61
6
votes
1 answer

Share variables between JAX-RS requests

I have what I think is a very basic question about JAX-RS but I somehow can't easily find the answer. I am trying to refactor a REST service which uses a "standard" Javax servlet -- routing requests to methods by hand -- into an "cleaner" JAX-RS…
Frederic Fortier
  • 740
  • 6
  • 21
6
votes
3 answers

How to get query param as HashMap

I want to be able pass to my server a GET request suh as: http://example.com/?a[foo]=1&a[bar]=15&b=3 And when I get the query param 'a', it should be parsed as HashMap like so: {'foo':1, 'bar':15} EDIT: Ok, to be clear, here is what I am trying…
Martin
  • 1,038
  • 14
  • 16
5
votes
2 answers

Validating JAX-RS (Apache Wink) resources with JSR303?

Is it possible to make effective use of JSR303 (Bean Validation) annotations on JAX-RS resources? So for example, if I have a resource member that I've annotated @NotEmpty, generate an error back to the client if this constraint is not met? This…
brabster
  • 39,706
  • 25
  • 137
  • 182
5
votes
2 answers

Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407" via https

I try to connect to a server via https that requires authentication.Moreover, I have an http proxy in the middle that also requires authentication. I use ProxyAuthSecurityHandler to authenticate with the proxy and BasicAuthSecurityHandler to…
4
votes
3 answers

How do I register the Jackson provider with the Wink client?

I'm trying to set up a toy application (which may turn in to a real application someday). I'm running into a problem with Wink and Jackson. I've got two applications: one runs wink-server on jetty and seems to be providing some JSON data just fine;…
jacobko
  • 8,090
  • 7
  • 29
  • 36
4
votes
2 answers

Returning an excel document via a Java REST service with Apache Wink

I need to return a Microsoft Excel file from a Java REST service. I'm using WebSphere 8.5 which inherently uses Apache Wink as it's JAX-RS implementation; that's a requirement which I can not change. I am also using Java 7 JDK. Here is the error…
risingTide
  • 1,356
  • 7
  • 20
  • 50
3
votes
1 answer

Find root cause of "net.sf.json.JSONException: JSON does not allow non-finite numbers"

I am creating a relatively complex and large structure encoded in json to send to a Web service. I use plain java and Apache Wink for JSON. Most requests go well but in one particular case I receive the following error: net.sf.json.JSONException:…
user1083319
  • 31
  • 1
  • 2
3
votes
2 answers

Can I implement Hibernate (JSR 303) method validation with apache wink (JAX/RS)

I am currently investigating using the hibernate validators support for Method validation using JSR 303 annotations. An initial attempt tried to wrap the resources with a proxy (generated using cglib) that performed the validation, however, this…
3
votes
1 answer

Swagger UI Not Displaying Any Content On index.html Page

UPDATED with SOLUTION below!!! ////////////////////////////////////////////////////////////// Thanks to the advice of Ron below I slightly modified my setup to use BeanConfig instead of SwaggerConfig and got this working. In order to do this I had…
risingTide
  • 1,356
  • 7
  • 20
  • 50
3
votes
4 answers

Apache Wink Accept() fails with NullPointerException

I am deploying my RESTful web application on jBoss EAP 6.1 (7.2.1Final) with Wink 1.2 and getting following exception on all the request; JBWEB000070: exception
SJunejo
  • 1,226
  • 3
  • 22
  • 35
3
votes
2 answers

How to handle CORS in Apache Wink?

How can I apply CORS in Apache Wink? What I basically need is adding an Access-Control-Allow-Origin: * header to every response send from Wink (where we will replace the * for the allowed origins).
Jos de Jong
  • 5,819
  • 3
  • 32
  • 51
3
votes
2 answers

JAX-RS client/server application using JSON and Wink

I'd like to implement JAX-RS server (on WebSphere Application Server) and client applications using JSON (Jackson convertor) format and Wink provider. Do i need to use JAXB annotations for my DTO class that would be passed to and from the REST…
Erwin
  • 111
  • 1
  • 6
1
2 3
8 9