📄 httpconnection.html
字号:
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface javax.microedition.io.OutputConnection</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>openDataOutputStream, openOutputStream</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="HEAD"><!-- --></A><H3>HEAD</H3><PRE>public static final String <B>HEAD</B></PRE><DL><DD>HTTP Head method.</DL><HR><A NAME="GET"><!-- --></A><H3>GET</H3><PRE>public static final String <B>GET</B></PRE><DL><DD>HTTP Get method.</DL><HR><A NAME="POST"><!-- --></A><H3>POST</H3><PRE>public static final String <B>POST</B></PRE><DL><DD>HTTP Post method.</DL><HR><A NAME="HTTP_OK"><!-- --></A><H3>HTTP_OK</H3><PRE>public static final int <B>HTTP_OK</B></PRE><DL><DD>200: The request has succeeded.</DL><HR><A NAME="HTTP_CREATED"><!-- --></A><H3>HTTP_CREATED</H3><PRE>public static final int <B>HTTP_CREATED</B></PRE><DL><DD>201: The request has been fulfilled and resulted in a new resource being created.</DL><HR><A NAME="HTTP_ACCEPTED"><!-- --></A><H3>HTTP_ACCEPTED</H3><PRE>public static final int <B>HTTP_ACCEPTED</B></PRE><DL><DD>202: The request has been accepted for processing, but the processing has not been completed.</DL><HR><A NAME="HTTP_NOT_AUTHORITATIVE"><!-- --></A><H3>HTTP_NOT_AUTHORITATIVE</H3><PRE>public static final int <B>HTTP_NOT_AUTHORITATIVE</B></PRE><DL><DD>203: The returned meta-information in the entity-header is not the definitive set as available from the origin server.</DL><HR><A NAME="HTTP_NO_CONTENT"><!-- --></A><H3>HTTP_NO_CONTENT</H3><PRE>public static final int <B>HTTP_NO_CONTENT</B></PRE><DL><DD>204: The server has fulfilled the request but does not need to return an entity-body, and might want to return updated meta-information.</DL><HR><A NAME="HTTP_RESET"><!-- --></A><H3>HTTP_RESET</H3><PRE>public static final int <B>HTTP_RESET</B></PRE><DL><DD>205: The server has fulfilled the request and the user agent SHOULD reset the document view which caused the request to be sent.</DL><HR><A NAME="HTTP_PARTIAL"><!-- --></A><H3>HTTP_PARTIAL</H3><PRE>public static final int <B>HTTP_PARTIAL</B></PRE><DL><DD>206: The server has fulfilled the partial GET request for the resource.</DL><HR><A NAME="HTTP_MULT_CHOICE"><!-- --></A><H3>HTTP_MULT_CHOICE</H3><PRE>public static final int <B>HTTP_MULT_CHOICE</B></PRE><DL><DD>300: The requested resource corresponds to any one of a set of representations, each with its own specific location, and agent- driven negotiation information is being provided so that the user (or user agent) can select a preferred representation and redirect its request to that location.</DL><HR><A NAME="HTTP_MOVED_PERM"><!-- --></A><H3>HTTP_MOVED_PERM</H3><PRE>public static final int <B>HTTP_MOVED_PERM</B></PRE><DL><DD>301: The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs.</DL><HR><A NAME="HTTP_MOVED_TEMP"><!-- --></A><H3>HTTP_MOVED_TEMP</H3><PRE>public static final int <B>HTTP_MOVED_TEMP</B></PRE><DL><DD>302: The requested resource resides temporarily under a different URI. (<strong>Note:</strong> the name of this status code reflects the earlier publication of RFC2068, which was changed in RFC2616 from "moved temporalily" to "found". The semantics were not changed. The <code>Location</code> header indicates where the application should resend the request.)</DL><HR><A NAME="HTTP_SEE_OTHER"><!-- --></A><H3>HTTP_SEE_OTHER</H3><PRE>public static final int <B>HTTP_SEE_OTHER</B></PRE><DL><DD>303: The response to the request can be found under a different URI and SHOULD be retrieved using a GET method on that resource.</DL><HR><A NAME="HTTP_NOT_MODIFIED"><!-- --></A><H3>HTTP_NOT_MODIFIED</H3><PRE>public static final int <B>HTTP_NOT_MODIFIED</B></PRE><DL><DD>304: If the client has performed a conditional GET request and access is allowed, but the document has not been modified, the server SHOULD respond with this status code.</DL><HR><A NAME="HTTP_USE_PROXY"><!-- --></A><H3>HTTP_USE_PROXY</H3><PRE>public static final int <B>HTTP_USE_PROXY</B></PRE><DL><DD>305: The requested resource MUST be accessed through the proxy given by the Location field.</DL><HR><A NAME="HTTP_TEMP_REDIRECT"><!-- --></A><H3>HTTP_TEMP_REDIRECT</H3><PRE>public static final int <B>HTTP_TEMP_REDIRECT</B></PRE><DL><DD>307: The requested resource resides temporarily under a different URI.</DL><HR><A NAME="HTTP_BAD_REQUEST"><!-- --></A><H3>HTTP_BAD_REQUEST</H3><PRE>public static final int <B>HTTP_BAD_REQUEST</B></PRE><DL><DD>400: The request could not be understood by the server due to malformed syntax.</DL><HR><A NAME="HTTP_UNAUTHORIZED"><!-- --></A><H3>HTTP_UNAUTHORIZED</H3><PRE>public static final int <B>HTTP_UNAUTHORIZED</B></PRE><DL><DD>401: The request requires user authentication. The response MUST include a WWW-Authenticate header field containing a challenge applicable to the requested resource.</DL><HR><A NAME="HTTP_PAYMENT_REQUIRED"><!-- --></A><H3>HTTP_PAYMENT_REQUIRED</H3><PRE>public static final int <B>HTTP_PAYMENT_REQUIRED</B></PRE><DL><DD>402: This code is reserved for future use.</DL><HR><A NAME="HTTP_FORBIDDEN"><!-- --></A><H3>HTTP_FORBIDDEN</H3><PRE>public static final int <B>HTTP_FORBIDDEN</B></PRE><DL><DD>403: The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated.</DL><HR><A NAME="HTTP_NOT_FOUND"><!-- --></A><H3>HTTP_NOT_FOUND</H3><PRE>public static final int <B>HTTP_NOT_FOUND</B></PRE><DL><DD>404: The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.</DL><HR><A NAME="HTTP_BAD_METHOD"><!-- --></A><H3>HTTP_BAD_METHOD</H3><PRE>public static final int <B>HTTP_BAD_METHOD</B></PRE><DL><DD>405: The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.</DL><HR><A NAME="HTTP_NOT_ACCEPTABLE"><!-- --></A><H3>HTTP_NOT_ACCEPTABLE</H3><PRE>public static final int <B>HTTP_NOT_ACCEPTABLE</B></PRE><DL><DD>406: The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request.</DL><HR><A NAME="HTTP_PROXY_AUTH"><!-- --></A><H3>HTTP_PROXY_AUTH</H3><PRE>public static final int <B>HTTP_PROXY_AUTH</B></PRE><DL><DD>407: This code is similar to 401 (Unauthorized), but indicates that the client must first authenticate itself with the proxy.</DL><HR><A NAME="HTTP_CLIENT_TIMEOUT"><!-- --></A><H3>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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -