Package ubic.gemma.rest.providers
Class WebApplicationExceptionMapperTest.CustomResource
- java.lang.Object
-
- ubic.gemma.rest.providers.WebApplicationExceptionMapperTest.CustomResource
-
- Enclosing class:
- WebApplicationExceptionMapperTest
@Path("/custom") public static class WebApplicationExceptionMapperTest.CustomResource extends Object
This is a very simplisitc example that produces two representation for the same resource.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebApplicationExceptionMapperTest.CustomResource.MyModel
-
Constructor Summary
Constructors Constructor Description CustomResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebApplicationExceptionMapperTest.CustomResource.MyModel
indexAsJson()
String
indexAsString()
-
-
-
Method Detail
-
indexAsJson
@GET @Produces("application/json") public WebApplicationExceptionMapperTest.CustomResource.MyModel indexAsJson()
-
indexAsString
@GET @Produces("text/plain") public String indexAsString()
-
-