@GET @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_HOME_PAGE }) @ClientResponseType(entityType = String.class) public Response homePage();
if (responseHint != null) final Class responseHintReturnType = responseHint.entityType(); if (isVoidReturnType(responseHintReturnType)) final Class<? extends EntityTypeFactory> entityTypeFactory = responseHint.entityTypeFactory(); return new EntityExtractor()
@GET @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_USER }) @ClientResponseType(entityType = String.class) public Response user();
@GET @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_HOME_PAGE }) @ClientResponseType(entityType = String.class) public Response homePage();
@GET @Path("/") @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_TYPE_LIST }) @ClientResponseType(entityType = String.class) public abstract Response domainTypes();
@GET @Path("/") @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_LIST, RestfulMediaType.APPLICATION_JSON_ERROR }) @ClientResponseType(entityType = String.class) public Response services();
@GET @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_VERSION }) @ClientResponseType(entityType = String.class) public Response version();
@GET @Path("/") @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_TYPE_LIST }) @ClientResponseType(entityType = String.class) public abstract Response domainTypes();
/** * Not part of the RO spec; this resource always returns 401, and is * intended to be redirected to if credentials cannot be obtained. */ @GET @Path("/notAuthenticated") @Produces({ MediaType.APPLICATION_JSON }) @ClientResponseType(entityType = String.class) public Response notAuthenticated();
@GET @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_VERSION }) @ClientResponseType(entityType = String.class) public Response version();
@GET @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_USER }) @ClientResponseType(entityType = String.class) public Response user();
@GET @Path("/{domainType}") @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_DOMAIN_TYPE }) @ClientResponseType(entityType = String.class) public abstract Response domainType(@PathParam("domainType") final String domainType);
@GET @Path("/{domainType}") @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_DOMAIN_TYPE }) @ClientResponseType(entityType = String.class) public abstract Response domainType(@PathParam("domainType") final String domainType);
@GET @Path("/{serviceId}") @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_DOMAIN_OBJECT, RestfulMediaType.APPLICATION_JSON_ERROR }) @ClientResponseType(entityType = String.class) public Response service(@PathParam("serviceId") final String serviceId);
@GET @Path("/") @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_LIST, RestfulMediaType.APPLICATION_JSON_ERROR }) @ClientResponseType(entityType = String.class) public Response services();
/** * Not part of the RO spec; this resource always returns 401, and is * intended to be redirected to if credentials cannot be obtained. */ @GET @Path("/notAuthenticated") @Produces({ MediaType.APPLICATION_JSON }) @ClientResponseType(entityType = String.class) public Response notAuthenticated();
@GET @Path("/{serviceId}/actions/{actionId}") @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_OBJECT_ACTION, RestfulMediaType.APPLICATION_JSON_ERROR }) @ClientResponseType(entityType = String.class) public Response actionPrompt(@PathParam("serviceId") final String serviceId, @PathParam("actionId") final String actionId);
@GET @Path("/{domainType}/properties/{propertyId}") @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_PROPERTY_DESCRIPTION }) @ClientResponseType(entityType = String.class) public abstract Response typeProperty(@PathParam("domainType") final String domainType, @PathParam("propertyId") final String propertyId);
@GET @Path("/{domainType}/collections/{collectionId}") @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_COLLECTION_DESCRIPTION }) @ClientResponseType(entityType = String.class) public abstract Response typeCollection(@PathParam("domainType") final String domainType, @PathParam("collectionId") final String collectionId);
@DELETE @Path("/{oid}/properties/{propertyId}") @Produces({ MediaType.APPLICATION_JSON, RestfulMediaType.APPLICATION_JSON_ERROR }) @ClientResponseType(entityType = String.class) public Response clearProperty(@PathParam("oid") final String oidStr, @PathParam("propertyId") final String propertyId);