[
https://issues.apache.org/jira/browse/SOLR-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470729
]
Hoss Man commented on SOLR-142:
-------------------------------
Ryan, i really like the idea of a RawResponseWriter, and your
GetAdminFileRequestHandler ... for a hwile now i've been thinking that it would
be good to change the admin/gettableFiles section of hte solrconfig so that...
* files could have a default content-type specified
* direcotries could be listed (with a content-type to assume for all files
in that directory)
...and then replace get-file.jsp with a servlet that used the extra path info
to find the filename, and supported query args to override the default
content-type with text/plain
my motivation being to help with things like SOLR-75 where we sometimes need
the schema as XML, but othertimes we want to return it as plain text ... and to
let the XmlResponseWriter start supporting useful params telling it what
stylesheet from the xslt directory to include in the response (for client site
styling using a stylesheet served from the solr server)
-- but i like your idea of a RequestHandler/ResponseWriter better.
we should consier deprecating admin/gettableFiles completley, and moving the
info about what file are gettable directly into the init params for the
GetAdminFileRequestHandler (where it can also support the
content-type/direcotry stuff that i described)
in that case, we'd need to leave get-files.jsp where it is, so something still
supports the legacy admin/gettableFiles list of files.
> RawResponseWriter - replace /admin/get-file.jsp
> -----------------------------------------------
>
> Key: SOLR-142
> URL: https://issues.apache.org/jira/browse/SOLR-142
> Project: Solr
> Issue Type: Improvement
> Components: web gui
> Reporter: Ryan McKinley
> Priority: Trivial
> Attachments: SOLR-142-RawResponseWriter.patch
>
>
> A RawResponseWriter writes a ContentStream directly to the response.
> This is useful to spit back a file directly from solr. This implementation
> looks for a response property named "content" and sends it to the client. If
> it can't find one, it delegates the response to another ResponseWriter.
> As an example, I added a GetAdminFileRequestHandler to replace
> /admin/get-file.jsp
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.