Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

Commit

Permalink
configure @produces on resources for java5 support. The order of prov…
Browse files Browse the repository at this point in the history
…iders might be different in each JVM due to the unordered set in which they are stored. Configuring a specific @produces helps Wink choose the right provider.  Incomplete test code, in other words.

git-svn-id: https://svn.apache.org/repos/asf/incubator/wink/trunk@1029866 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Michael Rheinheimer committed Nov 1, 2010
1 parent ec7c580 commit 36a58cd
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.SecurityContext;

import org.apache.wink.itest.securitycontext.xml.SecurityContextInfo;

@Path("/context/securitycontext/bean")
@Produces(MediaType.APPLICATION_XML)
public class SecurityContextBeanResource {

private SecurityContext s = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.SecurityContext;

import org.apache.wink.itest.securitycontext.xml.SecurityContextInfo;

@Path("/context/securitycontext/constructor")
@Produces(MediaType.APPLICATION_XML)
public class SecurityContextConstructorResource {

final private SecurityContext secContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.SecurityContext;

import org.apache.wink.itest.securitycontext.xml.SecurityContextInfo;

@Path("/context/securitycontext/field")
@Produces(MediaType.APPLICATION_XML)
public class SecurityContextFieldResource {

@Context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;

@Path("/context/securitycontext/notbeanmethod")
@Produces(MediaType.APPLICATION_XML)
public class SecurityContextNotBeanMethodResource {

private SecurityContext s = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.SecurityContext;

import org.apache.wink.itest.securitycontext.xml.SecurityContextInfo;

@Path("/context/securitycontext/param")
@Produces(MediaType.APPLICATION_XML)
public class SecurityContextParamResource {

public SecurityContextParamResource() {
Expand Down

0 comments on commit 36a58cd

Please sign in to comment.