se.l4.dust.jaxrs.internal.template.TemplateWriter Maven / Gradle / Ivy
package se.l4.dust.jaxrs.internal.template;
import java.io.IOException;
import java.io.OutputStream;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.Produces;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.ext.MessageBodyWriter;
import javax.ws.rs.ext.Provider;
import se.l4.dust.api.Context;
import se.l4.dust.api.template.Component;
import se.l4.dust.api.template.RenderingContext;
import se.l4.dust.api.template.Template;
import se.l4.dust.api.template.TemplateCache;
import se.l4.dust.api.template.TemplateOutputStream;
import se.l4.dust.api.template.TemplateRenderer;
import se.l4.dust.api.template.dom.ParsedTemplate;
import se.l4.dust.core.template.html.HtmlTemplateOutput;
import se.l4.dust.servlet.WebRenderingContext;
import com.google.inject.Inject;
/**
* {@link MessageBodyWriter} that renders the templates.
*
* @author Andreas Holstenson
*
*/
@Provider
@Produces({ MediaType.TEXT_HTML })
public class TemplateWriter
implements MessageBodyWriter
© 2015 - 2025 Weber Informatics LLC | Privacy Policy