org.microemu.cldc.https
Class Connection

java.lang.Object
  extended by org.microemu.cldc.http.Connection
      extended by org.microemu.cldc.https.Connection
All Implemented Interfaces:
javax.microedition.io.Connection, javax.microedition.io.ContentConnection, javax.microedition.io.HttpConnection, javax.microedition.io.HttpsConnection, javax.microedition.io.InputConnection, javax.microedition.io.OutputConnection, javax.microedition.io.StreamConnection, org.microemu.microedition.io.ConnectionImplementation

public class Connection
extends Connection
implements javax.microedition.io.HttpsConnection


Field Summary
 
Fields inherited from class org.microemu.cldc.http.Connection
allowNetworkConnection, cn, connected
 
Fields inherited from interface javax.microedition.io.HttpConnection
GET, HEAD, HTTP_ACCEPTED, HTTP_BAD_GATEWAY, HTTP_BAD_METHOD, HTTP_BAD_REQUEST, HTTP_CLIENT_TIMEOUT, HTTP_CONFLICT, HTTP_CREATED, HTTP_ENTITY_TOO_LARGE, HTTP_EXPECT_FAILED, HTTP_FORBIDDEN, HTTP_GATEWAY_TIMEOUT, HTTP_GONE, HTTP_INTERNAL_ERROR, HTTP_LENGTH_REQUIRED, HTTP_MOVED_PERM, HTTP_MOVED_TEMP, HTTP_MULT_CHOICE, HTTP_NO_CONTENT, HTTP_NOT_ACCEPTABLE, HTTP_NOT_AUTHORITATIVE, HTTP_NOT_FOUND, HTTP_NOT_IMPLEMENTED, HTTP_NOT_MODIFIED, HTTP_OK, HTTP_PARTIAL, HTTP_PAYMENT_REQUIRED, HTTP_PRECON_FAILED, HTTP_PROXY_AUTH, HTTP_REQ_TOO_LONG, HTTP_RESET, HTTP_SEE_OTHER, HTTP_TEMP_REDIRECT, HTTP_UNAUTHORIZED, HTTP_UNAVAILABLE, HTTP_UNSUPPORTED_RANGE, HTTP_UNSUPPORTED_TYPE, HTTP_USE_PROXY, HTTP_VERSION, POST
 
Constructor Summary
Connection()
           
 
Method Summary
 int getPort()
          Returns the network port number of the URL for this HttpsConnection
 java.lang.String getProtocol()
           
 javax.microedition.io.SecurityInfo getSecurityInfo()
           
 
Methods inherited from class org.microemu.cldc.http.Connection
close, getDate, getEncoding, getExpiration, getFile, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHost, getLastModified, getLength, getQuery, getRef, getRequestMethod, getRequestProperty, getResponseCode, getResponseMessage, getType, getURL, isAllowNetworkConnection, openConnection, openDataInputStream, openDataOutputStream, openInputStream, openOutputStream, setAllowNetworkConnection, setRequestMethod, setRequestProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.microedition.io.HttpConnection
getDate, getExpiration, getFile, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHost, getLastModified, getQuery, getRef, getRequestMethod, getRequestProperty, getResponseCode, getResponseMessage, getURL, setRequestMethod, setRequestProperty
 
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
 
Methods inherited from interface javax.microedition.io.Connection
close
 

Constructor Detail

Connection

public Connection()
Method Detail

getSecurityInfo

public javax.microedition.io.SecurityInfo getSecurityInfo()
                                                   throws java.io.IOException
Specified by:
getSecurityInfo in interface javax.microedition.io.HttpsConnection
Throws:
java.io.IOException

getProtocol

public java.lang.String getProtocol()
Specified by:
getProtocol in interface javax.microedition.io.HttpConnection
Overrides:
getProtocol in class Connection

getPort

public int getPort()
Returns the network port number of the URL for this HttpsConnection

Specified by:
getPort in interface javax.microedition.io.HttpConnection
Specified by:
getPort in interface javax.microedition.io.HttpsConnection
Overrides:
getPort in class Connection
Returns:
the network port number of the URL for this HttpsConnection. The default HTTPS port number (443) is returned if there was no port number in the string passed to Connector.open.


Copyright © 2001-2008 MicroEmulator Team. All Rights Reserved.