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:
parent
4077ee29c5
commit
178f49e485
|
@ -9,7 +9,7 @@
|
|||
<packaging>war</packaging>
|
||||
|
||||
<properties>
|
||||
<jersey.version>2.25</jersey.version>
|
||||
<jersey.version>2.25.1</jersey.version>
|
||||
<jcl.slf4j.version>1.7.22</jcl.slf4j.version>
|
||||
<logback.version>1.1.8</logback.version>
|
||||
<junit.version>4.12</junit.version>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue