diff --git a/src/main/java/cactusServer/entities/AddressedEntity.java b/src/main/java/cactusServer/entities/AddressedEntity.java index 2b3dc80..52c55fc 100644 --- a/src/main/java/cactusServer/entities/AddressedEntity.java +++ b/src/main/java/cactusServer/entities/AddressedEntity.java @@ -5,19 +5,22 @@ * @author r-isitani * */ -public class AddressedEntity { - private String URI; +public abstract class AddressedEntity { private Entity body; - public AddressedEntity(String URI, Entity body) { - this.URI = URI; + protected AddressedEntity() { + // JSONDecode���̌Ăяo���p + } + + public AddressedEntity(Entity body) { this.body = body; } - - public String getURI() { - return URI; - } + public Entity getBody() { return body; } + + public void setBody(Entity body) { + this.body = body; + } }