?? fileuploadbase.html
字號:
<DD><CODE><A HREF="../../../../org/apache/commons/fileupload/FileUploadBase.FileUploadIOException.html" title="class in org.apache.commons.fileupload">FileUploadBase.FileUploadIOException</A></CODE> - An I/O error occurred. This may be a network error while communicating with the client or a problem while storing the uploaded content.<DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="parseRequest(org.apache.commons.fileupload.RequestContext)"><!-- --></A><H3>parseRequest</H3><PRE>public java.util.List <B>parseRequest</B>(<A HREF="../../../../org/apache/commons/fileupload/RequestContext.html" title="interface in org.apache.commons.fileupload">RequestContext</A> ctx) throws <A HREF="../../../../org/apache/commons/fileupload/FileUploadException.html" title="class in org.apache.commons.fileupload">FileUploadException</A></PRE><DL><DD>Processes an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant <code>multipart/form-data</code> stream.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>ctx</CODE> - The context for the request to be parsed.<DT><B>Returns:</B><DD>A list of <code>FileItem</code> instances parsed from the request, in the order that they were transmitted.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/apache/commons/fileupload/FileUploadException.html" title="class in org.apache.commons.fileupload">FileUploadException</A></CODE> - if there are problems reading/parsing the request or storing files.</DL></DD></DL><HR><A NAME="getBoundary(java.lang.String)"><!-- --></A><H3>getBoundary</H3><PRE>protected byte[] <B>getBoundary</B>(java.lang.String contentType)</PRE><DL><DD>Retrieves the boundary from the <code>Content-type</code> header.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>contentType</CODE> - The value of the content type header from which to extract the boundary value.<DT><B>Returns:</B><DD>The boundary, as a byte array.</DL></DD></DL><HR><A NAME="getFileName(java.util.Map)"><!-- --></A><H3>getFileName</H3><PRE>protected java.lang.String <B>getFileName</B>(java.util.Map headers)</PRE><DL><DD><B>Deprecated.</B> <I>Use <A HREF="../../../../org/apache/commons/fileupload/FileUploadBase.html#getFileName(org.apache.commons.fileupload.FileItemHeaders)"><CODE>getFileName(FileItemHeaders)</CODE></A>.</I><P><DD>Retrieves the file name from the <code>Content-disposition</code> header.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>headers</CODE> - A <code>Map</code> containing the HTTP request headers.<DT><B>Returns:</B><DD>The file name for the current <code>encapsulation</code>.</DL></DD></DL><HR><A NAME="getFileName(org.apache.commons.fileupload.FileItemHeaders)"><!-- --></A><H3>getFileName</H3><PRE>protected java.lang.String <B>getFileName</B>(<A HREF="../../../../org/apache/commons/fileupload/FileItemHeaders.html" title="interface in org.apache.commons.fileupload">FileItemHeaders</A> headers)</PRE><DL><DD>Retrieves the file name from the <code>Content-disposition</code> header.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>headers</CODE> - The HTTP headers object.<DT><B>Returns:</B><DD>The file name for the current <code>encapsulation</code>.</DL></DD></DL><HR><A NAME="getFieldName(org.apache.commons.fileupload.FileItemHeaders)"><!-- --></A><H3>getFieldName</H3><PRE>protected java.lang.String <B>getFieldName</B>(<A HREF="../../../../org/apache/commons/fileupload/FileItemHeaders.html" title="interface in org.apache.commons.fileupload">FileItemHeaders</A> headers)</PRE><DL><DD>Retrieves the field name from the <code>Content-disposition</code> header.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>headers</CODE> - A <code>Map</code> containing the HTTP request headers.<DT><B>Returns:</B><DD>The field name for the current <code>encapsulation</code>.</DL></DD></DL><HR><A NAME="getFieldName(java.util.Map)"><!-- --></A><H3>getFieldName</H3><PRE>protected java.lang.String <B>getFieldName</B>(java.util.Map headers)</PRE><DL><DD><B>Deprecated.</B> <I>Use <A HREF="../../../../org/apache/commons/fileupload/FileUploadBase.html#getFieldName(org.apache.commons.fileupload.FileItemHeaders)"><CODE>getFieldName(FileItemHeaders)</CODE></A>.</I><P><DD>Retrieves the field name from the <code>Content-disposition</code> header.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>headers</CODE> - A <code>Map</code> containing the HTTP request headers.<DT><B>Returns:</B><DD>The field name for the current <code>encapsulation</code>.</DL></DD></DL><HR><A NAME="createItem(java.util.Map, boolean)"><!-- --></A><H3>createItem</H3><PRE>protected <A HREF="../../../../org/apache/commons/fileupload/FileItem.html" title="interface in org.apache.commons.fileupload">FileItem</A> <B>createItem</B>(java.util.Map headers, boolean isFormField) throws <A HREF="../../../../org/apache/commons/fileupload/FileUploadException.html" title="class in org.apache.commons.fileupload">FileUploadException</A></PRE><DL><DD><B>Deprecated.</B> <I>This method is no longer used in favour of internally created instances of <A HREF="../../../../org/apache/commons/fileupload/FileItem.html" title="interface in org.apache.commons.fileupload"><CODE>FileItem</CODE></A>.</I><P><DD>Creates a new <A HREF="../../../../org/apache/commons/fileupload/FileItem.html" title="interface in org.apache.commons.fileupload"><CODE>FileItem</CODE></A> instance.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>headers</CODE> - A <code>Map</code> containing the HTTP request headers.<DD><CODE>isFormField</CODE> - Whether or not this item is a form field, as opposed to a file.<DT><B>Returns:</B><DD>A newly created <code>FileItem</code> instance.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/apache/commons/fileupload/FileUploadException.html" title="class in org.apache.commons.fileupload">FileUploadException</A></CODE> - if an error occurs.</DL></DD></DL><HR><A NAME="getParsedHeaders(java.lang.String)"><!-- --></A><H3>getParsedHeaders</H3><PRE>protected <A HREF="../../../../org/apache/commons/fileupload/FileItemHeaders.html" title="interface in org.apache.commons.fileupload">FileItemHeaders</A> <B>getParsedHeaders</B>(java.lang.String headerPart)</PRE><DL><DD><p> Parses the <code>header-part</code> and returns as key/value pairs. <p> If there are multiple headers of the same names, the name will map to a comma-separated list containing the values.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>headerPart</CODE> - The <code>header-part</code> of the current <code>encapsulation</code>.<DT><B>Returns:</B><DD>A <code>Map</code> containing the parsed HTTP request headers.</DL></DD></DL><HR><A NAME="newFileItemHeaders()"><!-- --></A><H3>newFileItemHeaders</H3><PRE>protected <A HREF="../../../../org/apache/commons/fileupload/util/FileItemHeadersImpl.html" title="class in org.apache.commons.fileupload.util">FileItemHeadersImpl</A> <B>newFileItemHeaders</B>()</PRE><DL><DD>Creates a new instance of <A HREF="../../../../org/apache/commons/fileupload/FileItemHeaders.html" title="interface in org.apache.commons.fileupload"><CODE>FileItemHeaders</CODE></A>.<P><DD><DL><DT><B>Returns:</B><DD>The new instance.</DL></DD></DL><HR><A NAME="parseHeaders(java.lang.String)"><!-- --></A><H3>parseHeaders</H3><PRE>protected java.util.Map <B>parseHeaders</B>(java.lang.String headerPart)</PRE><DL><DD><B>Deprecated.</B> <I>Use <A HREF="../../../../org/apache/commons/fileupload/FileUploadBase.html#getParsedHeaders(java.lang.String)"><CODE>getParsedHeaders(String)</CODE></A></I><P><DD><p> Parses the <code>header-part</code> and returns as key/value pairs. <p> If there are multiple headers of the same names, the name will map to a comma-separated list containing the values.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>headerPart</CODE> - The <code>header-part</code> of the current <code>encapsulation</code>.<DT><B>Returns:</B><DD>A <code>Map</code> containing the parsed HTTP request headers.</DL></DD></DL><HR><A NAME="getHeader(java.util.Map, java.lang.String)"><!-- --></A><H3>getHeader</H3><PRE>protected final java.lang.String <B>getHeader</B>(java.util.Map headers, java.lang.String name)</PRE><DL><DD><B>Deprecated.</B> <I>Use <A HREF="../../../../org/apache/commons/fileupload/FileItemHeaders.html#getHeader(java.lang.String)"><CODE>FileItemHeaders.getHeader(String)</CODE></A>.</I><P><DD>Returns the header with the specified name from the supplied map. The header lookup is case-insensitive.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>headers</CODE> - A <code>Map</code> containing the HTTP request headers.<DD><CODE>name</CODE> - The name of the header to return.<DT><B>Returns:</B><DD>The value of specified header, or a comma-separated list if there were multiple headers of that name.</DL></DD></DL><HR><A NAME="getProgressListener()"><!-- --></A><H3>getProgressListener</H3><PRE>public <A HREF="../../../../org/apache/commons/fileupload/ProgressListener.html" title="interface in org.apache.commons.fileupload">ProgressListener</A> <B>getProgressListener</B>()</PRE><DL><DD>Returns the progress listener.<P><DD><DL><DT><B>Returns:</B><DD>The progress listener, if any, or null.</DL></DD></DL><HR><A NAME="setProgressListener(org.apache.commons.fileupload.ProgressListener)"><!-- --></A><H3>setProgressListener</H3><PRE>public void <B>setProgressListener</B>(<A HREF="../../../../org/apache/commons/fileupload/ProgressListener.html" title="interface in org.apache.commons.fileupload">ProgressListener</A> pListener)</PRE><DL><DD>Sets the progress listener.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>pListener</CODE> - The progress listener, if any. Defaults to null.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/FileUploadBase.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/apache/commons/fileupload/FileUpload.html" title="class in org.apache.commons.fileupload"><B>PREV CLASS</B></A> <A HREF="../../../../org/apache/commons/fileupload/FileUploadBase.FileSizeLimitExceededException.html" title="class in org.apache.commons.fileupload"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/apache/commons/fileupload/FileUploadBase.html" target="_top"><B>FRAMES</B></A> <A HREF="FileUploadBase.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 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><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright ? 2002-2008 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.</BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -