Search in sources :

Example 1 with Viewable

use of org.apache.stanbol.commons.viewable.Viewable in project stanbol by apache.

the class ContentItemResource method get.

@GET
@Produces(TEXT_HTML)
public Response get(@Context HttpHeaders headers) {
    ResponseBuilder rb = Response.ok(new Viewable("index", this));
    rb.header(HttpHeaders.CONTENT_TYPE, TEXT_HTML + "; charset=utf-8");
    //        addCORSOrigin(servletContext,rb, headers);
    return rb.build();
}
Also used : Viewable(org.apache.stanbol.commons.viewable.Viewable) ResponseBuilder(javax.ws.rs.core.Response.ResponseBuilder) Produces(javax.ws.rs.Produces) GET(javax.ws.rs.GET)

Aggregations

GET (javax.ws.rs.GET)1 Produces (javax.ws.rs.Produces)1 ResponseBuilder (javax.ws.rs.core.Response.ResponseBuilder)1 Viewable (org.apache.stanbol.commons.viewable.Viewable)1