[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:26 EDT 2012 --> |
---|
| 6 | <META http-equiv="Content-Type" content="text/html; charset=utf-8"> |
---|
| 7 | <TITLE> |
---|
| 8 | SimplePostTool (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="SimplePostTool (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/SimplePostTool.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/util/RTimer.html" title="class in org.apache.solr.util"><B>PREV CLASS</B></A> |
---|
| 59 | <A HREF="../../../../org/apache/solr/util/SolrPluginUtils.html" title="class in org.apache.solr.util"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 61 | <A HREF="../../../../index.html?org/apache/solr/util/SimplePostTool.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="SimplePostTool.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.util</FONT> |
---|
| 92 | <BR> |
---|
| 93 | Class SimplePostTool</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.util.SimplePostTool</B> |
---|
| 97 | </PRE> |
---|
| 98 | <HR> |
---|
| 99 | <DL> |
---|
| 100 | <DT><PRE>public class <B>SimplePostTool</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></DL> |
---|
| 101 | </PRE> |
---|
| 102 | |
---|
| 103 | <P> |
---|
| 104 | A simple utility class for posting raw updates to a Solr server, |
---|
| 105 | has a main method so it can be run on the command line. |
---|
| 106 | <P> |
---|
| 107 | |
---|
| 108 | <P> |
---|
| 109 | <HR> |
---|
| 110 | |
---|
| 111 | <P> |
---|
| 112 | <!-- =========== FIELD SUMMARY =========== --> |
---|
| 113 | |
---|
| 114 | <A NAME="field_summary"><!-- --></A> |
---|
| 115 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 116 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 117 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 118 | <B>Field Summary</B></FONT></TH> |
---|
| 119 | </TR> |
---|
| 120 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 121 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 122 | <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> |
---|
| 123 | <TD><CODE><B><A HREF="../../../../org/apache/solr/util/SimplePostTool.html#DEFAULT_DATA_TYPE">DEFAULT_DATA_TYPE</A></B></CODE> |
---|
| 124 | |
---|
| 125 | <BR> |
---|
| 126 | </TD> |
---|
| 127 | </TR> |
---|
| 128 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 129 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 130 | <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> |
---|
| 131 | <TD><CODE><B><A HREF="../../../../org/apache/solr/util/SimplePostTool.html#DEFAULT_POST_URL">DEFAULT_POST_URL</A></B></CODE> |
---|
| 132 | |
---|
| 133 | <BR> |
---|
| 134 | </TD> |
---|
| 135 | </TR> |
---|
| 136 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 137 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 138 | <CODE>protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</A></CODE></FONT></TD> |
---|
| 139 | <TD><CODE><B><A HREF="../../../../org/apache/solr/util/SimplePostTool.html#solrUrl">solrUrl</A></B></CODE> |
---|
| 140 | |
---|
| 141 | <BR> |
---|
| 142 | </TD> |
---|
| 143 | </TR> |
---|
| 144 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 145 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 146 | <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> |
---|
| 147 | <TD><CODE><B><A HREF="../../../../org/apache/solr/util/SimplePostTool.html#VERSION_OF_THIS_TOOL">VERSION_OF_THIS_TOOL</A></B></CODE> |
---|
| 148 | |
---|
| 149 | <BR> |
---|
| 150 | </TD> |
---|
| 151 | </TR> |
---|
| 152 | </TABLE> |
---|
| 153 | |
---|
| 154 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
| 155 | |
---|
| 156 | <A NAME="constructor_summary"><!-- --></A> |
---|
| 157 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 158 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 159 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 160 | <B>Constructor Summary</B></FONT></TH> |
---|
| 161 | </TR> |
---|
| 162 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 163 | <TD><CODE><B><A HREF="../../../../org/apache/solr/util/SimplePostTool.html#SimplePostTool(java.net.URL)">SimplePostTool</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</A> solrUrl)</CODE> |
---|
| 164 | |
---|
| 165 | <BR> |
---|
| 166 | Constructs an instance for posting data to the specified Solr URL |
---|
| 167 | (ie: "http://localhost:8983/solr/update")</TD> |
---|
| 168 | </TR> |
---|
| 169 | </TABLE> |
---|
| 170 | |
---|
| 171 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 172 | |
---|
| 173 | <A NAME="method_summary"><!-- --></A> |
---|
| 174 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 175 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 176 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 177 | <B>Method Summary</B></FONT></TH> |
---|
| 178 | </TR> |
---|
| 179 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 180 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 181 | <CODE> void</CODE></FONT></TD> |
---|
| 182 | <TD><CODE><B><A HREF="../../../../org/apache/solr/util/SimplePostTool.html#commit()">commit</A></B>()</CODE> |
---|
| 183 | |
---|
| 184 | <BR> |
---|
| 185 | Does a simple commit operation</TD> |
---|
| 186 | </TR> |
---|
| 187 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 188 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 189 | <CODE>static void</CODE></FONT></TD> |
---|
| 190 | <TD><CODE><B><A HREF="../../../../org/apache/solr/util/SimplePostTool.html#doGet(java.lang.String)">doGet</A></B>(<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> url)</CODE> |
---|
| 191 | |
---|
| 192 | <BR> |
---|
| 193 | Performs a simple get on the given URL</TD> |
---|
| 194 | </TR> |
---|
| 195 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 196 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 197 | <CODE>static void</CODE></FONT></TD> |
---|
| 198 | <TD><CODE><B><A HREF="../../../../org/apache/solr/util/SimplePostTool.html#doGet(java.net.URL)">doGet</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</A> url)</CODE> |
---|
| 199 | |
---|
| 200 | <BR> |
---|
| 201 | Performs a simple get on the given URL</TD> |
---|
| 202 | </TR> |
---|
| 203 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 204 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 205 | <CODE>static void</CODE></FONT></TD> |
---|
| 206 | <TD><CODE><B><A HREF="../../../../org/apache/solr/util/SimplePostTool.html#main(java.lang.String[])">main</A></B>(<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>[] args)</CODE> |
---|
| 207 | |
---|
| 208 | <BR> |
---|
| 209 | </TD> |
---|
| 210 | </TR> |
---|
| 211 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 212 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 213 | <CODE> void</CODE></FONT></TD> |
---|
| 214 | <TD><CODE><B><A HREF="../../../../org/apache/solr/util/SimplePostTool.html#optimize()">optimize</A></B>()</CODE> |
---|
| 215 | |
---|
| 216 | <BR> |
---|
| 217 | Does a simple optimize operation</TD> |
---|
| 218 | </TR> |
---|
| 219 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 220 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 221 | <CODE> void</CODE></FONT></TD> |
---|
| 222 | <TD><CODE><B><A HREF="../../../../org/apache/solr/util/SimplePostTool.html#postData(java.io.InputStream, java.lang.Integer, java.io.OutputStream)">postData</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> data, |
---|
| 223 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A> length, |
---|
| 224 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> output)</CODE> |
---|
| 225 | |
---|
| 226 | <BR> |
---|
| 227 | <B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/solr/util/SimplePostTool.html#postData(java.io.InputStream, java.lang.Integer, java.io.OutputStream, java.lang.String)"><CODE>postData(InputStream, Integer, OutputStream, String)</CODE></A> instead</I></TD> |
---|
| 228 | </TR> |
---|
| 229 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 230 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 231 | <CODE> void</CODE></FONT></TD> |
---|
| 232 | <TD><CODE><B><A HREF="../../../../org/apache/solr/util/SimplePostTool.html#postData(java.io.InputStream, java.lang.Integer, java.io.OutputStream, java.lang.String)">postData</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> data, |
---|
| 233 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A> length, |
---|
| 234 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> output, |
---|
| 235 | <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> type)</CODE> |
---|
| 236 | |
---|
| 237 | <BR> |
---|
| 238 | Reads data from the data stream and posts it to solr, |
---|
| 239 | writes to the response to output</TD> |
---|
| 240 | </TR> |
---|
| 241 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 242 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 243 | <CODE> void</CODE></FONT></TD> |
---|
| 244 | <TD><CODE><B><A HREF="../../../../org/apache/solr/util/SimplePostTool.html#postFile(java.io.File, java.io.OutputStream)">postFile</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> file, |
---|
| 245 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> output)</CODE> |
---|
| 246 | |
---|
| 247 | <BR> |
---|
| 248 | <B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/solr/util/SimplePostTool.html#postFile(java.io.File, java.io.OutputStream, java.lang.String)"><CODE>postFile(File, OutputStream, String)</CODE></A> instead</I></TD> |
---|
| 249 | </TR> |
---|
| 250 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 251 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 252 | <CODE> void</CODE></FONT></TD> |
---|
| 253 | <TD><CODE><B><A HREF="../../../../org/apache/solr/util/SimplePostTool.html#postFile(java.io.File, java.io.OutputStream, java.lang.String)">postFile</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> file, |
---|
| 254 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> output, |
---|
| 255 | <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> type)</CODE> |
---|
| 256 | |
---|
| 257 | <BR> |
---|
| 258 | Opens the file and posts it's contents to the solrUrl, |
---|
| 259 | writes to response to output.</TD> |
---|
| 260 | </TR> |
---|
| 261 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 262 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 263 | <CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A></CODE></FONT></TD> |
---|
| 264 | <TD><CODE><B><A HREF="../../../../org/apache/solr/util/SimplePostTool.html#stringToStream(java.lang.String)">stringToStream</A></B>(<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> s)</CODE> |
---|
| 265 | |
---|
| 266 | <BR> |
---|
| 267 | </TD> |
---|
| 268 | </TR> |
---|
| 269 | </TABLE> |
---|
| 270 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 271 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 272 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 273 | <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> |
---|
| 274 | </TR> |
---|
| 275 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 276 | <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> |
---|
| 277 | </TR> |
---|
| 278 | </TABLE> |
---|
| 279 | |
---|
| 280 | <P> |
---|
| 281 | |
---|
| 282 | <!-- ============ FIELD DETAIL =========== --> |
---|
| 283 | |
---|
| 284 | <A NAME="field_detail"><!-- --></A> |
---|
| 285 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 286 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 287 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 288 | <B>Field Detail</B></FONT></TH> |
---|
| 289 | </TR> |
---|
| 290 | </TABLE> |
---|
| 291 | |
---|
| 292 | <A NAME="DEFAULT_POST_URL"><!-- --></A><H3> |
---|
| 293 | DEFAULT_POST_URL</H3> |
---|
| 294 | <PRE> |
---|
| 295 | 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_POST_URL</B></PRE> |
---|
| 296 | <DL> |
---|
| 297 | <DL> |
---|
| 298 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.solr.util.SimplePostTool.DEFAULT_POST_URL">Constant Field Values</A></DL> |
---|
| 299 | </DL> |
---|
| 300 | <HR> |
---|
| 301 | |
---|
| 302 | <A NAME="VERSION_OF_THIS_TOOL"><!-- --></A><H3> |
---|
| 303 | VERSION_OF_THIS_TOOL</H3> |
---|
| 304 | <PRE> |
---|
| 305 | 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>VERSION_OF_THIS_TOOL</B></PRE> |
---|
| 306 | <DL> |
---|
| 307 | <DL> |
---|
| 308 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.solr.util.SimplePostTool.VERSION_OF_THIS_TOOL">Constant Field Values</A></DL> |
---|
| 309 | </DL> |
---|
| 310 | <HR> |
---|
| 311 | |
---|
| 312 | <A NAME="DEFAULT_DATA_TYPE"><!-- --></A><H3> |
---|
| 313 | DEFAULT_DATA_TYPE</H3> |
---|
| 314 | <PRE> |
---|
| 315 | 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_DATA_TYPE</B></PRE> |
---|
| 316 | <DL> |
---|
| 317 | <DL> |
---|
| 318 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.solr.util.SimplePostTool.DEFAULT_DATA_TYPE">Constant Field Values</A></DL> |
---|
| 319 | </DL> |
---|
| 320 | <HR> |
---|
| 321 | |
---|
| 322 | <A NAME="solrUrl"><!-- --></A><H3> |
---|
| 323 | solrUrl</H3> |
---|
| 324 | <PRE> |
---|
| 325 | protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</A> <B>solrUrl</B></PRE> |
---|
| 326 | <DL> |
---|
| 327 | <DL> |
---|
| 328 | </DL> |
---|
| 329 | </DL> |
---|
| 330 | |
---|
| 331 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
| 332 | |
---|
| 333 | <A NAME="constructor_detail"><!-- --></A> |
---|
| 334 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 335 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 336 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 337 | <B>Constructor Detail</B></FONT></TH> |
---|
| 338 | </TR> |
---|
| 339 | </TABLE> |
---|
| 340 | |
---|
| 341 | <A NAME="SimplePostTool(java.net.URL)"><!-- --></A><H3> |
---|
| 342 | SimplePostTool</H3> |
---|
| 343 | <PRE> |
---|
| 344 | public <B>SimplePostTool</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</A> solrUrl)</PRE> |
---|
| 345 | <DL> |
---|
| 346 | <DD>Constructs an instance for posting data to the specified Solr URL |
---|
| 347 | (ie: "http://localhost:8983/solr/update") |
---|
| 348 | <P> |
---|
| 349 | </DL> |
---|
| 350 | |
---|
| 351 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 352 | |
---|
| 353 | <A NAME="method_detail"><!-- --></A> |
---|
| 354 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 355 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 356 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 357 | <B>Method Detail</B></FONT></TH> |
---|
| 358 | </TR> |
---|
| 359 | </TABLE> |
---|
| 360 | |
---|
| 361 | <A NAME="main(java.lang.String[])"><!-- --></A><H3> |
---|
| 362 | main</H3> |
---|
| 363 | <PRE> |
---|
| 364 | public static void <B>main</B>(<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>[] args)</PRE> |
---|
| 365 | <DL> |
---|
| 366 | <DD><DL> |
---|
| 367 | </DL> |
---|
| 368 | </DD> |
---|
| 369 | </DL> |
---|
| 370 | <HR> |
---|
| 371 | |
---|
| 372 | <A NAME="commit()"><!-- --></A><H3> |
---|
| 373 | commit</H3> |
---|
| 374 | <PRE> |
---|
| 375 | public void <B>commit</B>()</PRE> |
---|
| 376 | <DL> |
---|
| 377 | <DD>Does a simple commit operation |
---|
| 378 | <P> |
---|
| 379 | <DD><DL> |
---|
| 380 | </DL> |
---|
| 381 | </DD> |
---|
| 382 | </DL> |
---|
| 383 | <HR> |
---|
| 384 | |
---|
| 385 | <A NAME="optimize()"><!-- --></A><H3> |
---|
| 386 | optimize</H3> |
---|
| 387 | <PRE> |
---|
| 388 | public void <B>optimize</B>()</PRE> |
---|
| 389 | <DL> |
---|
| 390 | <DD>Does a simple optimize operation |
---|
| 391 | <P> |
---|
| 392 | <DD><DL> |
---|
| 393 | </DL> |
---|
| 394 | </DD> |
---|
| 395 | </DL> |
---|
| 396 | <HR> |
---|
| 397 | |
---|
| 398 | <A NAME="postFile(java.io.File, java.io.OutputStream)"><!-- --></A><H3> |
---|
| 399 | postFile</H3> |
---|
| 400 | <PRE> |
---|
| 401 | public void <B>postFile</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> file, |
---|
| 402 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> output)</PRE> |
---|
| 403 | <DL> |
---|
| 404 | <DD><B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/solr/util/SimplePostTool.html#postFile(java.io.File, java.io.OutputStream, java.lang.String)"><CODE>postFile(File, OutputStream, String)</CODE></A> instead</I> |
---|
| 405 | <P> |
---|
| 406 | <DD><DL> |
---|
| 407 | </DL> |
---|
| 408 | </DD> |
---|
| 409 | </DL> |
---|
| 410 | <HR> |
---|
| 411 | |
---|
| 412 | <A NAME="postFile(java.io.File, java.io.OutputStream, java.lang.String)"><!-- --></A><H3> |
---|
| 413 | postFile</H3> |
---|
| 414 | <PRE> |
---|
| 415 | public void <B>postFile</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> file, |
---|
| 416 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> output, |
---|
| 417 | <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> type)</PRE> |
---|
| 418 | <DL> |
---|
| 419 | <DD>Opens the file and posts it's contents to the solrUrl, |
---|
| 420 | writes to response to output. |
---|
| 421 | <P> |
---|
| 422 | <DD><DL> |
---|
| 423 | |
---|
| 424 | <DT><B>Throws:</B> |
---|
| 425 | <DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/UnsupportedEncodingException.html?is-external=true" title="class or interface in java.io">UnsupportedEncodingException</A></CODE></DL> |
---|
| 426 | </DD> |
---|
| 427 | </DL> |
---|
| 428 | <HR> |
---|
| 429 | |
---|
| 430 | <A NAME="doGet(java.lang.String)"><!-- --></A><H3> |
---|
| 431 | doGet</H3> |
---|
| 432 | <PRE> |
---|
| 433 | public static void <B>doGet</B>(<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> url)</PRE> |
---|
| 434 | <DL> |
---|
| 435 | <DD>Performs a simple get on the given URL |
---|
| 436 | <P> |
---|
| 437 | <DD><DL> |
---|
| 438 | <DT><B>Parameters:</B><DD><CODE>url</CODE> - </DL> |
---|
| 439 | </DD> |
---|
| 440 | </DL> |
---|
| 441 | <HR> |
---|
| 442 | |
---|
| 443 | <A NAME="doGet(java.net.URL)"><!-- --></A><H3> |
---|
| 444 | doGet</H3> |
---|
| 445 | <PRE> |
---|
| 446 | public static void <B>doGet</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</A> url)</PRE> |
---|
| 447 | <DL> |
---|
| 448 | <DD>Performs a simple get on the given URL |
---|
| 449 | <P> |
---|
| 450 | <DD><DL> |
---|
| 451 | <DT><B>Parameters:</B><DD><CODE>url</CODE> - </DL> |
---|
| 452 | </DD> |
---|
| 453 | </DL> |
---|
| 454 | <HR> |
---|
| 455 | |
---|
| 456 | <A NAME="postData(java.io.InputStream, java.lang.Integer, java.io.OutputStream)"><!-- --></A><H3> |
---|
| 457 | postData</H3> |
---|
| 458 | <PRE> |
---|
| 459 | <FONT SIZE="-1"><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A> |
---|
| 460 | </FONT>public void <B>postData</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> data, |
---|
| 461 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A> length, |
---|
| 462 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> output)</PRE> |
---|
| 463 | <DL> |
---|
| 464 | <DD><B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/solr/util/SimplePostTool.html#postData(java.io.InputStream, java.lang.Integer, java.io.OutputStream, java.lang.String)"><CODE>postData(InputStream, Integer, OutputStream, String)</CODE></A> instead</I> |
---|
| 465 | <P> |
---|
| 466 | <DD><DL> |
---|
| 467 | </DL> |
---|
| 468 | </DD> |
---|
| 469 | </DL> |
---|
| 470 | <HR> |
---|
| 471 | |
---|
| 472 | <A NAME="postData(java.io.InputStream, java.lang.Integer, java.io.OutputStream, java.lang.String)"><!-- --></A><H3> |
---|
| 473 | postData</H3> |
---|
| 474 | <PRE> |
---|
| 475 | public void <B>postData</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> data, |
---|
| 476 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A> length, |
---|
| 477 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> output, |
---|
| 478 | <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> type)</PRE> |
---|
| 479 | <DL> |
---|
| 480 | <DD>Reads data from the data stream and posts it to solr, |
---|
| 481 | writes to the response to output |
---|
| 482 | <P> |
---|
| 483 | <DD><DL> |
---|
| 484 | </DL> |
---|
| 485 | </DD> |
---|
| 486 | </DL> |
---|
| 487 | <HR> |
---|
| 488 | |
---|
| 489 | <A NAME="stringToStream(java.lang.String)"><!-- --></A><H3> |
---|
| 490 | stringToStream</H3> |
---|
| 491 | <PRE> |
---|
| 492 | public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> <B>stringToStream</B>(<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> s)</PRE> |
---|
| 493 | <DL> |
---|
| 494 | <DD><DL> |
---|
| 495 | </DL> |
---|
| 496 | </DD> |
---|
| 497 | </DL> |
---|
| 498 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 499 | <HR> |
---|
| 500 | |
---|
| 501 | |
---|
| 502 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 503 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 504 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 505 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 506 | <TR> |
---|
| 507 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 508 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 509 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 510 | <TR ALIGN="center" VALIGN="top"> |
---|
| 511 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 512 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 513 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 514 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SimplePostTool.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 515 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 516 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 517 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 518 | </TR> |
---|
| 519 | </TABLE> |
---|
| 520 | </TD> |
---|
| 521 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 522 | </EM> |
---|
| 523 | </TD> |
---|
| 524 | </TR> |
---|
| 525 | |
---|
| 526 | <TR> |
---|
| 527 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 528 | <A HREF="../../../../org/apache/solr/util/RTimer.html" title="class in org.apache.solr.util"><B>PREV CLASS</B></A> |
---|
| 529 | <A HREF="../../../../org/apache/solr/util/SolrPluginUtils.html" title="class in org.apache.solr.util"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 530 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 531 | <A HREF="../../../../index.html?org/apache/solr/util/SimplePostTool.html" target="_top"><B>FRAMES</B></A> |
---|
| 532 | <A HREF="SimplePostTool.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 533 | <SCRIPT type="text/javascript"> |
---|
| 534 | <!-- |
---|
| 535 | if(window==top) { |
---|
| 536 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 537 | } |
---|
| 538 | //--> |
---|
| 539 | </SCRIPT> |
---|
| 540 | <NOSCRIPT> |
---|
| 541 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 542 | </NOSCRIPT> |
---|
| 543 | |
---|
| 544 | |
---|
| 545 | </FONT></TD> |
---|
| 546 | </TR> |
---|
| 547 | <TR> |
---|
| 548 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 549 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 550 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 551 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 552 | </TR> |
---|
| 553 | </TABLE> |
---|
| 554 | <A NAME="skip-navbar_bottom"></A> |
---|
| 555 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 556 | |
---|
| 557 | <HR> |
---|
| 558 | |
---|
| 559 | <address>Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.</address> |
---|
| 560 | <script src='../../../../prettify.js' type='text/javascript'></script> |
---|
| 561 | <script type='text/javascript'> |
---|
| 562 | (function(){ |
---|
| 563 | var oldonload = window.onload; |
---|
| 564 | if (typeof oldonload != 'function') { |
---|
| 565 | window.onload = prettyPrint; |
---|
| 566 | } else { |
---|
| 567 | window.onload = function() { |
---|
| 568 | oldonload(); |
---|
| 569 | prettyPrint(); |
---|
| 570 | } |
---|
| 571 | } |
---|
| 572 | })(); |
---|
| 573 | </script> |
---|
| 574 | |
---|
| 575 | </BODY> |
---|
| 576 | </HTML> |
---|