[7588] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
| 2 | <!--NewPage--> |
---|
| 3 | <HTML> |
---|
| 4 | <HEAD> |
---|
| 5 | <!-- Generated by javadoc (build 1.6.0_24) on Mon Jun 25 15:26:25 EDT 2012 --> |
---|
| 6 | <META http-equiv="Content-Type" content="text/html; charset=utf-8"> |
---|
| 7 | <TITLE> |
---|
| 8 | XSLTResponseWriter (Solr 4.0.0-ALPHA API) |
---|
| 9 | </TITLE> |
---|
| 10 | |
---|
| 11 | <META NAME="date" CONTENT="2012-06-25"> |
---|
| 12 | |
---|
| 13 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
---|
| 14 | |
---|
| 15 | <SCRIPT type="text/javascript"> |
---|
| 16 | function windowTitle() |
---|
| 17 | { |
---|
| 18 | if (location.href.indexOf('is-external=true') == -1) { |
---|
| 19 | parent.document.title="XSLTResponseWriter (Solr 4.0.0-ALPHA API)"; |
---|
| 20 | } |
---|
| 21 | } |
---|
| 22 | </SCRIPT> |
---|
| 23 | <NOSCRIPT> |
---|
| 24 | </NOSCRIPT> |
---|
| 25 | |
---|
| 26 | </HEAD> |
---|
| 27 | |
---|
| 28 | <BODY BGCOLOR="white" onload="windowTitle();"> |
---|
| 29 | <HR> |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | <!-- ========= START OF TOP NAVBAR ======= --> |
---|
| 33 | <A NAME="navbar_top"><!-- --></A> |
---|
| 34 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
---|
| 35 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 36 | <TR> |
---|
| 37 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 38 | <A NAME="navbar_top_firstrow"><!-- --></A> |
---|
| 39 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 40 | <TR ALIGN="center" VALIGN="top"> |
---|
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 42 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 43 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/XSLTResponseWriter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 48 | </TR> |
---|
| 49 | </TABLE> |
---|
| 50 | </TD> |
---|
| 51 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 52 | </EM> |
---|
| 53 | </TD> |
---|
| 54 | </TR> |
---|
| 55 | |
---|
| 56 | <TR> |
---|
| 57 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 58 | <A HREF="../../../../org/apache/solr/response/XMLWriter.html" title="class in org.apache.solr.response"><B>PREV CLASS</B></A> |
---|
| 59 | NEXT CLASS</FONT></TD> |
---|
| 60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 61 | <A HREF="../../../../index.html?org/apache/solr/response/XSLTResponseWriter.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="XSLTResponseWriter.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 63 | <SCRIPT type="text/javascript"> |
---|
| 64 | <!-- |
---|
| 65 | if(window==top) { |
---|
| 66 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 67 | } |
---|
| 68 | //--> |
---|
| 69 | </SCRIPT> |
---|
| 70 | <NOSCRIPT> |
---|
| 71 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 72 | </NOSCRIPT> |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | </FONT></TD> |
---|
| 76 | </TR> |
---|
| 77 | <TR> |
---|
| 78 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 79 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 81 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 82 | </TR> |
---|
| 83 | </TABLE> |
---|
| 84 | <A NAME="skip-navbar_top"></A> |
---|
| 85 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
| 86 | |
---|
| 87 | <HR> |
---|
| 88 | <!-- ======== START OF CLASS DATA ======== --> |
---|
| 89 | <H2> |
---|
| 90 | <FONT SIZE="-1"> |
---|
| 91 | org.apache.solr.response</FONT> |
---|
| 92 | <BR> |
---|
| 93 | Class XSLTResponseWriter</H2> |
---|
| 94 | <PRE> |
---|
| 95 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> |
---|
| 96 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.solr.response.XSLTResponseWriter</B> |
---|
| 97 | </PRE> |
---|
| 98 | <DL> |
---|
| 99 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/apache/solr/response/QueryResponseWriter.html" title="interface in org.apache.solr.response">QueryResponseWriter</A>, <A HREF="../../../../org/apache/solr/util/plugin/NamedListInitializedPlugin.html" title="interface in org.apache.solr.util.plugin">NamedListInitializedPlugin</A></DD> |
---|
| 100 | </DL> |
---|
| 101 | <HR> |
---|
| 102 | <DL> |
---|
| 103 | <DT><PRE>public class <B>XSLTResponseWriter</B><DT>extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../org/apache/solr/response/QueryResponseWriter.html" title="interface in org.apache.solr.response">QueryResponseWriter</A></DL> |
---|
| 104 | </PRE> |
---|
| 105 | |
---|
| 106 | <P> |
---|
| 107 | QueryResponseWriter which captures the output of the XMLWriter |
---|
| 108 | (in memory for now, not optimal performancewise), and applies an XSLT transform |
---|
| 109 | to it. |
---|
| 110 | <P> |
---|
| 111 | |
---|
| 112 | <P> |
---|
| 113 | <HR> |
---|
| 114 | |
---|
| 115 | <P> |
---|
| 116 | <!-- =========== FIELD SUMMARY =========== --> |
---|
| 117 | |
---|
| 118 | <A NAME="field_summary"><!-- --></A> |
---|
| 119 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 120 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 121 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 122 | <B>Field Summary</B></FONT></TH> |
---|
| 123 | </TR> |
---|
| 124 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 125 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 126 | <CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
| 127 | <TD><CODE><B><A HREF="../../../../org/apache/solr/response/XSLTResponseWriter.html#CONTEXT_TRANSFORMER_KEY">CONTEXT_TRANSFORMER_KEY</A></B></CODE> |
---|
| 128 | |
---|
| 129 | <BR> |
---|
| 130 | </TD> |
---|
| 131 | </TR> |
---|
| 132 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 133 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 134 | <CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
| 135 | <TD><CODE><B><A HREF="../../../../org/apache/solr/response/XSLTResponseWriter.html#DEFAULT_CONTENT_TYPE">DEFAULT_CONTENT_TYPE</A></B></CODE> |
---|
| 136 | |
---|
| 137 | <BR> |
---|
| 138 | </TD> |
---|
| 139 | </TR> |
---|
| 140 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 141 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 142 | <CODE>static int</CODE></FONT></TD> |
---|
| 143 | <TD><CODE><B><A HREF="../../../../org/apache/solr/response/XSLTResponseWriter.html#XSLT_CACHE_DEFAULT">XSLT_CACHE_DEFAULT</A></B></CODE> |
---|
| 144 | |
---|
| 145 | <BR> |
---|
| 146 | </TD> |
---|
| 147 | </TR> |
---|
| 148 | </TABLE> |
---|
| 149 | <A NAME="fields_inherited_from_class_org.apache.solr.response.QueryResponseWriter"><!-- --></A> |
---|
| 150 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 151 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 152 | <TH ALIGN="left"><B>Fields inherited from interface org.apache.solr.response.<A HREF="../../../../org/apache/solr/response/QueryResponseWriter.html" title="interface in org.apache.solr.response">QueryResponseWriter</A></B></TH> |
---|
| 153 | </TR> |
---|
| 154 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 155 | <TD><CODE><A HREF="../../../../org/apache/solr/response/QueryResponseWriter.html#CONTENT_TYPE_TEXT_ASCII">CONTENT_TYPE_TEXT_ASCII</A>, <A HREF="../../../../org/apache/solr/response/QueryResponseWriter.html#CONTENT_TYPE_TEXT_UTF8">CONTENT_TYPE_TEXT_UTF8</A>, <A HREF="../../../../org/apache/solr/response/QueryResponseWriter.html#CONTENT_TYPE_XML_UTF8">CONTENT_TYPE_XML_UTF8</A></CODE></TD> |
---|
| 156 | </TR> |
---|
| 157 | </TABLE> |
---|
| 158 | |
---|
| 159 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
| 160 | |
---|
| 161 | <A NAME="constructor_summary"><!-- --></A> |
---|
| 162 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 163 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 164 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 165 | <B>Constructor Summary</B></FONT></TH> |
---|
| 166 | </TR> |
---|
| 167 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 168 | <TD><CODE><B><A HREF="../../../../org/apache/solr/response/XSLTResponseWriter.html#XSLTResponseWriter()">XSLTResponseWriter</A></B>()</CODE> |
---|
| 169 | |
---|
| 170 | <BR> |
---|
| 171 | </TD> |
---|
| 172 | </TR> |
---|
| 173 | </TABLE> |
---|
| 174 | |
---|
| 175 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 176 | |
---|
| 177 | <A NAME="method_summary"><!-- --></A> |
---|
| 178 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 179 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 180 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 181 | <B>Method Summary</B></FONT></TH> |
---|
| 182 | </TR> |
---|
| 183 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 184 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 185 | <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
| 186 | <TD><CODE><B><A HREF="../../../../org/apache/solr/response/XSLTResponseWriter.html#getContentType(org.apache.solr.request.SolrQueryRequest, org.apache.solr.response.SolrQueryResponse)">getContentType</A></B>(<A HREF="../../../../org/apache/solr/request/SolrQueryRequest.html" title="interface in org.apache.solr.request">SolrQueryRequest</A> request, |
---|
| 187 | <A HREF="../../../../org/apache/solr/response/SolrQueryResponse.html" title="class in org.apache.solr.response">SolrQueryResponse</A> response)</CODE> |
---|
| 188 | |
---|
| 189 | <BR> |
---|
| 190 | Return the applicable Content Type for a request, this method |
---|
| 191 | must be thread safe.</TD> |
---|
| 192 | </TR> |
---|
| 193 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 194 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 195 | <CODE>protected <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/transform/Transformer.html?is-external=true" title="class or interface in javax.xml.transform">Transformer</A></CODE></FONT></TD> |
---|
| 196 | <TD><CODE><B><A HREF="../../../../org/apache/solr/response/XSLTResponseWriter.html#getTransformer(org.apache.solr.request.SolrQueryRequest)">getTransformer</A></B>(<A HREF="../../../../org/apache/solr/request/SolrQueryRequest.html" title="interface in org.apache.solr.request">SolrQueryRequest</A> request)</CODE> |
---|
| 197 | |
---|
| 198 | <BR> |
---|
| 199 | Get Transformer from request context, or from TransformerProvider.</TD> |
---|
| 200 | </TR> |
---|
| 201 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 202 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 203 | <CODE> void</CODE></FONT></TD> |
---|
| 204 | <TD><CODE><B><A HREF="../../../../org/apache/solr/response/XSLTResponseWriter.html#init(org.apache.solr.common.util.NamedList)">init</A></B>(<A HREF="../../../../org/apache/solr/common/util/NamedList.html" title="class in org.apache.solr.common.util">NamedList</A> n)</CODE> |
---|
| 205 | |
---|
| 206 | <BR> |
---|
| 207 | <code>init</code> will be called just once, immediately after creation.</TD> |
---|
| 208 | </TR> |
---|
| 209 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 210 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 211 | <CODE> void</CODE></FONT></TD> |
---|
| 212 | <TD><CODE><B><A HREF="../../../../org/apache/solr/response/XSLTResponseWriter.html#write(java.io.Writer, org.apache.solr.request.SolrQueryRequest, org.apache.solr.response.SolrQueryResponse)">write</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A> writer, |
---|
| 213 | <A HREF="../../../../org/apache/solr/request/SolrQueryRequest.html" title="interface in org.apache.solr.request">SolrQueryRequest</A> request, |
---|
| 214 | <A HREF="../../../../org/apache/solr/response/SolrQueryResponse.html" title="class in org.apache.solr.response">SolrQueryResponse</A> response)</CODE> |
---|
| 215 | |
---|
| 216 | <BR> |
---|
| 217 | Write a SolrQueryResponse, this method must be thread save.</TD> |
---|
| 218 | </TR> |
---|
| 219 | </TABLE> |
---|
| 220 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 221 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 222 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 223 | <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> |
---|
| 224 | </TR> |
---|
| 225 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 226 | <TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> |
---|
| 227 | </TR> |
---|
| 228 | </TABLE> |
---|
| 229 | |
---|
| 230 | <P> |
---|
| 231 | |
---|
| 232 | <!-- ============ FIELD DETAIL =========== --> |
---|
| 233 | |
---|
| 234 | <A NAME="field_detail"><!-- --></A> |
---|
| 235 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 236 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 237 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 238 | <B>Field Detail</B></FONT></TH> |
---|
| 239 | </TR> |
---|
| 240 | </TABLE> |
---|
| 241 | |
---|
| 242 | <A NAME="DEFAULT_CONTENT_TYPE"><!-- --></A><H3> |
---|
| 243 | DEFAULT_CONTENT_TYPE</H3> |
---|
| 244 | <PRE> |
---|
| 245 | public static final <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>DEFAULT_CONTENT_TYPE</B></PRE> |
---|
| 246 | <DL> |
---|
| 247 | <DL> |
---|
| 248 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.solr.response.XSLTResponseWriter.DEFAULT_CONTENT_TYPE">Constant Field Values</A></DL> |
---|
| 249 | </DL> |
---|
| 250 | <HR> |
---|
| 251 | |
---|
| 252 | <A NAME="CONTEXT_TRANSFORMER_KEY"><!-- --></A><H3> |
---|
| 253 | CONTEXT_TRANSFORMER_KEY</H3> |
---|
| 254 | <PRE> |
---|
| 255 | public static final <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>CONTEXT_TRANSFORMER_KEY</B></PRE> |
---|
| 256 | <DL> |
---|
| 257 | <DL> |
---|
| 258 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.solr.response.XSLTResponseWriter.CONTEXT_TRANSFORMER_KEY">Constant Field Values</A></DL> |
---|
| 259 | </DL> |
---|
| 260 | <HR> |
---|
| 261 | |
---|
| 262 | <A NAME="XSLT_CACHE_DEFAULT"><!-- --></A><H3> |
---|
| 263 | XSLT_CACHE_DEFAULT</H3> |
---|
| 264 | <PRE> |
---|
| 265 | public static final int <B>XSLT_CACHE_DEFAULT</B></PRE> |
---|
| 266 | <DL> |
---|
| 267 | <DL> |
---|
| 268 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.solr.response.XSLTResponseWriter.XSLT_CACHE_DEFAULT">Constant Field Values</A></DL> |
---|
| 269 | </DL> |
---|
| 270 | |
---|
| 271 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
| 272 | |
---|
| 273 | <A NAME="constructor_detail"><!-- --></A> |
---|
| 274 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 275 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 276 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 277 | <B>Constructor Detail</B></FONT></TH> |
---|
| 278 | </TR> |
---|
| 279 | </TABLE> |
---|
| 280 | |
---|
| 281 | <A NAME="XSLTResponseWriter()"><!-- --></A><H3> |
---|
| 282 | XSLTResponseWriter</H3> |
---|
| 283 | <PRE> |
---|
| 284 | public <B>XSLTResponseWriter</B>()</PRE> |
---|
| 285 | <DL> |
---|
| 286 | </DL> |
---|
| 287 | |
---|
| 288 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 289 | |
---|
| 290 | <A NAME="method_detail"><!-- --></A> |
---|
| 291 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 292 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 293 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 294 | <B>Method Detail</B></FONT></TH> |
---|
| 295 | </TR> |
---|
| 296 | </TABLE> |
---|
| 297 | |
---|
| 298 | <A NAME="init(org.apache.solr.common.util.NamedList)"><!-- --></A><H3> |
---|
| 299 | init</H3> |
---|
| 300 | <PRE> |
---|
| 301 | public void <B>init</B>(<A HREF="../../../../org/apache/solr/common/util/NamedList.html" title="class in org.apache.solr.common.util">NamedList</A> n)</PRE> |
---|
| 302 | <DL> |
---|
| 303 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/response/QueryResponseWriter.html#init(org.apache.solr.common.util.NamedList)">QueryResponseWriter</A></CODE></B></DD> |
---|
| 304 | <DD><code>init</code> will be called just once, immediately after creation. |
---|
| 305 | <p>The args are user-level initialization parameters that |
---|
| 306 | may be specified when declaring a response writer in |
---|
| 307 | solrconfig.xml |
---|
| 308 | <P> |
---|
| 309 | <DD><DL> |
---|
| 310 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/response/QueryResponseWriter.html#init(org.apache.solr.common.util.NamedList)">init</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/response/QueryResponseWriter.html" title="interface in org.apache.solr.response">QueryResponseWriter</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/util/plugin/NamedListInitializedPlugin.html#init(org.apache.solr.common.util.NamedList)">init</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/util/plugin/NamedListInitializedPlugin.html" title="interface in org.apache.solr.util.plugin">NamedListInitializedPlugin</A></CODE></DL> |
---|
| 311 | </DD> |
---|
| 312 | <DD><DL> |
---|
| 313 | </DL> |
---|
| 314 | </DD> |
---|
| 315 | </DL> |
---|
| 316 | <HR> |
---|
| 317 | |
---|
| 318 | <A NAME="getContentType(org.apache.solr.request.SolrQueryRequest, org.apache.solr.response.SolrQueryResponse)"><!-- --></A><H3> |
---|
| 319 | getContentType</H3> |
---|
| 320 | <PRE> |
---|
| 321 | public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getContentType</B>(<A HREF="../../../../org/apache/solr/request/SolrQueryRequest.html" title="interface in org.apache.solr.request">SolrQueryRequest</A> request, |
---|
| 322 | <A HREF="../../../../org/apache/solr/response/SolrQueryResponse.html" title="class in org.apache.solr.response">SolrQueryResponse</A> response)</PRE> |
---|
| 323 | <DL> |
---|
| 324 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/response/QueryResponseWriter.html#getContentType(org.apache.solr.request.SolrQueryRequest, org.apache.solr.response.SolrQueryResponse)">QueryResponseWriter</A></CODE></B></DD> |
---|
| 325 | <DD>Return the applicable Content Type for a request, this method |
---|
| 326 | must be thread safe. |
---|
| 327 | |
---|
| 328 | <p> |
---|
| 329 | QueryResponseWriter's must implement this method to return a valid |
---|
| 330 | HTTP Content-Type header for the request, that will logically |
---|
| 331 | correspond with the output produced by the write method. |
---|
| 332 | </p> |
---|
| 333 | <P> |
---|
| 334 | <DD><DL> |
---|
| 335 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/response/QueryResponseWriter.html#getContentType(org.apache.solr.request.SolrQueryRequest, org.apache.solr.response.SolrQueryResponse)">getContentType</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/response/QueryResponseWriter.html" title="interface in org.apache.solr.response">QueryResponseWriter</A></CODE></DL> |
---|
| 336 | </DD> |
---|
| 337 | <DD><DL> |
---|
| 338 | |
---|
| 339 | <DT><B>Returns:</B><DD>a Content-Type string, which may not be null.</DL> |
---|
| 340 | </DD> |
---|
| 341 | </DL> |
---|
| 342 | <HR> |
---|
| 343 | |
---|
| 344 | <A NAME="write(java.io.Writer, org.apache.solr.request.SolrQueryRequest, org.apache.solr.response.SolrQueryResponse)"><!-- --></A><H3> |
---|
| 345 | write</H3> |
---|
| 346 | <PRE> |
---|
| 347 | public void <B>write</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A> writer, |
---|
| 348 | <A HREF="../../../../org/apache/solr/request/SolrQueryRequest.html" title="interface in org.apache.solr.request">SolrQueryRequest</A> request, |
---|
| 349 | <A HREF="../../../../org/apache/solr/response/SolrQueryResponse.html" title="class in org.apache.solr.response">SolrQueryResponse</A> response) |
---|
| 350 | throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 351 | <DL> |
---|
| 352 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/response/QueryResponseWriter.html#write(java.io.Writer, org.apache.solr.request.SolrQueryRequest, org.apache.solr.response.SolrQueryResponse)">QueryResponseWriter</A></CODE></B></DD> |
---|
| 353 | <DD>Write a SolrQueryResponse, this method must be thread save. |
---|
| 354 | |
---|
| 355 | <p> |
---|
| 356 | Information about the request (in particular: formating options) may be |
---|
| 357 | obtained from <code>req</code> but the dominant source of information |
---|
| 358 | should be <code>rsp</code>. |
---|
| 359 | <p> |
---|
| 360 | There are no mandatory actions that write must perform. |
---|
| 361 | An empty write implementation would fulfill |
---|
| 362 | all interface obligations. |
---|
| 363 | </p> |
---|
| 364 | <P> |
---|
| 365 | <DD><DL> |
---|
| 366 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/response/QueryResponseWriter.html#write(java.io.Writer, org.apache.solr.request.SolrQueryRequest, org.apache.solr.response.SolrQueryResponse)">write</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/response/QueryResponseWriter.html" title="interface in org.apache.solr.response">QueryResponseWriter</A></CODE></DL> |
---|
| 367 | </DD> |
---|
| 368 | <DD><DL> |
---|
| 369 | |
---|
| 370 | <DT><B>Throws:</B> |
---|
| 371 | <DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 372 | </DD> |
---|
| 373 | </DL> |
---|
| 374 | <HR> |
---|
| 375 | |
---|
| 376 | <A NAME="getTransformer(org.apache.solr.request.SolrQueryRequest)"><!-- --></A><H3> |
---|
| 377 | getTransformer</H3> |
---|
| 378 | <PRE> |
---|
| 379 | protected <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/transform/Transformer.html?is-external=true" title="class or interface in javax.xml.transform">Transformer</A> <B>getTransformer</B>(<A HREF="../../../../org/apache/solr/request/SolrQueryRequest.html" title="interface in org.apache.solr.request">SolrQueryRequest</A> request) |
---|
| 380 | throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 381 | <DL> |
---|
| 382 | <DD>Get Transformer from request context, or from TransformerProvider. |
---|
| 383 | This allows either getContentType(...) or write(...) to instantiate the Transformer, |
---|
| 384 | depending on which one is called first, then the other one reuses the same Transformer |
---|
| 385 | <P> |
---|
| 386 | <DD><DL> |
---|
| 387 | </DL> |
---|
| 388 | </DD> |
---|
| 389 | <DD><DL> |
---|
| 390 | |
---|
| 391 | <DT><B>Throws:</B> |
---|
| 392 | <DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 393 | </DD> |
---|
| 394 | </DL> |
---|
| 395 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 396 | <HR> |
---|
| 397 | |
---|
| 398 | |
---|
| 399 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 400 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 401 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 402 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 403 | <TR> |
---|
| 404 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 405 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 406 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 407 | <TR ALIGN="center" VALIGN="top"> |
---|
| 408 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 409 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 410 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 411 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/XSLTResponseWriter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 412 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 413 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 414 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 415 | </TR> |
---|
| 416 | </TABLE> |
---|
| 417 | </TD> |
---|
| 418 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 419 | </EM> |
---|
| 420 | </TD> |
---|
| 421 | </TR> |
---|
| 422 | |
---|
| 423 | <TR> |
---|
| 424 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 425 | <A HREF="../../../../org/apache/solr/response/XMLWriter.html" title="class in org.apache.solr.response"><B>PREV CLASS</B></A> |
---|
| 426 | NEXT CLASS</FONT></TD> |
---|
| 427 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 428 | <A HREF="../../../../index.html?org/apache/solr/response/XSLTResponseWriter.html" target="_top"><B>FRAMES</B></A> |
---|
| 429 | <A HREF="XSLTResponseWriter.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 430 | <SCRIPT type="text/javascript"> |
---|
| 431 | <!-- |
---|
| 432 | if(window==top) { |
---|
| 433 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 434 | } |
---|
| 435 | //--> |
---|
| 436 | </SCRIPT> |
---|
| 437 | <NOSCRIPT> |
---|
| 438 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 439 | </NOSCRIPT> |
---|
| 440 | |
---|
| 441 | |
---|
| 442 | </FONT></TD> |
---|
| 443 | </TR> |
---|
| 444 | <TR> |
---|
| 445 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 446 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 447 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 448 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 449 | </TR> |
---|
| 450 | </TABLE> |
---|
| 451 | <A NAME="skip-navbar_bottom"></A> |
---|
| 452 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 453 | |
---|
| 454 | <HR> |
---|
| 455 | |
---|
| 456 | <address>Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.</address> |
---|
| 457 | <script src='../../../../prettify.js' type='text/javascript'></script> |
---|
| 458 | <script type='text/javascript'> |
---|
| 459 | (function(){ |
---|
| 460 | var oldonload = window.onload; |
---|
| 461 | if (typeof oldonload != 'function') { |
---|
| 462 | window.onload = prettyPrint; |
---|
| 463 | } else { |
---|
| 464 | window.onload = function() { |
---|
| 465 | oldonload(); |
---|
| 466 | prettyPrint(); |
---|
| 467 | } |
---|
| 468 | } |
---|
| 469 | })(); |
---|
| 470 | </script> |
---|
| 471 | |
---|
| 472 | </BODY> |
---|
| 473 | </HTML> |
---|