All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.inkstand.halite.rs.HtmlMessageBodyWriter Maven / Gradle / Ivy

package io.inkstand.halite.rs;

import java.net.URL;

import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.ext.MessageBodyWriter;
import javax.ws.rs.ext.Provider;

import io.inkstand.halite.Resource;

/**
 * {@link MessageBodyWriter} for writing halite {@link Resource}s as HTML using XSLTransformation.
 * 
 * @author Gerald Mücke
 *
 */
@Provider
@Produces({ MediaType.TEXT_HTML })
public class HtmlMessageBodyWriter extends OutputTransformMessageBodyWriter {

    @Override
    protected URL getTemplate() {
        return getClass().getResource("/templates/html.xsl");
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy