diff --git a/src/main/java/cactusServer/entities/URIAddressedEntity.java b/src/main/java/cactusServer/entities/URIAddressedEntity.java index 864c840..96a2444 100644 --- a/src/main/java/cactusServer/entities/URIAddressedEntity.java +++ b/src/main/java/cactusServer/entities/URIAddressedEntity.java @@ -2,21 +2,20 @@ import java.net.URI; -public class URIAddressedEntity{ +public class URIAddressedEntity extends AddressedEntity { private URI uri; - private Entity body; private URIAddressedEntity() { // JSONDecode���̌Ăяo���p } public URIAddressedEntity(URI uri, Entity body) { - setBody(body); + super(body); setUri(uri); } public URIAddressedEntity(String str, Entity body) { - setBody(body); + super(body); setUri(URI.create(str)); } @@ -28,11 +27,4 @@ this.uri = uri; } - public Entity getBody() { - return body; - } - - public void setBody(Entity body) { - this.body = body; - } }