⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 httpconnection.html

📁 是MIDP 的API 查詢文件, 大家可以看一下裡面的index.html, 再用Package 或 Class 名字來查.
💻 HTML
📖 第 1 页 / 共 5 页
字号:
HTTP_CLIENT_TIMEOUT</H3>
<PRE>
public static final int <B>HTTP_CLIENT_TIMEOUT</B></PRE>
<DL>
<DD>408: The client did not produce a request within the time that the server   was prepared to wait. The client MAY repeat the request without   modifications at any later time.</DL>
<HR>

<A NAME="HTTP_CONFLICT"><!-- --></A><H3>
HTTP_CONFLICT</H3>
<PRE>
public static final int <B>HTTP_CONFLICT</B></PRE>
<DL>
<DD>409: The request could not be completed due to a conflict with the current state of the resource.</DL>
<HR>

<A NAME="HTTP_GONE"><!-- --></A><H3>
HTTP_GONE</H3>
<PRE>
public static final int <B>HTTP_GONE</B></PRE>
<DL>
<DD>410: The requested resource is no longer available at the server and no	forwarding address is known.</DL>
<HR>

<A NAME="HTTP_LENGTH_REQUIRED"><!-- --></A><H3>
HTTP_LENGTH_REQUIRED</H3>
<PRE>
public static final int <B>HTTP_LENGTH_REQUIRED</B></PRE>
<DL>
<DD>411: The server refuses to accept the request without a defined Content-	Length.</DL>
<HR>

<A NAME="HTTP_PRECON_FAILED"><!-- --></A><H3>
HTTP_PRECON_FAILED</H3>
<PRE>
public static final int <B>HTTP_PRECON_FAILED</B></PRE>
<DL>
<DD>412: The precondition given in one or more of the request-header fields	evaluated to false when it was tested on the server.</DL>
<HR>

<A NAME="HTTP_ENTITY_TOO_LARGE"><!-- --></A><H3>
HTTP_ENTITY_TOO_LARGE</H3>
<PRE>
public static final int <B>HTTP_ENTITY_TOO_LARGE</B></PRE>
<DL>
<DD>413: The server is refusing to process a request because the request	entity is larger than the server is willing or able to process.</DL>
<HR>

<A NAME="HTTP_REQ_TOO_LONG"><!-- --></A><H3>
HTTP_REQ_TOO_LONG</H3>
<PRE>
public static final int <B>HTTP_REQ_TOO_LONG</B></PRE>
<DL>
<DD>414: The server is refusing to service the request because the Request-URI is longer than the server is willing to interpret.</DL>
<HR>

<A NAME="HTTP_UNSUPPORTED_TYPE"><!-- --></A><H3>
HTTP_UNSUPPORTED_TYPE</H3>
<PRE>
public static final int <B>HTTP_UNSUPPORTED_TYPE</B></PRE>
<DL>
<DD>415: The server is refusing to service the request because the entity of   the request is in a format not supported by the requested resource   for the requested method.</DL>
<HR>

<A NAME="HTTP_UNSUPPORTED_RANGE"><!-- --></A><H3>
HTTP_UNSUPPORTED_RANGE</H3>
<PRE>
public static final int <B>HTTP_UNSUPPORTED_RANGE</B></PRE>
<DL>
<DD>416: A server SHOULD return a response with this status code if a request   included a Range request-header field , and none of   the range-specifier values in this field overlap the current extent   of the selected resource, and the request did not include an If-Range   request-header field.</DL>
<HR>

<A NAME="HTTP_EXPECT_FAILED"><!-- --></A><H3>
HTTP_EXPECT_FAILED</H3>
<PRE>
public static final int <B>HTTP_EXPECT_FAILED</B></PRE>
<DL>
<DD>417: The expectation given in an Expect request-header field   could not be met by this server, or, if the server is a proxy,   the server has unambiguous evidence that the request could not be met   by the next-hop server.</DL>
<HR>

<A NAME="HTTP_INTERNAL_ERROR"><!-- --></A><H3>
HTTP_INTERNAL_ERROR</H3>
<PRE>
public static final int <B>HTTP_INTERNAL_ERROR</B></PRE>
<DL>
<DD>500: The server encountered an unexpected condition which prevented it	from fulfilling the request.</DL>
<HR>

<A NAME="HTTP_NOT_IMPLEMENTED"><!-- --></A><H3>
HTTP_NOT_IMPLEMENTED</H3>
<PRE>
public static final int <B>HTTP_NOT_IMPLEMENTED</B></PRE>
<DL>
<DD>501: The server does not support the functionality required to fulfill the request.</DL>
<HR>

<A NAME="HTTP_BAD_GATEWAY"><!-- --></A><H3>
HTTP_BAD_GATEWAY</H3>
<PRE>
public static final int <B>HTTP_BAD_GATEWAY</B></PRE>
<DL>
<DD>502: The server, while acting as a gateway or proxy, received an invalid   response from the upstream server it accessed in attempting to   fulfill the request.</DL>
<HR>

<A NAME="HTTP_UNAVAILABLE"><!-- --></A><H3>
HTTP_UNAVAILABLE</H3>
<PRE>
public static final int <B>HTTP_UNAVAILABLE</B></PRE>
<DL>
<DD>503: The server is currently unable to handle the request due to a   temporary overloading or maintenance of the server.</DL>
<HR>

<A NAME="HTTP_GATEWAY_TIMEOUT"><!-- --></A><H3>
HTTP_GATEWAY_TIMEOUT</H3>
<PRE>
public static final int <B>HTTP_GATEWAY_TIMEOUT</B></PRE>
<DL>
<DD>504: The server, while acting as a gateway or proxy, did not receive a   timely response from the upstream server specified by the URI   or some other auxiliary server it needed   to access in attempting to complete the request.</DL>
<HR>

<A NAME="HTTP_VERSION"><!-- --></A><H3>
HTTP_VERSION</H3>
<PRE>
public static final int <B>HTTP_VERSION</B></PRE>
<DL>
<DD>505: The server does not support, or refuses to support, the HTTP  protocol version that was used in the request message.</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->


<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="getURL()"><!-- --></A><H3>
getURL</H3>
<PRE>
public <A HREF="../../../java/lang/String.html">String</A> <B>getURL</B>()</PRE>
<DL>
<DD>Return a string representation of the URL for this connection.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the string representation of the URL for this connection.</DL>
</DD>
</DL>
<HR>

<A NAME="getProtocol()"><!-- --></A><H3>
getProtocol</H3>
<PRE>
public <A HREF="../../../java/lang/String.html">String</A> <B>getProtocol</B>()</PRE>
<DL>
<DD>Returns the protocol name of the URL of this <code>HttpConnection</code>. e.g., http or https<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the protocol of the URL of this <code>HttpConnection</code>.</DL>
</DD>
</DL>
<HR>

<A NAME="getHost()"><!-- --></A><H3>
getHost</H3>
<PRE>
public <A HREF="../../../java/lang/String.html">String</A> <B>getHost</B>()</PRE>
<DL>
<DD>Returns the host information of the URL of this <code>HttpConnection</code>. e.g. host name or IPv4 address<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the host information of the URL of this <code>HttpConnection</code>.</DL>
</DD>
</DL>
<HR>

<A NAME="getFile()"><!-- --></A><H3>
getFile</H3>
<PRE>
public <A HREF="../../../java/lang/String.html">String</A> <B>getFile</B>()</PRE>
<DL>
<DD>Returns the file portion of the URL of this <code>HttpConnection</code>.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the file portion of the URL of this <code>HttpConnection</code>. <code>null</code> is returned if there is no file.</DL>
</DD>
</DL>
<HR>

<A NAME="getRef()"><!-- --></A><H3>
getRef</H3>
<PRE>
public <A HREF="../../../java/lang/String.html">String</A> <B>getRef</B>()</PRE>
<DL>
<DD>Returns the ref portion of the URL of this <code>HttpConnection</code>. RFC2396 specifies the optional fragment identifier as the the text after the crosshatch (#) character in the URL. This information  may be used by the user agent as additional reference information after the resource is successfully retrieved. The format and interpretation of the fragment identifier is dependent on the media type[RFC2046] of the retrieved information.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the ref portion of the URL of this <code>HttpConnection</code>. <code>null</code> is returned if there is no value.</DL>
</DD>
</DL>
<HR>

<A NAME="getQuery()"><!-- --></A><H3>
getQuery</H3>
<PRE>
public <A HREF="../../../java/lang/String.html">String</A> <B>getQuery</B>()</PRE>
<DL>
<DD>Returns the query portion of the URL of this <code>HttpConnection</code>. RFC2396 defines the query component as the text after the first question-mark (?)  character in the URL.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the query portion of the URL of this  <code>HttpConnection</code>. <code>null</code> is returned if there is no value.</DL>
</DD>
</DL>
<HR>

<A NAME="getPort()"><!-- --></A><H3>
getPort</H3>
<PRE>
public int <B>getPort</B>()</PRE>
<DL>
<DD>Returns the network port number of the URL for this <code>HttpConnection</code>.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the network port number of the URL for this <code>HttpConnection</code>. The default HTTP port number (80) is returned if there was no port number in the string passed to <code>Connector.open</code>.</DL>
</DD>
</DL>
<HR>

<A NAME="getRequestMethod()"><!-- --></A><H3>
getRequestMethod</H3>
<PRE>
public <A HREF="../../../java/lang/String.html">String</A> <B>getRequestMethod</B>()</PRE>
<DL>
<DD>Get the current request method. e.g. HEAD, GET, POST The default value is GET.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the HTTP request method<DT><B>See Also: </B><DD><A HREF="../../../javax/microedition/io/HttpConnection.html#setRequestMethod(java.lang.String)"><CODE>setRequestMethod(java.lang.String)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setRequestMethod(java.lang.String)"><!-- --></A><H3>
setRequestMethod</H3>
<PRE>
public void <B>setRequestMethod</B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;method)                      throws <A HREF="../../../java/io/IOException.html">IOException</A></PRE>
<DL>
<DD>Set the method for the URL request, one of: <UL>  <LI>GET  <LI>POST  <LI>HEAD </UL> are legal, subject to protocol restrictions.  The default method is GET.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>method</CODE> - the HTTP method<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/io/IOException.html">IOException</A></CODE> - if the method cannot be reset or if              the requested method isn't valid for HTTP.<DT><B>See Also: </B><DD><A HREF="../../../javax/microedition/io/HttpConnection.html#getRequestMethod()"><CODE>getRequestMethod()</CODE></A></DL>
</

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -