
li.rudin.mavenjs.servlet.handler.HandlerResult Maven / Gradle / Ivy
The newest version!
package li.rudin.mavenjs.servlet.handler;
import java.io.InputStream;
public class HandlerResult
{
public HandlerResult(){}
public HandlerResult(String contentType, byte[] content)
{
this.contentType = contentType;
this.content = content;
}
public HandlerResult(String contentType, InputStream stream)
{
this.contentType = contentType;
this.stream = stream;
}
private String contentType = "application/octet-stream";
private byte[] content;
private InputStream stream;
public String getContentType()
{
return contentType;
}
public void setContentType(String contentType)
{
this.contentType = contentType;
}
public byte[] getContent()
{
return content;
}
public void setContent(byte[] content)
{
this.content = content;
}
public InputStream getStream()
{
return stream;
}
public void setStream(InputStream stream)
{
this.stream = stream;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy