package cactusServer.entities; import java.net.URI; public class URIAddressedEntity extends AddressedEntity{ private URI uri; private URIAddressedEntity() { // JSONDecode時の呼び出し用 } public URIAddressedEntity(URI uri, Entity body) { super(body); setUri(uri); } public URIAddressedEntity(String str, Entity body) { super(body); setUri(URI.create(str)); } public URI getUri() { return uri; } public void setUri(URI uri) { this.uri = uri; } }