Skip to content
Permalink
Browse files

Small cleanup

  • Loading branch information...
ajs6f committed Oct 30, 2014
1 parent 66e056f commit b851e432f13a9636e1b451771ddd4c89803aedc7
@@ -130,8 +130,7 @@

protected abstract void addResourceHttpHeaders(FedoraResource resource);

protected Response getContent(final MultiPrefer prefer,
final String rangeValue,
protected Response getContent(final String rangeValue,
final RdfStream rdfStream) throws IOException {
if (resource() instanceof FedoraBinary) {

@@ -181,7 +181,7 @@ public Response describe(@HeaderParam("Range") final String rangeValue) throws I
final RdfStream rdfStream = new RdfStream().session(session)
.topic(translator().reverse().convert(resource()).asNode());

return getContent(prefer, rangeValue, rdfStream);
return getContent(rangeValue, rdfStream);

}

@@ -144,7 +144,7 @@ public Response getVersion(@HeaderParam("Range") final String rangeValue) throws
checkCacheControlHeaders(request, servletResponse, resource(), session);
final RdfStream rdfStream = new RdfStream().session(session).topic(
translator().reverse().convert(resource()).asNode());
return getContent(prefer, rangeValue, rdfStream);
return getContent(rangeValue, rdfStream);
}

protected FedoraResource unversionedResource() {

0 comments on commit b851e43

Please sign in to comment.
You can’t perform that action at this time.