|
|||||||||
Home >> All >> javax >> microedition >> [ io overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
javax.microedition.io
Interface HttpConnection

- All Superinterfaces:
- Connection, ContentConnection, InputConnection, OutputConnection, StreamConnection
- public interface HttpConnection
- extends ContentConnection
Method Summary | |
long |
getDate()
|
long |
getExpiration()
|
java.lang.String |
getFile()
|
java.lang.String |
getHeaderField(int n)
|
java.lang.String |
getHeaderField(java.lang.String name)
|
long |
getHeaderFieldDate(java.lang.String name,
long def)
|
int |
getHeaderFieldInt(java.lang.String name,
int def)
|
java.lang.String |
getHeaderFieldKey(int n)
|
java.lang.String |
getHost()
|
long |
getLastModified()
|
int |
getPort()
|
java.lang.String |
getProtocol()
|
java.lang.String |
getQuery()
|
java.lang.String |
getRef()
|
java.lang.String |
getRequestMethod()
|
java.lang.String |
getRequestProperty(java.lang.String key)
|
int |
getResponseCode()
|
java.lang.String |
getResponseMessage()
|
java.lang.String |
getURL()
|
void |
setRequestMethod(java.lang.String method)
|
void |
setRequestProperty(java.lang.String key,
java.lang.String value)
|
Methods inherited from interface javax.microedition.io.ContentConnection |
getEncoding, getLength, getType |
Methods inherited from interface javax.microedition.io.InputConnection |
openDataInputStream, openInputStream |
Methods inherited from interface javax.microedition.io.Connection |
close |
Methods inherited from interface javax.microedition.io.OutputConnection |
openDataOutputStream, openOutputStream |
Field Detail |
HEAD
public static final java.lang.String HEAD
- See Also:
- Constant Field Values
GET
public static final java.lang.String GET
- See Also:
- Constant Field Values
POST
public static final java.lang.String POST
- See Also:
- Constant Field Values
HTTP_OK
public static final int HTTP_OK
- See Also:
- Constant Field Values
HTTP_CREATED
public static final int HTTP_CREATED
- See Also:
- Constant Field Values
HTTP_ACCEPTED
public static final int HTTP_ACCEPTED
- See Also:
- Constant Field Values
HTTP_NOT_AUTHORITATIVE
public static final int HTTP_NOT_AUTHORITATIVE
- See Also:
- Constant Field Values
HTTP_NO_CONTENT
public static final int HTTP_NO_CONTENT
- See Also:
- Constant Field Values
HTTP_RESET
public static final int HTTP_RESET
- See Also:
- Constant Field Values
HTTP_PARTIAL
public static final int HTTP_PARTIAL
- See Also:
- Constant Field Values
HTTP_MULT_CHOICE
public static final int HTTP_MULT_CHOICE
- See Also:
- Constant Field Values
HTTP_MOVED_PERM
public static final int HTTP_MOVED_PERM
- See Also:
- Constant Field Values
HTTP_MOVED_TEMP
public static final int HTTP_MOVED_TEMP
- See Also:
- Constant Field Values
HTTP_SEE_OTHER
public static final int HTTP_SEE_OTHER
- See Also:
- Constant Field Values
HTTP_NOT_MODIFIED
public static final int HTTP_NOT_MODIFIED
- See Also:
- Constant Field Values
HTTP_USE_PROXY
public static final int HTTP_USE_PROXY
- See Also:
- Constant Field Values
HTTP_TEMP_REDIRECT
public static final int HTTP_TEMP_REDIRECT
- See Also:
- Constant Field Values
HTTP_BAD_REQUEST
public static final int HTTP_BAD_REQUEST
- See Also:
- Constant Field Values
HTTP_UNAUTHORIZED
public static final int HTTP_UNAUTHORIZED
- See Also:
- Constant Field Values
HTTP_PAYMENT_REQUIRED
public static final int HTTP_PAYMENT_REQUIRED
- See Also:
- Constant Field Values
HTTP_FORBIDDEN
public static final int HTTP_FORBIDDEN
- See Also:
- Constant Field Values
HTTP_NOT_FOUND
public static final int HTTP_NOT_FOUND
- See Also:
- Constant Field Values
HTTP_BAD_METHOD
public static final int HTTP_BAD_METHOD
- See Also:
- Constant Field Values
HTTP_NOT_ACCEPTABLE
public static final int HTTP_NOT_ACCEPTABLE
- See Also:
- Constant Field Values
HTTP_PROXY_AUTH
public static final int HTTP_PROXY_AUTH
- See Also:
- Constant Field Values
HTTP_CLIENT_TIMEOUT
public static final int HTTP_CLIENT_TIMEOUT
- See Also:
- Constant Field Values
HTTP_CONFLICT
public static final int HTTP_CONFLICT
- See Also:
- Constant Field Values
HTTP_GONE
public static final int HTTP_GONE
- See Also:
- Constant Field Values
HTTP_LENGTH_REQUIRED
public static final int HTTP_LENGTH_REQUIRED
- See Also:
- Constant Field Values
HTTP_PRECON_FAILED
public static final int HTTP_PRECON_FAILED
- See Also:
- Constant Field Values
HTTP_ENTITY_TOO_LARGE
public static final int HTTP_ENTITY_TOO_LARGE
- See Also:
- Constant Field Values
HTTP_REQ_TOO_LONG
public static final int HTTP_REQ_TOO_LONG
- See Also:
- Constant Field Values
HTTP_UNSUPPORTED_TYPE
public static final int HTTP_UNSUPPORTED_TYPE
- See Also:
- Constant Field Values
HTTP_UNSUPPORTED_RANGE
public static final int HTTP_UNSUPPORTED_RANGE
- See Also:
- Constant Field Values
HTTP_EXPECT_FAILED
public static final int HTTP_EXPECT_FAILED
- See Also:
- Constant Field Values
HTTP_INTERNAL_ERROR
public static final int HTTP_INTERNAL_ERROR
- See Also:
- Constant Field Values
HTTP_NOT_IMPLEMENTED
public static final int HTTP_NOT_IMPLEMENTED
- See Also:
- Constant Field Values
HTTP_BAD_GATEWAY
public static final int HTTP_BAD_GATEWAY
- See Also:
- Constant Field Values
HTTP_UNAVAILABLE
public static final int HTTP_UNAVAILABLE
- See Also:
- Constant Field Values
HTTP_GATEWAY_TIMEOUT
public static final int HTTP_GATEWAY_TIMEOUT
- See Also:
- Constant Field Values
HTTP_VERSION
public static final int HTTP_VERSION
- See Also:
- Constant Field Values
Method Detail |
getURL
public java.lang.String getURL()
getProtocol
public java.lang.String getProtocol()
getHost
public java.lang.String getHost()
getFile
public java.lang.String getFile()
getRef
public java.lang.String getRef()
getQuery
public java.lang.String getQuery()
getPort
public int getPort()
getRequestMethod
public java.lang.String getRequestMethod()
setRequestMethod
public void setRequestMethod(java.lang.String method) throws java.io.IOException
getRequestProperty
public java.lang.String getRequestProperty(java.lang.String key)
setRequestProperty
public void setRequestProperty(java.lang.String key, java.lang.String value) throws java.io.IOException
getResponseCode
public int getResponseCode() throws java.io.IOException
getResponseMessage
public java.lang.String getResponseMessage() throws java.io.IOException
getExpiration
public long getExpiration() throws java.io.IOException
getDate
public long getDate() throws java.io.IOException
getLastModified
public long getLastModified() throws java.io.IOException
getHeaderField
public java.lang.String getHeaderField(java.lang.String name) throws java.io.IOException
getHeaderFieldInt
public int getHeaderFieldInt(java.lang.String name, int def) throws java.io.IOException
getHeaderFieldDate
public long getHeaderFieldDate(java.lang.String name, long def) throws java.io.IOException
getHeaderField
public java.lang.String getHeaderField(int n) throws java.io.IOException
getHeaderFieldKey
public java.lang.String getHeaderFieldKey(int n) throws java.io.IOException
|
|||||||||
Home >> All >> javax >> microedition >> [ io overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |