[120] | 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_07) on Tue Sep 01 20:56:52 UTC 2009 --> |
---|
| 6 | <TITLE> |
---|
| 7 | HttpServer (Hadoop 0.20.1 API) |
---|
| 8 | </TITLE> |
---|
| 9 | |
---|
| 10 | <META NAME="date" CONTENT="2009-09-01"> |
---|
| 11 | |
---|
| 12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
---|
| 13 | |
---|
| 14 | <SCRIPT type="text/javascript"> |
---|
| 15 | function windowTitle() |
---|
| 16 | { |
---|
| 17 | if (location.href.indexOf('is-external=true') == -1) { |
---|
| 18 | parent.document.title="HttpServer (Hadoop 0.20.1 API)"; |
---|
| 19 | } |
---|
| 20 | } |
---|
| 21 | </SCRIPT> |
---|
| 22 | <NOSCRIPT> |
---|
| 23 | </NOSCRIPT> |
---|
| 24 | |
---|
| 25 | </HEAD> |
---|
| 26 | |
---|
| 27 | <BODY BGCOLOR="white" onload="windowTitle();"> |
---|
| 28 | <HR> |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | <!-- ========= START OF TOP NAVBAR ======= --> |
---|
| 32 | <A NAME="navbar_top"><!-- --></A> |
---|
| 33 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
---|
| 34 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 35 | <TR> |
---|
| 36 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 37 | <A NAME="navbar_top_firstrow"><!-- --></A> |
---|
| 38 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 39 | <TR ALIGN="center" VALIGN="top"> |
---|
| 40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 42 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/HttpServer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</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/hadoop/http/FilterInitializer.html" title="class in org.apache.hadoop.http"><B>PREV CLASS</B></A> |
---|
| 59 | <A HREF="../../../../org/apache/hadoop/http/HttpServer.StackServlet.html" title="class in org.apache.hadoop.http"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 61 | <A HREF="../../../../index.html?org/apache/hadoop/http/HttpServer.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="HttpServer.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: <A HREF="#nested_class_summary">NESTED</A> | <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.hadoop.http</FONT> |
---|
| 92 | <BR> |
---|
| 93 | Class HttpServer</H2> |
---|
| 94 | <PRE> |
---|
| 95 | <A HREF="http://java.sun.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.hadoop.http.HttpServer</B> |
---|
| 97 | </PRE> |
---|
| 98 | <DL> |
---|
| 99 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/apache/hadoop/http/FilterContainer.html" title="interface in org.apache.hadoop.http">FilterContainer</A></DD> |
---|
| 100 | </DL> |
---|
| 101 | <HR> |
---|
| 102 | <DL> |
---|
| 103 | <DT><PRE>public class <B>HttpServer</B><DT>extends <A HREF="http://java.sun.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/hadoop/http/FilterContainer.html" title="interface in org.apache.hadoop.http">FilterContainer</A></DL> |
---|
| 104 | </PRE> |
---|
| 105 | |
---|
| 106 | <P> |
---|
| 107 | Create a Jetty embedded server to answer http requests. The primary goal |
---|
| 108 | is to serve up status information for the server. |
---|
| 109 | There are three contexts: |
---|
| 110 | "/logs/" -> points to the log directory |
---|
| 111 | "/static/" -> points to common static files (src/webapps/static) |
---|
| 112 | "/" -> the jsp server code from (src/webapps/<name>) |
---|
| 113 | <P> |
---|
| 114 | |
---|
| 115 | <P> |
---|
| 116 | <HR> |
---|
| 117 | |
---|
| 118 | <P> |
---|
| 119 | <!-- ======== NESTED CLASS SUMMARY ======== --> |
---|
| 120 | |
---|
| 121 | <A NAME="nested_class_summary"><!-- --></A> |
---|
| 122 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 123 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 124 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 125 | <B>Nested Class Summary</B></FONT></TH> |
---|
| 126 | </TR> |
---|
| 127 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 128 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 129 | <CODE>static class</CODE></FONT></TD> |
---|
| 130 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.StackServlet.html" title="class in org.apache.hadoop.http">HttpServer.StackServlet</A></B></CODE> |
---|
| 131 | |
---|
| 132 | <BR> |
---|
| 133 | A very simple servlet to serve up a text representation of the current |
---|
| 134 | stack traces.</TD> |
---|
| 135 | </TR> |
---|
| 136 | </TABLE> |
---|
| 137 | <!-- =========== FIELD SUMMARY =========== --> |
---|
| 138 | |
---|
| 139 | <A NAME="field_summary"><!-- --></A> |
---|
| 140 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 141 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 142 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 143 | <B>Field Summary</B></FONT></TH> |
---|
| 144 | </TR> |
---|
| 145 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 146 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 147 | <CODE>protected <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><org.mortbay.jetty.servlet.Context,<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</A>></CODE></FONT></TD> |
---|
| 148 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#defaultContexts">defaultContexts</A></B></CODE> |
---|
| 149 | |
---|
| 150 | <BR> |
---|
| 151 | </TD> |
---|
| 152 | </TR> |
---|
| 153 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 154 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 155 | <CODE>protected <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>></CODE></FONT></TD> |
---|
| 156 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#filterNames">filterNames</A></B></CODE> |
---|
| 157 | |
---|
| 158 | <BR> |
---|
| 159 | </TD> |
---|
| 160 | </TR> |
---|
| 161 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 162 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 163 | <CODE>protected boolean</CODE></FONT></TD> |
---|
| 164 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#findPort">findPort</A></B></CODE> |
---|
| 165 | |
---|
| 166 | <BR> |
---|
| 167 | </TD> |
---|
| 168 | </TR> |
---|
| 169 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 170 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 171 | <CODE>protected org.mortbay.jetty.Connector</CODE></FONT></TD> |
---|
| 172 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#listener">listener</A></B></CODE> |
---|
| 173 | |
---|
| 174 | <BR> |
---|
| 175 | </TD> |
---|
| 176 | </TR> |
---|
| 177 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 178 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 179 | <CODE>static org.apache.commons.logging.Log</CODE></FONT></TD> |
---|
| 180 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#LOG">LOG</A></B></CODE> |
---|
| 181 | |
---|
| 182 | <BR> |
---|
| 183 | </TD> |
---|
| 184 | </TR> |
---|
| 185 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 186 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 187 | <CODE>protected org.mortbay.jetty.webapp.WebAppContext</CODE></FONT></TD> |
---|
| 188 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#webAppContext">webAppContext</A></B></CODE> |
---|
| 189 | |
---|
| 190 | <BR> |
---|
| 191 | </TD> |
---|
| 192 | </TR> |
---|
| 193 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 194 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 195 | <CODE>protected org.mortbay.jetty.Server</CODE></FONT></TD> |
---|
| 196 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#webServer">webServer</A></B></CODE> |
---|
| 197 | |
---|
| 198 | <BR> |
---|
| 199 | </TD> |
---|
| 200 | </TR> |
---|
| 201 | </TABLE> |
---|
| 202 | |
---|
| 203 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
| 204 | |
---|
| 205 | <A NAME="constructor_summary"><!-- --></A> |
---|
| 206 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 207 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 208 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 209 | <B>Constructor Summary</B></FONT></TH> |
---|
| 210 | </TR> |
---|
| 211 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 212 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#HttpServer(java.lang.String, java.lang.String, int, boolean)">HttpServer</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, |
---|
| 213 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> bindAddress, |
---|
| 214 | int port, |
---|
| 215 | boolean findPort)</CODE> |
---|
| 216 | |
---|
| 217 | <BR> |
---|
| 218 | Same as this(name, bindAddress, port, findPort, null);</TD> |
---|
| 219 | </TR> |
---|
| 220 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 221 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#HttpServer(java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration)">HttpServer</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, |
---|
| 222 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> bindAddress, |
---|
| 223 | int port, |
---|
| 224 | boolean findPort, |
---|
| 225 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</CODE> |
---|
| 226 | |
---|
| 227 | <BR> |
---|
| 228 | Create a status server on the given port.</TD> |
---|
| 229 | </TR> |
---|
| 230 | </TABLE> |
---|
| 231 | |
---|
| 232 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 233 | |
---|
| 234 | <A NAME="method_summary"><!-- --></A> |
---|
| 235 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 236 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 237 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 238 | <B>Method Summary</B></FONT></TH> |
---|
| 239 | </TR> |
---|
| 240 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 241 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 242 | <CODE> void</CODE></FONT></TD> |
---|
| 243 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#addContext(org.mortbay.jetty.servlet.Context, boolean)">addContext</A></B>(org.mortbay.jetty.servlet.Context ctxt, |
---|
| 244 | boolean isFiltered)</CODE> |
---|
| 245 | |
---|
| 246 | <BR> |
---|
| 247 | </TD> |
---|
| 248 | </TR> |
---|
| 249 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 250 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 251 | <CODE>protected void</CODE></FONT></TD> |
---|
| 252 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#addContext(java.lang.String, java.lang.String, boolean)">addContext</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> pathSpec, |
---|
| 253 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> dir, |
---|
| 254 | boolean isFiltered)</CODE> |
---|
| 255 | |
---|
| 256 | <BR> |
---|
| 257 | Add a context</TD> |
---|
| 258 | </TR> |
---|
| 259 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 260 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 261 | <CODE>protected void</CODE></FONT></TD> |
---|
| 262 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#addDefaultApps(org.mortbay.jetty.handler.ContextHandlerCollection, java.lang.String)">addDefaultApps</A></B>(org.mortbay.jetty.handler.ContextHandlerCollection parent, |
---|
| 263 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> appDir)</CODE> |
---|
| 264 | |
---|
| 265 | <BR> |
---|
| 266 | Add default apps.</TD> |
---|
| 267 | </TR> |
---|
| 268 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 269 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 270 | <CODE>protected void</CODE></FONT></TD> |
---|
| 271 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#addDefaultServlets()">addDefaultServlets</A></B>()</CODE> |
---|
| 272 | |
---|
| 273 | <BR> |
---|
| 274 | Add default servlets.</TD> |
---|
| 275 | </TR> |
---|
| 276 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 277 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 278 | <CODE> void</CODE></FONT></TD> |
---|
| 279 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#addFilter(java.lang.String, java.lang.String, java.util.Map)">addFilter</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, |
---|
| 280 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> classname, |
---|
| 281 | <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> parameters)</CODE> |
---|
| 282 | |
---|
| 283 | <BR> |
---|
| 284 | Add a filter to the container.</TD> |
---|
| 285 | </TR> |
---|
| 286 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 287 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 288 | <CODE>protected void</CODE></FONT></TD> |
---|
| 289 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#addFilterPathMapping(java.lang.String, org.mortbay.jetty.servlet.Context)">addFilterPathMapping</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> pathSpec, |
---|
| 290 | org.mortbay.jetty.servlet.Context webAppCtx)</CODE> |
---|
| 291 | |
---|
| 292 | <BR> |
---|
| 293 | Add the path spec to the filter path mapping.</TD> |
---|
| 294 | </TR> |
---|
| 295 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 296 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 297 | <CODE> void</CODE></FONT></TD> |
---|
| 298 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#addGlobalFilter(java.lang.String, java.lang.String, java.util.Map)">addGlobalFilter</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, |
---|
| 299 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> classname, |
---|
| 300 | <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> parameters)</CODE> |
---|
| 301 | |
---|
| 302 | <BR> |
---|
| 303 | Add a global filter to the container.</TD> |
---|
| 304 | </TR> |
---|
| 305 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 306 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 307 | <CODE> void</CODE></FONT></TD> |
---|
| 308 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#addInternalServlet(java.lang.String, java.lang.String, java.lang.Class)">addInternalServlet</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, |
---|
| 309 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> pathSpec, |
---|
| 310 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends javax.servlet.http.HttpServlet> clazz)</CODE> |
---|
| 311 | |
---|
| 312 | <BR> |
---|
| 313 | <B>Deprecated.</B> <I>this is a temporary method</I></TD> |
---|
| 314 | </TR> |
---|
| 315 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 316 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 317 | <CODE> void</CODE></FONT></TD> |
---|
| 318 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#addServlet(java.lang.String, java.lang.String, java.lang.Class)">addServlet</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, |
---|
| 319 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> pathSpec, |
---|
| 320 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends javax.servlet.http.HttpServlet> clazz)</CODE> |
---|
| 321 | |
---|
| 322 | <BR> |
---|
| 323 | Add a servlet in the server.</TD> |
---|
| 324 | </TR> |
---|
| 325 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 326 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 327 | <CODE> void</CODE></FONT></TD> |
---|
| 328 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#addSslListener(java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration, boolean)">addSslListener</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/net/InetSocketAddress.html?is-external=true" title="class or interface in java.net">InetSocketAddress</A> addr, |
---|
| 329 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> sslConf, |
---|
| 330 | boolean needClientAuth)</CODE> |
---|
| 331 | |
---|
| 332 | <BR> |
---|
| 333 | Configure an ssl listener on the server.</TD> |
---|
| 334 | </TR> |
---|
| 335 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 336 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 337 | <CODE> void</CODE></FONT></TD> |
---|
| 338 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#addSslListener(java.net.InetSocketAddress, java.lang.String, java.lang.String, java.lang.String)">addSslListener</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/net/InetSocketAddress.html?is-external=true" title="class or interface in java.net">InetSocketAddress</A> addr, |
---|
| 339 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> keystore, |
---|
| 340 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> storPass, |
---|
| 341 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> keyPass)</CODE> |
---|
| 342 | |
---|
| 343 | <BR> |
---|
| 344 | <B>Deprecated.</B> <I>Use <A HREF="../../../../org/apache/hadoop/http/HttpServer.html#addSslListener(java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration, boolean)"><CODE>addSslListener(InetSocketAddress, Configuration, boolean)</CODE></A></I></TD> |
---|
| 345 | </TR> |
---|
| 346 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 347 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 348 | <CODE>protected org.mortbay.jetty.Connector</CODE></FONT></TD> |
---|
| 349 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#createBaseListener(org.apache.hadoop.conf.Configuration)">createBaseListener</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</CODE> |
---|
| 350 | |
---|
| 351 | <BR> |
---|
| 352 | Create a required listener for the Jetty instance listening on the port |
---|
| 353 | provided.</TD> |
---|
| 354 | </TR> |
---|
| 355 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 356 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 357 | <CODE>protected void</CODE></FONT></TD> |
---|
| 358 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#defineFilter(org.mortbay.jetty.servlet.Context, java.lang.String, java.lang.String, java.util.Map, java.lang.String[])">defineFilter</A></B>(org.mortbay.jetty.servlet.Context ctx, |
---|
| 359 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, |
---|
| 360 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> classname, |
---|
| 361 | <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> parameters, |
---|
| 362 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] urls)</CODE> |
---|
| 363 | |
---|
| 364 | <BR> |
---|
| 365 | Define a filter for a context and set up default url mappings.</TD> |
---|
| 366 | </TR> |
---|
| 367 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 368 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 369 | <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></FONT></TD> |
---|
| 370 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#getAttribute(java.lang.String)">getAttribute</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</CODE> |
---|
| 371 | |
---|
| 372 | <BR> |
---|
| 373 | Get the value in the webapp context.</TD> |
---|
| 374 | </TR> |
---|
| 375 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 376 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 377 | <CODE> int</CODE></FONT></TD> |
---|
| 378 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#getPort()">getPort</A></B>()</CODE> |
---|
| 379 | |
---|
| 380 | <BR> |
---|
| 381 | Get the port that the server is on</TD> |
---|
| 382 | </TR> |
---|
| 383 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 384 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 385 | <CODE>protected <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
| 386 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#getWebAppsPath()">getWebAppsPath</A></B>()</CODE> |
---|
| 387 | |
---|
| 388 | <BR> |
---|
| 389 | Get the pathname to the webapps files.</TD> |
---|
| 390 | </TR> |
---|
| 391 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 392 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 393 | <CODE> void</CODE></FONT></TD> |
---|
| 394 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#join()">join</A></B>()</CODE> |
---|
| 395 | |
---|
| 396 | <BR> |
---|
| 397 | </TD> |
---|
| 398 | </TR> |
---|
| 399 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 400 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 401 | <CODE> void</CODE></FONT></TD> |
---|
| 402 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#setAttribute(java.lang.String, java.lang.Object)">setAttribute</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, |
---|
| 403 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> value)</CODE> |
---|
| 404 | |
---|
| 405 | <BR> |
---|
| 406 | Set a value in the webapp context.</TD> |
---|
| 407 | </TR> |
---|
| 408 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 409 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 410 | <CODE> void</CODE></FONT></TD> |
---|
| 411 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#setThreads(int, int)">setThreads</A></B>(int min, |
---|
| 412 | int max)</CODE> |
---|
| 413 | |
---|
| 414 | <BR> |
---|
| 415 | Set the min, max number of worker threads (simultaneous connections).</TD> |
---|
| 416 | </TR> |
---|
| 417 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 418 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 419 | <CODE> void</CODE></FONT></TD> |
---|
| 420 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#start()">start</A></B>()</CODE> |
---|
| 421 | |
---|
| 422 | <BR> |
---|
| 423 | Start the server.</TD> |
---|
| 424 | </TR> |
---|
| 425 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 426 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 427 | <CODE> void</CODE></FONT></TD> |
---|
| 428 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/http/HttpServer.html#stop()">stop</A></B>()</CODE> |
---|
| 429 | |
---|
| 430 | <BR> |
---|
| 431 | stop the server</TD> |
---|
| 432 | </TR> |
---|
| 433 | </TABLE> |
---|
| 434 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 435 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 436 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 437 | <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> |
---|
| 438 | </TR> |
---|
| 439 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 440 | <TD><CODE><A HREF="http://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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> |
---|
| 441 | </TR> |
---|
| 442 | </TABLE> |
---|
| 443 | |
---|
| 444 | <P> |
---|
| 445 | |
---|
| 446 | <!-- ============ FIELD DETAIL =========== --> |
---|
| 447 | |
---|
| 448 | <A NAME="field_detail"><!-- --></A> |
---|
| 449 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 450 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 451 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 452 | <B>Field Detail</B></FONT></TH> |
---|
| 453 | </TR> |
---|
| 454 | </TABLE> |
---|
| 455 | |
---|
| 456 | <A NAME="LOG"><!-- --></A><H3> |
---|
| 457 | LOG</H3> |
---|
| 458 | <PRE> |
---|
| 459 | public static final org.apache.commons.logging.Log <B>LOG</B></PRE> |
---|
| 460 | <DL> |
---|
| 461 | <DL> |
---|
| 462 | </DL> |
---|
| 463 | </DL> |
---|
| 464 | <HR> |
---|
| 465 | |
---|
| 466 | <A NAME="webServer"><!-- --></A><H3> |
---|
| 467 | webServer</H3> |
---|
| 468 | <PRE> |
---|
| 469 | protected final org.mortbay.jetty.Server <B>webServer</B></PRE> |
---|
| 470 | <DL> |
---|
| 471 | <DL> |
---|
| 472 | </DL> |
---|
| 473 | </DL> |
---|
| 474 | <HR> |
---|
| 475 | |
---|
| 476 | <A NAME="listener"><!-- --></A><H3> |
---|
| 477 | listener</H3> |
---|
| 478 | <PRE> |
---|
| 479 | protected final org.mortbay.jetty.Connector <B>listener</B></PRE> |
---|
| 480 | <DL> |
---|
| 481 | <DL> |
---|
| 482 | </DL> |
---|
| 483 | </DL> |
---|
| 484 | <HR> |
---|
| 485 | |
---|
| 486 | <A NAME="webAppContext"><!-- --></A><H3> |
---|
| 487 | webAppContext</H3> |
---|
| 488 | <PRE> |
---|
| 489 | protected final org.mortbay.jetty.webapp.WebAppContext <B>webAppContext</B></PRE> |
---|
| 490 | <DL> |
---|
| 491 | <DL> |
---|
| 492 | </DL> |
---|
| 493 | </DL> |
---|
| 494 | <HR> |
---|
| 495 | |
---|
| 496 | <A NAME="findPort"><!-- --></A><H3> |
---|
| 497 | findPort</H3> |
---|
| 498 | <PRE> |
---|
| 499 | protected final boolean <B>findPort</B></PRE> |
---|
| 500 | <DL> |
---|
| 501 | <DL> |
---|
| 502 | </DL> |
---|
| 503 | </DL> |
---|
| 504 | <HR> |
---|
| 505 | |
---|
| 506 | <A NAME="defaultContexts"><!-- --></A><H3> |
---|
| 507 | defaultContexts</H3> |
---|
| 508 | <PRE> |
---|
| 509 | protected final <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><org.mortbay.jetty.servlet.Context,<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</A>> <B>defaultContexts</B></PRE> |
---|
| 510 | <DL> |
---|
| 511 | <DL> |
---|
| 512 | </DL> |
---|
| 513 | </DL> |
---|
| 514 | <HR> |
---|
| 515 | |
---|
| 516 | <A NAME="filterNames"><!-- --></A><H3> |
---|
| 517 | filterNames</H3> |
---|
| 518 | <PRE> |
---|
| 519 | protected final <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> <B>filterNames</B></PRE> |
---|
| 520 | <DL> |
---|
| 521 | <DL> |
---|
| 522 | </DL> |
---|
| 523 | </DL> |
---|
| 524 | |
---|
| 525 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
| 526 | |
---|
| 527 | <A NAME="constructor_detail"><!-- --></A> |
---|
| 528 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 529 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 530 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 531 | <B>Constructor Detail</B></FONT></TH> |
---|
| 532 | </TR> |
---|
| 533 | </TABLE> |
---|
| 534 | |
---|
| 535 | <A NAME="HttpServer(java.lang.String, java.lang.String, int, boolean)"><!-- --></A><H3> |
---|
| 536 | HttpServer</H3> |
---|
| 537 | <PRE> |
---|
| 538 | public <B>HttpServer</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, |
---|
| 539 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> bindAddress, |
---|
| 540 | int port, |
---|
| 541 | boolean findPort) |
---|
| 542 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 543 | <DL> |
---|
| 544 | <DD>Same as this(name, bindAddress, port, findPort, null); |
---|
| 545 | <P> |
---|
| 546 | <DL> |
---|
| 547 | |
---|
| 548 | <DT><B>Throws:</B> |
---|
| 549 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 550 | </DL> |
---|
| 551 | <HR> |
---|
| 552 | |
---|
| 553 | <A NAME="HttpServer(java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration)"><!-- --></A><H3> |
---|
| 554 | HttpServer</H3> |
---|
| 555 | <PRE> |
---|
| 556 | public <B>HttpServer</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, |
---|
| 557 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> bindAddress, |
---|
| 558 | int port, |
---|
| 559 | boolean findPort, |
---|
| 560 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf) |
---|
| 561 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 562 | <DL> |
---|
| 563 | <DD>Create a status server on the given port. |
---|
| 564 | The jsp scripts are taken from src/webapps/<name>. |
---|
| 565 | <P> |
---|
| 566 | <DL> |
---|
| 567 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the server<DD><CODE>port</CODE> - The port to use on the server<DD><CODE>findPort</CODE> - whether the server should start at the given port and |
---|
| 568 | increment by 1 until it finds a free port.<DD><CODE>conf</CODE> - Configuration |
---|
| 569 | <DT><B>Throws:</B> |
---|
| 570 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 571 | </DL> |
---|
| 572 | |
---|
| 573 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 574 | |
---|
| 575 | <A NAME="method_detail"><!-- --></A> |
---|
| 576 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 577 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 578 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 579 | <B>Method Detail</B></FONT></TH> |
---|
| 580 | </TR> |
---|
| 581 | </TABLE> |
---|
| 582 | |
---|
| 583 | <A NAME="createBaseListener(org.apache.hadoop.conf.Configuration)"><!-- --></A><H3> |
---|
| 584 | createBaseListener</H3> |
---|
| 585 | <PRE> |
---|
| 586 | protected org.mortbay.jetty.Connector <B>createBaseListener</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf) |
---|
| 587 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 588 | <DL> |
---|
| 589 | <DD>Create a required listener for the Jetty instance listening on the port |
---|
| 590 | provided. This wrapper and all subclasses must create at least one |
---|
| 591 | listener. |
---|
| 592 | <P> |
---|
| 593 | <DD><DL> |
---|
| 594 | </DL> |
---|
| 595 | </DD> |
---|
| 596 | <DD><DL> |
---|
| 597 | |
---|
| 598 | <DT><B>Throws:</B> |
---|
| 599 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 600 | </DD> |
---|
| 601 | </DL> |
---|
| 602 | <HR> |
---|
| 603 | |
---|
| 604 | <A NAME="addDefaultApps(org.mortbay.jetty.handler.ContextHandlerCollection, java.lang.String)"><!-- --></A><H3> |
---|
| 605 | addDefaultApps</H3> |
---|
| 606 | <PRE> |
---|
| 607 | protected void <B>addDefaultApps</B>(org.mortbay.jetty.handler.ContextHandlerCollection parent, |
---|
| 608 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> appDir) |
---|
| 609 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 610 | <DL> |
---|
| 611 | <DD>Add default apps. |
---|
| 612 | <P> |
---|
| 613 | <DD><DL> |
---|
| 614 | </DL> |
---|
| 615 | </DD> |
---|
| 616 | <DD><DL> |
---|
| 617 | <DT><B>Parameters:</B><DD><CODE>appDir</CODE> - The application directory |
---|
| 618 | <DT><B>Throws:</B> |
---|
| 619 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 620 | </DD> |
---|
| 621 | </DL> |
---|
| 622 | <HR> |
---|
| 623 | |
---|
| 624 | <A NAME="addDefaultServlets()"><!-- --></A><H3> |
---|
| 625 | addDefaultServlets</H3> |
---|
| 626 | <PRE> |
---|
| 627 | protected void <B>addDefaultServlets</B>()</PRE> |
---|
| 628 | <DL> |
---|
| 629 | <DD>Add default servlets. |
---|
| 630 | <P> |
---|
| 631 | <DD><DL> |
---|
| 632 | </DL> |
---|
| 633 | </DD> |
---|
| 634 | <DD><DL> |
---|
| 635 | </DL> |
---|
| 636 | </DD> |
---|
| 637 | </DL> |
---|
| 638 | <HR> |
---|
| 639 | |
---|
| 640 | <A NAME="addContext(org.mortbay.jetty.servlet.Context, boolean)"><!-- --></A><H3> |
---|
| 641 | addContext</H3> |
---|
| 642 | <PRE> |
---|
| 643 | public void <B>addContext</B>(org.mortbay.jetty.servlet.Context ctxt, |
---|
| 644 | boolean isFiltered) |
---|
| 645 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 646 | <DL> |
---|
| 647 | <DD><DL> |
---|
| 648 | </DL> |
---|
| 649 | </DD> |
---|
| 650 | <DD><DL> |
---|
| 651 | |
---|
| 652 | <DT><B>Throws:</B> |
---|
| 653 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 654 | </DD> |
---|
| 655 | </DL> |
---|
| 656 | <HR> |
---|
| 657 | |
---|
| 658 | <A NAME="addContext(java.lang.String, java.lang.String, boolean)"><!-- --></A><H3> |
---|
| 659 | addContext</H3> |
---|
| 660 | <PRE> |
---|
| 661 | protected void <B>addContext</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> pathSpec, |
---|
| 662 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> dir, |
---|
| 663 | boolean isFiltered) |
---|
| 664 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 665 | <DL> |
---|
| 666 | <DD>Add a context |
---|
| 667 | <P> |
---|
| 668 | <DD><DL> |
---|
| 669 | </DL> |
---|
| 670 | </DD> |
---|
| 671 | <DD><DL> |
---|
| 672 | <DT><B>Parameters:</B><DD><CODE>pathSpec</CODE> - The path spec for the context<DD><CODE>dir</CODE> - The directory containing the context<DD><CODE>isFiltered</CODE> - if true, the servlet is added to the filter path mapping |
---|
| 673 | <DT><B>Throws:</B> |
---|
| 674 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 675 | </DD> |
---|
| 676 | </DL> |
---|
| 677 | <HR> |
---|
| 678 | |
---|
| 679 | <A NAME="setAttribute(java.lang.String, java.lang.Object)"><!-- --></A><H3> |
---|
| 680 | setAttribute</H3> |
---|
| 681 | <PRE> |
---|
| 682 | public void <B>setAttribute</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, |
---|
| 683 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> value)</PRE> |
---|
| 684 | <DL> |
---|
| 685 | <DD>Set a value in the webapp context. These values are available to the jsp |
---|
| 686 | pages as "application.getAttribute(name)". |
---|
| 687 | <P> |
---|
| 688 | <DD><DL> |
---|
| 689 | </DL> |
---|
| 690 | </DD> |
---|
| 691 | <DD><DL> |
---|
| 692 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the attribute<DD><CODE>value</CODE> - The value of the attribute</DL> |
---|
| 693 | </DD> |
---|
| 694 | </DL> |
---|
| 695 | <HR> |
---|
| 696 | |
---|
| 697 | <A NAME="addServlet(java.lang.String, java.lang.String, java.lang.Class)"><!-- --></A><H3> |
---|
| 698 | addServlet</H3> |
---|
| 699 | <PRE> |
---|
| 700 | public void <B>addServlet</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, |
---|
| 701 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> pathSpec, |
---|
| 702 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends javax.servlet.http.HttpServlet> clazz)</PRE> |
---|
| 703 | <DL> |
---|
| 704 | <DD>Add a servlet in the server. |
---|
| 705 | <P> |
---|
| 706 | <DD><DL> |
---|
| 707 | </DL> |
---|
| 708 | </DD> |
---|
| 709 | <DD><DL> |
---|
| 710 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the servlet (can be passed as null)<DD><CODE>pathSpec</CODE> - The path spec for the servlet<DD><CODE>clazz</CODE> - The servlet class</DL> |
---|
| 711 | </DD> |
---|
| 712 | </DL> |
---|
| 713 | <HR> |
---|
| 714 | |
---|
| 715 | <A NAME="addInternalServlet(java.lang.String, java.lang.String, java.lang.Class)"><!-- --></A><H3> |
---|
| 716 | addInternalServlet</H3> |
---|
| 717 | <PRE> |
---|
| 718 | <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A> |
---|
| 719 | </FONT>public void <B>addInternalServlet</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, |
---|
| 720 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> pathSpec, |
---|
| 721 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends javax.servlet.http.HttpServlet> clazz)</PRE> |
---|
| 722 | <DL> |
---|
| 723 | <DD><B>Deprecated.</B> <I>this is a temporary method</I> |
---|
| 724 | <P> |
---|
| 725 | <DD>Add an internal servlet in the server. |
---|
| 726 | <P> |
---|
| 727 | <DD><DL> |
---|
| 728 | </DL> |
---|
| 729 | </DD> |
---|
| 730 | <DD><DL> |
---|
| 731 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the servlet (can be passed as null)<DD><CODE>pathSpec</CODE> - The path spec for the servlet<DD><CODE>clazz</CODE> - The servlet class</DL> |
---|
| 732 | </DD> |
---|
| 733 | </DL> |
---|
| 734 | <HR> |
---|
| 735 | |
---|
| 736 | <A NAME="addFilter(java.lang.String, java.lang.String, java.util.Map)"><!-- --></A><H3> |
---|
| 737 | addFilter</H3> |
---|
| 738 | <PRE> |
---|
| 739 | public void <B>addFilter</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, |
---|
| 740 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> classname, |
---|
| 741 | <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> parameters)</PRE> |
---|
| 742 | <DL> |
---|
| 743 | <DD>Add a filter to the container. |
---|
| 744 | <P> |
---|
| 745 | <DD><DL> |
---|
| 746 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/http/FilterContainer.html#addFilter(java.lang.String, java.lang.String, java.util.Map)">addFilter</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/http/FilterContainer.html" title="interface in org.apache.hadoop.http">FilterContainer</A></CODE></DL> |
---|
| 747 | </DD> |
---|
| 748 | <DD><DL> |
---|
| 749 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - Filter name<DD><CODE>classname</CODE> - Filter class name<DD><CODE>parameters</CODE> - a map from parameter names to initial values</DL> |
---|
| 750 | </DD> |
---|
| 751 | </DL> |
---|
| 752 | <HR> |
---|
| 753 | |
---|
| 754 | <A NAME="addGlobalFilter(java.lang.String, java.lang.String, java.util.Map)"><!-- --></A><H3> |
---|
| 755 | addGlobalFilter</H3> |
---|
| 756 | <PRE> |
---|
| 757 | public void <B>addGlobalFilter</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, |
---|
| 758 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> classname, |
---|
| 759 | <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> parameters)</PRE> |
---|
| 760 | <DL> |
---|
| 761 | <DD>Add a global filter to the container. |
---|
| 762 | <P> |
---|
| 763 | <DD><DL> |
---|
| 764 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/http/FilterContainer.html#addGlobalFilter(java.lang.String, java.lang.String, java.util.Map)">addGlobalFilter</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/http/FilterContainer.html" title="interface in org.apache.hadoop.http">FilterContainer</A></CODE></DL> |
---|
| 765 | </DD> |
---|
| 766 | <DD><DL> |
---|
| 767 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - filter name<DD><CODE>classname</CODE> - filter class name<DD><CODE>parameters</CODE> - a map from parameter names to initial values</DL> |
---|
| 768 | </DD> |
---|
| 769 | </DL> |
---|
| 770 | <HR> |
---|
| 771 | |
---|
| 772 | <A NAME="defineFilter(org.mortbay.jetty.servlet.Context, java.lang.String, java.lang.String, java.util.Map, java.lang.String[])"><!-- --></A><H3> |
---|
| 773 | defineFilter</H3> |
---|
| 774 | <PRE> |
---|
| 775 | protected void <B>defineFilter</B>(org.mortbay.jetty.servlet.Context ctx, |
---|
| 776 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, |
---|
| 777 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> classname, |
---|
| 778 | <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> parameters, |
---|
| 779 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] urls)</PRE> |
---|
| 780 | <DL> |
---|
| 781 | <DD>Define a filter for a context and set up default url mappings. |
---|
| 782 | <P> |
---|
| 783 | <DD><DL> |
---|
| 784 | </DL> |
---|
| 785 | </DD> |
---|
| 786 | <DD><DL> |
---|
| 787 | </DL> |
---|
| 788 | </DD> |
---|
| 789 | </DL> |
---|
| 790 | <HR> |
---|
| 791 | |
---|
| 792 | <A NAME="addFilterPathMapping(java.lang.String, org.mortbay.jetty.servlet.Context)"><!-- --></A><H3> |
---|
| 793 | addFilterPathMapping</H3> |
---|
| 794 | <PRE> |
---|
| 795 | protected void <B>addFilterPathMapping</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> pathSpec, |
---|
| 796 | org.mortbay.jetty.servlet.Context webAppCtx)</PRE> |
---|
| 797 | <DL> |
---|
| 798 | <DD>Add the path spec to the filter path mapping. |
---|
| 799 | <P> |
---|
| 800 | <DD><DL> |
---|
| 801 | </DL> |
---|
| 802 | </DD> |
---|
| 803 | <DD><DL> |
---|
| 804 | <DT><B>Parameters:</B><DD><CODE>pathSpec</CODE> - The path spec<DD><CODE>webAppCtx</CODE> - The WebApplicationContext to add to</DL> |
---|
| 805 | </DD> |
---|
| 806 | </DL> |
---|
| 807 | <HR> |
---|
| 808 | |
---|
| 809 | <A NAME="getAttribute(java.lang.String)"><!-- --></A><H3> |
---|
| 810 | getAttribute</H3> |
---|
| 811 | <PRE> |
---|
| 812 | public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> <B>getAttribute</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</PRE> |
---|
| 813 | <DL> |
---|
| 814 | <DD>Get the value in the webapp context. |
---|
| 815 | <P> |
---|
| 816 | <DD><DL> |
---|
| 817 | </DL> |
---|
| 818 | </DD> |
---|
| 819 | <DD><DL> |
---|
| 820 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the attribute |
---|
| 821 | <DT><B>Returns:</B><DD>The value of the attribute</DL> |
---|
| 822 | </DD> |
---|
| 823 | </DL> |
---|
| 824 | <HR> |
---|
| 825 | |
---|
| 826 | <A NAME="getWebAppsPath()"><!-- --></A><H3> |
---|
| 827 | getWebAppsPath</H3> |
---|
| 828 | <PRE> |
---|
| 829 | protected <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getWebAppsPath</B>() |
---|
| 830 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 831 | <DL> |
---|
| 832 | <DD>Get the pathname to the webapps files. |
---|
| 833 | <P> |
---|
| 834 | <DD><DL> |
---|
| 835 | </DL> |
---|
| 836 | </DD> |
---|
| 837 | <DD><DL> |
---|
| 838 | |
---|
| 839 | <DT><B>Returns:</B><DD>the pathname as a URL |
---|
| 840 | <DT><B>Throws:</B> |
---|
| 841 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - if 'webapps' directory cannot be found on CLASSPATH.</DL> |
---|
| 842 | </DD> |
---|
| 843 | </DL> |
---|
| 844 | <HR> |
---|
| 845 | |
---|
| 846 | <A NAME="getPort()"><!-- --></A><H3> |
---|
| 847 | getPort</H3> |
---|
| 848 | <PRE> |
---|
| 849 | public int <B>getPort</B>()</PRE> |
---|
| 850 | <DL> |
---|
| 851 | <DD>Get the port that the server is on |
---|
| 852 | <P> |
---|
| 853 | <DD><DL> |
---|
| 854 | </DL> |
---|
| 855 | </DD> |
---|
| 856 | <DD><DL> |
---|
| 857 | |
---|
| 858 | <DT><B>Returns:</B><DD>the port</DL> |
---|
| 859 | </DD> |
---|
| 860 | </DL> |
---|
| 861 | <HR> |
---|
| 862 | |
---|
| 863 | <A NAME="setThreads(int, int)"><!-- --></A><H3> |
---|
| 864 | setThreads</H3> |
---|
| 865 | <PRE> |
---|
| 866 | public void <B>setThreads</B>(int min, |
---|
| 867 | int max)</PRE> |
---|
| 868 | <DL> |
---|
| 869 | <DD>Set the min, max number of worker threads (simultaneous connections). |
---|
| 870 | <P> |
---|
| 871 | <DD><DL> |
---|
| 872 | </DL> |
---|
| 873 | </DD> |
---|
| 874 | <DD><DL> |
---|
| 875 | </DL> |
---|
| 876 | </DD> |
---|
| 877 | </DL> |
---|
| 878 | <HR> |
---|
| 879 | |
---|
| 880 | <A NAME="addSslListener(java.net.InetSocketAddress, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> |
---|
| 881 | addSslListener</H3> |
---|
| 882 | <PRE> |
---|
| 883 | <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A> |
---|
| 884 | </FONT>public void <B>addSslListener</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/net/InetSocketAddress.html?is-external=true" title="class or interface in java.net">InetSocketAddress</A> addr, |
---|
| 885 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> keystore, |
---|
| 886 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> storPass, |
---|
| 887 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> keyPass) |
---|
| 888 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 889 | <DL> |
---|
| 890 | <DD><B>Deprecated.</B> <I>Use <A HREF="../../../../org/apache/hadoop/http/HttpServer.html#addSslListener(java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration, boolean)"><CODE>addSslListener(InetSocketAddress, Configuration, boolean)</CODE></A></I> |
---|
| 891 | <P> |
---|
| 892 | <DD>Configure an ssl listener on the server. |
---|
| 893 | <P> |
---|
| 894 | <DD><DL> |
---|
| 895 | </DL> |
---|
| 896 | </DD> |
---|
| 897 | <DD><DL> |
---|
| 898 | <DT><B>Parameters:</B><DD><CODE>addr</CODE> - address to listen on<DD><CODE>keystore</CODE> - location of the keystore<DD><CODE>storPass</CODE> - password for the keystore<DD><CODE>keyPass</CODE> - password for the key |
---|
| 899 | <DT><B>Throws:</B> |
---|
| 900 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 901 | </DD> |
---|
| 902 | </DL> |
---|
| 903 | <HR> |
---|
| 904 | |
---|
| 905 | <A NAME="addSslListener(java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration, boolean)"><!-- --></A><H3> |
---|
| 906 | addSslListener</H3> |
---|
| 907 | <PRE> |
---|
| 908 | public void <B>addSslListener</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/net/InetSocketAddress.html?is-external=true" title="class or interface in java.net">InetSocketAddress</A> addr, |
---|
| 909 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> sslConf, |
---|
| 910 | boolean needClientAuth) |
---|
| 911 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 912 | <DL> |
---|
| 913 | <DD>Configure an ssl listener on the server. |
---|
| 914 | <P> |
---|
| 915 | <DD><DL> |
---|
| 916 | </DL> |
---|
| 917 | </DD> |
---|
| 918 | <DD><DL> |
---|
| 919 | <DT><B>Parameters:</B><DD><CODE>addr</CODE> - address to listen on<DD><CODE>sslConf</CODE> - conf to retrieve ssl options<DD><CODE>needClientAuth</CODE> - whether client authentication is required |
---|
| 920 | <DT><B>Throws:</B> |
---|
| 921 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 922 | </DD> |
---|
| 923 | </DL> |
---|
| 924 | <HR> |
---|
| 925 | |
---|
| 926 | <A NAME="start()"><!-- --></A><H3> |
---|
| 927 | start</H3> |
---|
| 928 | <PRE> |
---|
| 929 | public void <B>start</B>() |
---|
| 930 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 931 | <DL> |
---|
| 932 | <DD>Start the server. Does not wait for the server to start. |
---|
| 933 | <P> |
---|
| 934 | <DD><DL> |
---|
| 935 | </DL> |
---|
| 936 | </DD> |
---|
| 937 | <DD><DL> |
---|
| 938 | |
---|
| 939 | <DT><B>Throws:</B> |
---|
| 940 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 941 | </DD> |
---|
| 942 | </DL> |
---|
| 943 | <HR> |
---|
| 944 | |
---|
| 945 | <A NAME="stop()"><!-- --></A><H3> |
---|
| 946 | stop</H3> |
---|
| 947 | <PRE> |
---|
| 948 | public void <B>stop</B>() |
---|
| 949 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE> |
---|
| 950 | <DL> |
---|
| 951 | <DD>stop the server |
---|
| 952 | <P> |
---|
| 953 | <DD><DL> |
---|
| 954 | </DL> |
---|
| 955 | </DD> |
---|
| 956 | <DD><DL> |
---|
| 957 | |
---|
| 958 | <DT><B>Throws:</B> |
---|
| 959 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE></DL> |
---|
| 960 | </DD> |
---|
| 961 | </DL> |
---|
| 962 | <HR> |
---|
| 963 | |
---|
| 964 | <A NAME="join()"><!-- --></A><H3> |
---|
| 965 | join</H3> |
---|
| 966 | <PRE> |
---|
| 967 | public void <B>join</B>() |
---|
| 968 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></PRE> |
---|
| 969 | <DL> |
---|
| 970 | <DD><DL> |
---|
| 971 | </DL> |
---|
| 972 | </DD> |
---|
| 973 | <DD><DL> |
---|
| 974 | |
---|
| 975 | <DT><B>Throws:</B> |
---|
| 976 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></CODE></DL> |
---|
| 977 | </DD> |
---|
| 978 | </DL> |
---|
| 979 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 980 | <HR> |
---|
| 981 | |
---|
| 982 | |
---|
| 983 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 984 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 985 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 986 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 987 | <TR> |
---|
| 988 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 989 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 990 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 991 | <TR ALIGN="center" VALIGN="top"> |
---|
| 992 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 993 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 994 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 995 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/HttpServer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 996 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 997 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 998 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 999 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 1000 | </TR> |
---|
| 1001 | </TABLE> |
---|
| 1002 | </TD> |
---|
| 1003 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 1004 | </EM> |
---|
| 1005 | </TD> |
---|
| 1006 | </TR> |
---|
| 1007 | |
---|
| 1008 | <TR> |
---|
| 1009 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 1010 | <A HREF="../../../../org/apache/hadoop/http/FilterInitializer.html" title="class in org.apache.hadoop.http"><B>PREV CLASS</B></A> |
---|
| 1011 | <A HREF="../../../../org/apache/hadoop/http/HttpServer.StackServlet.html" title="class in org.apache.hadoop.http"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 1012 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 1013 | <A HREF="../../../../index.html?org/apache/hadoop/http/HttpServer.html" target="_top"><B>FRAMES</B></A> |
---|
| 1014 | <A HREF="HttpServer.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 1015 | <SCRIPT type="text/javascript"> |
---|
| 1016 | <!-- |
---|
| 1017 | if(window==top) { |
---|
| 1018 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 1019 | } |
---|
| 1020 | //--> |
---|
| 1021 | </SCRIPT> |
---|
| 1022 | <NOSCRIPT> |
---|
| 1023 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 1024 | </NOSCRIPT> |
---|
| 1025 | |
---|
| 1026 | |
---|
| 1027 | </FONT></TD> |
---|
| 1028 | </TR> |
---|
| 1029 | <TR> |
---|
| 1030 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 1031 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 1032 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 1033 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 1034 | </TR> |
---|
| 1035 | </TABLE> |
---|
| 1036 | <A NAME="skip-navbar_bottom"></A> |
---|
| 1037 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 1038 | |
---|
| 1039 | <HR> |
---|
| 1040 | Copyright © 2009 The Apache Software Foundation |
---|
| 1041 | </BODY> |
---|
| 1042 | </HTML> |
---|