Newer
Older
CactusServer / src / main / java / cactusServer / entities / URIAddressedEntity.java
package cactusServer.entities;

import java.net.URI;

public class URIAddressedEntity{
	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;
	}

	public Entity getBody() {
		return body;
	}

	public void setBody(Entity body) {
		this.body = body;
	}
}