[ 
https://issues.apache.org/jira/browse/SOLR-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470323
 ] 

Ryan McKinley commented on SOLR-142:
------------------------------------

The RawResponseWriter is configured by default (just like JSON etc)

One could create it explicitly and specify what 'base' response writer it 
should use (JSON etc)
 
 <queryResponseWriter name="raw" 
class="org.apache.solr.request.RawResponseWriter">
    <int name="base">JSON</int>
 </queryResponseWriter> 

- - - - - - - 

I added a GetAdminFileRequestHandler that is configured to use wt=raw by 
default.  I wanted to delete get-file.jsp, but it is needed to include:

<jsp:include page="get-file.jsp?file=admin-extra.html&optional=y" flush="true"/>

(which, by the way, spits out HTML in the middle of a table declaration)

- - - - - - - - -

I deleted raw-schema.jsp that did not appear to be referenced by anything

- - - - -  - - -

I could not help myself and added:  GetSystemPropertiesRequestHandler and 
deleted get-properties.jsp.  Unlike get-properties.jsp, 
GetSystemPropertiesRequestHandler  spits back properties formatted by the 
selected ResponseWriter.  It also added the ability to get a single property


> 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.

Reply via email to