1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (version 1.6.0_27) on Thu Oct 17 21:44:56 EDT 2013 -->
6 <meta http-equiv="Content-Type" content="text/html" charset="utf-8">
7 <title>PHPResponseWriter (Solr 4.5.1 API)</title>
8 <meta name="date" content="2013-10-17">
9 <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
12 <script type="text/javascript"><!--
13 if (location.href.indexOf('is-external=true') == -1) {
14 parent.document.title="PHPResponseWriter (Solr 4.5.1 API)";
19 <div>JavaScript is disabled on your browser.</div>
21 <!-- ========= START OF TOP NAVBAR ======= -->
22 <div class="topNav"><a name="navbar_top">
24 </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
27 <ul class="navList" title="Navigation">
28 <li><a href="../../../../overview-summary.html">Overview</a></li>
29 <li><a href="package-summary.html">Package</a></li>
30 <li class="navBarCell1Rev">Class</li>
31 <li><a href="class-use/PHPResponseWriter.html">Use</a></li>
32 <li><a href="package-tree.html">Tree</a></li>
33 <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
34 <li><a href="../../../../help-doc.html">Help</a></li>
39 <li><a href="../../../../org/apache/solr/response/JSONResponseWriter.html" title="class in org.apache.solr.response"><span class="strong">PREV CLASS</span></a></li>
40 <li><a href="../../../../org/apache/solr/response/PHPSerializedResponseWriter.html" title="class in org.apache.solr.response"><span class="strong">NEXT CLASS</span></a></li>
43 <li><a href="../../../../index.html?org/apache/solr/response/PHPResponseWriter.html" target="_top">FRAMES</a></li>
44 <li><a href="PHPResponseWriter.html" target="_top">NO FRAMES</a></li>
46 <ul class="navList" id="allclasses_navbar_top">
47 <li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
50 <script type="text/javascript"><!--
51 allClassesLink = document.getElementById("allclasses_navbar_top");
53 allClassesLink.style.display = "block";
56 allClassesLink.style.display = "none";
62 <ul class="subNavList">
63 <li>SUMMARY: </li>
64 <li>NESTED | </li>
65 <li>FIELD | </li>
66 <li><a href="#constructor_summary">CONSTR</a> | </li>
67 <li><a href="#method_summary">METHOD</a></li>
69 <ul class="subNavList">
70 <li>DETAIL: </li>
71 <li>FIELD | </li>
72 <li><a href="#constructor_detail">CONSTR</a> | </li>
73 <li><a href="#method_detail">METHOD</a></li>
76 <a name="skip-navbar_top">
79 <!-- ========= END OF TOP NAVBAR ========= -->
80 <!-- ======== START OF CLASS DATA ======== -->
82 <p class="subTitle">org.apache.solr.response</p>
83 <h2 title="Class PHPResponseWriter" class="title">Class PHPResponseWriter</h2>
85 <div class="contentContainer">
86 <ul class="inheritance">
87 <li><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></li>
89 <ul class="inheritance">
90 <li>org.apache.solr.response.PHPResponseWriter</li>
94 <div class="description">
95 <ul class="blockList">
96 <li class="blockList">
98 <dt>All Implemented Interfaces:</dt>
99 <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>
103 <pre>public class <strong>PHPResponseWriter</strong>
104 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>
105 implements <a href="../../../../org/apache/solr/response/QueryResponseWriter.html" title="interface in org.apache.solr.response">QueryResponseWriter</a></pre>
109 <div class="summary">
110 <ul class="blockList">
111 <li class="blockList">
112 <!-- =========== FIELD SUMMARY =========== -->
113 <ul class="blockList">
114 <li class="blockList"><a name="field_summary">
117 <h3>Field Summary</h3>
118 <ul class="blockList">
119 <li class="blockList"><a name="fields_inherited_from_class_org.apache.solr.response.QueryResponseWriter">
122 <h3>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></h3>
123 <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></li>
127 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
128 <ul class="blockList">
129 <li class="blockList"><a name="constructor_summary">
132 <h3>Constructor Summary</h3>
133 <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
134 <caption><span>Constructors</span><span class="tabEnd"> </span></caption>
136 <th class="colOne" scope="col">Constructor and Description</th>
138 <tr class="altColor">
139 <td class="colOne"><code><strong><a href="../../../../org/apache/solr/response/PHPResponseWriter.html#PHPResponseWriter()">PHPResponseWriter</a></strong>()</code> </td>
144 <!-- ========== METHOD SUMMARY =========== -->
145 <ul class="blockList">
146 <li class="blockList"><a name="method_summary">
149 <h3>Method Summary</h3>
150 <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
151 <caption><span>Methods</span><span class="tabEnd"> </span></caption>
153 <th class="colFirst" scope="col">Modifier and Type</th>
154 <th class="colLast" scope="col">Method and Description</th>
156 <tr class="altColor">
157 <td class="colFirst"><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></td>
158 <td class="colLast"><code><strong><a href="../../../../org/apache/solr/response/PHPResponseWriter.html#getContentType(org.apache.solr.request.SolrQueryRequest, org.apache.solr.response.SolrQueryResponse)">getContentType</a></strong>(<a href="../../../../org/apache/solr/request/SolrQueryRequest.html" title="interface in org.apache.solr.request">SolrQueryRequest</a> request,
159 <a href="../../../../org/apache/solr/response/SolrQueryResponse.html" title="class in org.apache.solr.response">SolrQueryResponse</a> response)</code>
160 <div class="block">Return the applicable Content Type for a request, this method
161 must be thread safe.</div>
164 <tr class="rowColor">
165 <td class="colFirst"><code>void</code></td>
166 <td class="colLast"><code><strong><a href="../../../../org/apache/solr/response/PHPResponseWriter.html#init(org.apache.solr.common.util.NamedList)">init</a></strong>(<a href="../../../../../solr-solrj/org/apache/solr/common/util/NamedList.html?is-external=true" title="class or interface in org.apache.solr.common.util">NamedList</a> namedList)</code>
167 <div class="block"><code>init</code> will be called just once, immediately after creation.</div>
170 <tr class="altColor">
171 <td class="colFirst"><code>void</code></td>
172 <td class="colLast"><code><strong><a href="../../../../org/apache/solr/response/PHPResponseWriter.html#write(java.io.Writer, org.apache.solr.request.SolrQueryRequest, org.apache.solr.response.SolrQueryResponse)">write</a></strong>(<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,
173 <a href="../../../../org/apache/solr/request/SolrQueryRequest.html" title="interface in org.apache.solr.request">SolrQueryRequest</a> req,
174 <a href="../../../../org/apache/solr/response/SolrQueryResponse.html" title="class in org.apache.solr.response">SolrQueryResponse</a> rsp)</code>
175 <div class="block">Write a SolrQueryResponse, this method must be thread save.</div>
179 <ul class="blockList">
180 <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
183 <h3>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></h3>
184 <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></li>
191 <div class="details">
192 <ul class="blockList">
193 <li class="blockList">
194 <!-- ========= CONSTRUCTOR DETAIL ======== -->
195 <ul class="blockList">
196 <li class="blockList"><a name="constructor_detail">
199 <h3>Constructor Detail</h3>
200 <a name="PHPResponseWriter()">
203 <ul class="blockListLast">
204 <li class="blockList">
205 <h4>PHPResponseWriter</h4>
206 <pre>public PHPResponseWriter()</pre>
211 <!-- ============ METHOD DETAIL ========== -->
212 <ul class="blockList">
213 <li class="blockList"><a name="method_detail">
216 <h3>Method Detail</h3>
217 <a name="init(org.apache.solr.common.util.NamedList)">
220 <ul class="blockList">
221 <li class="blockList">
223 <pre>public void init(<a href="../../../../../solr-solrj/org/apache/solr/common/util/NamedList.html?is-external=true" title="class or interface in org.apache.solr.common.util">NamedList</a> namedList)</pre>
224 <div class="block"><strong>Description copied from interface: <code><a href="../../../../org/apache/solr/response/QueryResponseWriter.html#init(org.apache.solr.common.util.NamedList)">QueryResponseWriter</a></code></strong></div>
225 <div class="block"><code>init</code> will be called just once, immediately after creation.
226 <p>The args are user-level initialization parameters that
227 may be specified when declaring a response writer in
230 <dt><strong>Specified by:</strong></dt>
231 <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></dd>
232 <dt><strong>Specified by:</strong></dt>
233 <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></dd>
237 <a name="write(java.io.Writer, org.apache.solr.request.SolrQueryRequest, org.apache.solr.response.SolrQueryResponse)">
240 <ul class="blockList">
241 <li class="blockList">
243 <pre>public void write(<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,
244 <a href="../../../../org/apache/solr/request/SolrQueryRequest.html" title="interface in org.apache.solr.request">SolrQueryRequest</a> req,
245 <a href="../../../../org/apache/solr/response/SolrQueryResponse.html" title="class in org.apache.solr.response">SolrQueryResponse</a> rsp)
246 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>
247 <div class="block"><strong>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></strong></div>
248 <div class="block">Write a SolrQueryResponse, this method must be thread save.
251 Information about the request (in particular: formating options) may be
252 obtained from <code>req</code> but the dominant source of information
253 should be <code>rsp</code>.
255 There are no mandatory actions that write must perform.
256 An empty write implementation would fulfill
257 all interface obligations.
260 <dt><strong>Specified by:</strong></dt>
261 <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></dd>
262 <dt><span class="strong">Throws:</span></dt>
263 <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></dd></dl>
266 <a name="getContentType(org.apache.solr.request.SolrQueryRequest, org.apache.solr.response.SolrQueryResponse)">
269 <ul class="blockListLast">
270 <li class="blockList">
271 <h4>getContentType</h4>
272 <pre>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> getContentType(<a href="../../../../org/apache/solr/request/SolrQueryRequest.html" title="interface in org.apache.solr.request">SolrQueryRequest</a> request,
273 <a href="../../../../org/apache/solr/response/SolrQueryResponse.html" title="class in org.apache.solr.response">SolrQueryResponse</a> response)</pre>
274 <div class="block"><strong>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></strong></div>
275 <div class="block">Return the applicable Content Type for a request, this method
279 QueryResponseWriter's must implement this method to return a valid
280 HTTP Content-Type header for the request, that will logically
281 correspond with the output produced by the write method.
284 <dt><strong>Specified by:</strong></dt>
285 <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></dd>
286 <dt><span class="strong">Returns:</span></dt><dd>a Content-Type string, which may not be null.</dd></dl>
295 <!-- ========= END OF CLASS DATA ========= -->
296 <!-- ======= START OF BOTTOM NAVBAR ====== -->
297 <div class="bottomNav"><a name="navbar_bottom">
299 </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
302 <ul class="navList" title="Navigation">
303 <li><a href="../../../../overview-summary.html">Overview</a></li>
304 <li><a href="package-summary.html">Package</a></li>
305 <li class="navBarCell1Rev">Class</li>
306 <li><a href="class-use/PHPResponseWriter.html">Use</a></li>
307 <li><a href="package-tree.html">Tree</a></li>
308 <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
309 <li><a href="../../../../help-doc.html">Help</a></li>
314 <li><a href="../../../../org/apache/solr/response/JSONResponseWriter.html" title="class in org.apache.solr.response"><span class="strong">PREV CLASS</span></a></li>
315 <li><a href="../../../../org/apache/solr/response/PHPSerializedResponseWriter.html" title="class in org.apache.solr.response"><span class="strong">NEXT CLASS</span></a></li>
318 <li><a href="../../../../index.html?org/apache/solr/response/PHPResponseWriter.html" target="_top">FRAMES</a></li>
319 <li><a href="PHPResponseWriter.html" target="_top">NO FRAMES</a></li>
321 <ul class="navList" id="allclasses_navbar_bottom">
322 <li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
325 <script type="text/javascript"><!--
326 allClassesLink = document.getElementById("allclasses_navbar_bottom");
328 allClassesLink.style.display = "block";
331 allClassesLink.style.display = "none";
337 <ul class="subNavList">
338 <li>SUMMARY: </li>
339 <li>NESTED | </li>
340 <li>FIELD | </li>
341 <li><a href="#constructor_summary">CONSTR</a> | </li>
342 <li><a href="#method_summary">METHOD</a></li>
344 <ul class="subNavList">
345 <li>DETAIL: </li>
346 <li>FIELD | </li>
347 <li><a href="#constructor_detail">CONSTR</a> | </li>
348 <li><a href="#method_detail">METHOD</a></li>
351 <a name="skip-navbar_bottom">
354 <!-- ======== END OF BOTTOM NAVBAR ======= -->
355 <p class="legalCopy"><small>
356 <i>Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.</i>
357 <script src='../../../../prettify.js' type='text/javascript'></script>
358 <script type='text/javascript'>
360 var oldonload = window.onload;
361 if (typeof oldonload != 'function') {
362 window.onload = prettyPrint;
364 window.onload = function() {