diff --git a/src/main/java/ArchitectureTest/Customer.java b/src/main/java/ArchitectureTest/Customer.java index 9fc61dc..b240738 100644 --- a/src/main/java/ArchitectureTest/Customer.java +++ b/src/main/java/ArchitectureTest/Customer.java @@ -4,12 +4,11 @@ public class Customer { private URI companyURI; - private String office; private String address; Customer(String company, String address) { companyURI = URI.create("/companies/" + company); - this.office = address; + this.address = address; } public URI getCompanyURI() { @@ -20,19 +19,11 @@ this.companyURI = companyURI; } - public String getOffice() { - return office; - } - - public void setOffice(String address) { - this.office = address; - } - public String getAddress() { return address; } - public void setAddress(String cusAddress) { - this.address = cusAddress; + public void setAddress(String address) { + this.address = address; } } diff --git a/src/main/java/ArchitectureTest/CustomerRest.java b/src/main/java/ArchitectureTest/CustomerRest.java index 7e85430..2b2346b 100644 --- a/src/main/java/ArchitectureTest/CustomerRest.java +++ b/src/main/java/ArchitectureTest/CustomerRest.java @@ -22,18 +22,18 @@ Customers.getInstance().getCustomers().put(name, new Customer(office, address)); System.out.println(Customers.getInstance().getCustomers()); } - - @Path("/{customerId}/office") - @GET - public String getOffice(@PathParam("customerId") String id) { - return Customers.getInstance().getCustomers().get(id).getOffice(); - } - - @Path("/{customerId}/office") - @PUT - public void updateOffice(@PathParam("customerId") String id, @FormParam("office") String office) { - Customers.getInstance().getCustomers().get(id).setOffice(office); - } +// +// @Path("/{customerId}/office") +// @GET +// public String getOffice(@PathParam("customerId") String id) { +// return Customers.getInstance().getCustomers().get(id).getOffice(); +// } +// +// @Path("/{customerId}/office") +// @PUT +// public void updateOffice(@PathParam("customerId") String id, @FormParam("office") String office) { +// Customers.getInstance().getCustomers().get(id).setOffice(office); +// } @Path("/{customerId}/address") @GET diff --git a/src/main/java/Proto/A.java b/src/main/java/Proto/A.java new file mode 100644 index 0000000..8ca3795 --- /dev/null +++ b/src/main/java/Proto/A.java @@ -0,0 +1,5 @@ +package Proto; + +public class A { + +} diff --git a/src/main/java/Proto/B.java b/src/main/java/Proto/B.java new file mode 100644 index 0000000..bd01afb --- /dev/null +++ b/src/main/java/Proto/B.java @@ -0,0 +1,5 @@ +package Proto; + +public class B { + +} diff --git a/src/main/java/Proto/C.java b/src/main/java/Proto/C.java new file mode 100644 index 0000000..3e7755b --- /dev/null +++ b/src/main/java/Proto/C.java @@ -0,0 +1,5 @@ +package Proto; + +public class C { + +} diff --git a/src/main/java/Proto/D.java b/src/main/java/Proto/D.java new file mode 100644 index 0000000..c457b4f --- /dev/null +++ b/src/main/java/Proto/D.java @@ -0,0 +1,5 @@ +package Proto; + +public class D { + +}