protected Response getContent ( final String rangeValue , final int limit , final RdfStream rdfStream , final FedoraResource resource ) throws IOException { final RdfNamespacedStream outputStream ; if ( resource instanceof FedoraBinary ) { return getBinaryContent ( rangeValue , resource ) ; } else { outputStream = new RdfNamespacedStream ( new DefaultRdfStream ( rdfStream . topic ( ) , concat ( rdfStream , getResourceTriples ( limit , resource ) ) ) , namespaceRegistry . getNamespaces ( ) ) ; } setVaryAndPreferenceAppliedHeaders ( servletResponse , prefer , resource ) ; return ok ( outputStream ) . build ( ) ; }
This method returns an HTTP response with content body appropriate to the following arguments .