Newer
Older
CactusServer / src / main / java / cactusServer / entities / URIAddressedEntity.java
y-ota on 12 Jun 2018 512 bytes s
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;
	}

}