Reverting changes to API

revert-dabc3590
Megala 8 years ago
parent 5e3bead760
commit 7478dc4173

@ -35,7 +35,6 @@ import org.wso2.carbon.device.mgt.mobile.windows.api.services.ConfigurationMgtSe
import javax.jws.WebService;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import java.util.ArrayList;
import java.util.List;
@ -136,8 +135,8 @@ public class ConfigurationMgtServiceImpl implements ConfigurationMgtService {
@GET
@Path("/license")
@Produces(MediaType.TEXT_PLAIN)
public Response getLicense(@HeaderParam("If-Modified-Since") String ifModifiedSince) {
public Response getLicense(
@HeaderParam("If-Modified-Since") String ifModifiedSince) {
License license;
try {
license =
@ -150,7 +149,7 @@ public class ConfigurationMgtServiceImpl implements ConfigurationMgtService {
throw new UnexpectedServerErrorException(
new ErrorResponse.ErrorResponseBuilder().setCode(500l).setMessage(msg).build());
}
return Response.status(Response.Status.OK).entity((license == null) ? null : license.getText()).build();
return Response.status(Response.Status.OK).entity(license).build();
}
}

Loading…
Cancel
Save