so far, I’m returning html my home page by:
@GET
@Produces({MediaType.TEXT_HTML})
public String viewHome()
{
return "<html>...</html>";
}
what I want to do is return home.html itself and not copying its contents and returning the string instead.
How do I do this? thanks 🙂
You can just return an instance of
java.io.InputStreamorjava.io.Reader— JAX-RS will do the right thing.