Newer
Older
CactusServer / src / main / java / cactusServer / entities / URIAddressedEntity.java
y-ota on 12 Jun 2018 695 bytes 継承関係修正
package cactusServer.entities;

import java.net.URI;

public class URIAddressedEntity extends AddressedEntity {
	private URI uri;
//	private Entity body;
	
	private URIAddressedEntity() {
		// JSONDecode時の呼び出し用
	}
	
	public URIAddressedEntity(URI uri, Entity body) {
		setBody(body);
		setUri(uri);
	}
	
	public URIAddressedEntity(String str, Entity body) {
		setBody(body);
		setUri(URI.create(str));
	}
	
	public URI getUri() {
		return uri;
	}

	public void setUri(URI uri) {
		this.uri = uri;
	}

//	@Override
//	public Entity getBody() {
//		return body;
//	}
//
//	@Override
//	public void setBody(Entity body) {
//		this.body = body;
//	}
}