BAEL-595 : Review comments incorporated (#1125)
* WatchService vs. Apache Commons IO Mnitoring * Indentation fixed * Indentation fixed * JAX-RS API using Jersey [BAEL-558] * JAX-RS API using Jersey [BAEL-558] * Modifications made to remove xml * applicationContext.xml removed * All try catch moved to ExceptionMapper * fixes * review comments incorporated * module renamed * JAX-RS client [BAEL-595] * jersey-core dependency removed * assert changed to assertEquals * messagebody readers and writers removed * pom dependency corrected and other minor changes * Jersey version changed and toString() changed to valueOf()
This commit is contained in:
committed by
Sunil Mogadati
parent
4077ee29c5
commit
178f49e485
@@ -18,7 +18,7 @@ public class RestClient {
|
||||
}
|
||||
|
||||
public Employee getJsonEmployee(int id) {
|
||||
return client.target(REST_URI).path(new Integer(id).toString()).request(MediaType.APPLICATION_JSON).get(Employee.class);
|
||||
return client.target(REST_URI).path(String.valueOf(id)).request(MediaType.APPLICATION_JSON).get(Employee.class);
|
||||
}
|
||||
|
||||
public Response createXmlEmployee(Employee emp) {
|
||||
@@ -26,6 +26,6 @@ public class RestClient {
|
||||
}
|
||||
|
||||
public Employee getXmlEmployee(int id) {
|
||||
return client.target(REST_URI).path(new Integer(id).toString()).request(MediaType.APPLICATION_XML).get(Employee.class);
|
||||
return client.target(REST_URI).path(String.valueOf(id)).request(MediaType.APPLICATION_XML).get(Employee.class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user