WMA - JSR120
A B C D G H I J K L M N O P R S T U W

A

acceptAndOpen() - Method in interface javax.microedition.io.StreamConnectionNotifier
Returns a StreamConnection that represents a server side socket connection.

B

BINARY_MESSAGE - Static variable in interface javax.wireless.messaging.MessageConnection
Constant for a message type for binary messages (value = "binary").
BinaryMessage - interface javax.wireless.messaging.BinaryMessage.
An interface representing a binary message.

C

close() - Method in interface javax.microedition.io.Connection
Close the connection.
CommConnection - interface javax.microedition.io.CommConnection.
This interface defines a logical serial port connection.
Connection - interface javax.microedition.io.Connection.
This is the most basic type of generic connection.
ConnectionNotFoundException - exception javax.microedition.io.ConnectionNotFoundException.
This class is used to signal that a connection target cannot be found.
ConnectionNotFoundException() - Constructor for class javax.microedition.io.ConnectionNotFoundException
Constructs a ConnectionNotFoundException with no detail message.
ConnectionNotFoundException(String) - Constructor for class javax.microedition.io.ConnectionNotFoundException
Constructs a ConnectionNotFoundException with the specified detail message.
Connector - class javax.microedition.io.Connector.
This class is factory for creating new Connection objects.
ContentConnection - interface javax.microedition.io.ContentConnection.
This interface defines the stream connection over which content is passed.

D

Datagram - interface javax.microedition.io.Datagram.
This is the generic datagram interface.
DatagramConnection - interface javax.microedition.io.DatagramConnection.
This interface defines the capabilities that a datagram connection must have.
DELAY - Static variable in interface javax.microedition.io.SocketConnection
Socket option for the small buffer writing delay (0).

G

GET - Static variable in interface javax.microedition.io.HttpConnection
HTTP Get method.
getAddress() - Method in interface javax.wireless.messaging.Message
Returns the address associated with this message.
getAddress() - Method in interface javax.microedition.io.Datagram
Get the address in the datagram.
getAddress() - Method in interface javax.microedition.io.SocketConnection
Gets the remote address to which the socket is bound.
getBaudRate() - Method in interface javax.microedition.io.CommConnection
Gets the baudrate for the serial port connection.
getCipherSuite() - Method in interface javax.microedition.io.SecurityInfo
Returns the name of the cipher suite in use for the connection.
getData() - Method in interface javax.microedition.io.Datagram
Get the buffer.
getDate() - Method in interface javax.microedition.io.HttpConnection
Returns the value of the date header field.
getEncoding() - Method in interface javax.microedition.io.ContentConnection
Returns a string describing the encoding of the content which the resource connected to is providing.
getExpiration() - Method in interface javax.microedition.io.HttpConnection
Returns the value of the expires header field.
getFile() - Method in interface javax.microedition.io.HttpConnection
Returns the file portion of the URL of this HttpConnection.
getFilter(String) - Static method in class javax.microedition.io.PushRegistry
Retrieve the registered filter for a requested connection.
getHeaderField(int) - Method in interface javax.microedition.io.HttpConnection
Gets a header field value by index.
getHeaderField(String) - Method in interface javax.microedition.io.HttpConnection
Returns the value of the named header field.
getHeaderFieldDate(String, long) - Method in interface javax.microedition.io.HttpConnection
Returns the value of the named field parsed as date.
getHeaderFieldInt(String, int) - Method in interface javax.microedition.io.HttpConnection
Returns the value of the named field parsed as a number.
getHeaderFieldKey(int) - Method in interface javax.microedition.io.HttpConnection
Gets a header field key by index.
getHost() - Method in interface javax.microedition.io.HttpConnection
Returns the host information of the URL of this HttpConnection.
getLastModified() - Method in interface javax.microedition.io.HttpConnection
Returns the value of the last-modified header field.
getLength() - Method in interface javax.microedition.io.ContentConnection
Returns the length of the content which is being provided.
getLength() - Method in interface javax.microedition.io.Datagram
Get the length.
getLocalAddress() - Method in interface javax.microedition.io.UDPDatagramConnection
Gets the local address to which the datagram connection is bound.
getLocalAddress() - Method in interface javax.microedition.io.SocketConnection
Gets the local address to which the socket is bound.
getLocalAddress() - Method in interface javax.microedition.io.ServerSocketConnection
Gets the local address to which the socket is bound.
getLocalPort() - Method in interface javax.microedition.io.UDPDatagramConnection
Returns the local port to which this datagram connection is bound.
getLocalPort() - Method in interface javax.microedition.io.SocketConnection
Returns the local port to which this socket is bound.
getLocalPort() - Method in interface javax.microedition.io.ServerSocketConnection
Returns the local port to which this socket is bound.
getMaximumLength() - Method in interface javax.microedition.io.DatagramConnection
Get the maximum length a datagram can be.
getMIDlet(String) - Static method in class javax.microedition.io.PushRegistry
Retrieve the registered MIDlet for a requested connection.
getNominalLength() - Method in interface javax.microedition.io.DatagramConnection
Get the nominal length of a datagram.
getOffset() - Method in interface javax.microedition.io.Datagram
Get the offset.
getPayloadData() - Method in interface javax.wireless.messaging.BinaryMessage
Returns the message payload data as an array of bytes.
getPayloadText() - Method in interface javax.wireless.messaging.TextMessage
Returns the message payload data as a String.
getPort() - Method in interface javax.microedition.io.SocketConnection
Returns the remote port to which this socket is bound.
getPort() - Method in interface javax.microedition.io.HttpConnection
Returns the network port number of the URL for this HttpConnection.
getPort() - Method in interface javax.microedition.io.HttpsConnection
Returns the network port number of the URL for this HttpsConnection.
getProtocol() - Method in interface javax.microedition.io.HttpConnection
Returns the protocol name of the URL of this HttpConnection.
getProtocolName() - Method in interface javax.microedition.io.SecurityInfo
Returns the secure protocol name.
getProtocolVersion() - Method in interface javax.microedition.io.SecurityInfo
Returns the protocol version.
getQuery() - Method in interface javax.microedition.io.HttpConnection
Returns the query portion of the URL of this HttpConnection.
getRef() - Method in interface javax.microedition.io.HttpConnection
Returns the ref portion of the URL of this HttpConnection.
getRequestMethod() - Method in interface javax.microedition.io.HttpConnection
Get the current request method.
getRequestProperty(String) - Method in interface javax.microedition.io.HttpConnection
Returns the value of the named general request property for this connection.
getResponseCode() - Method in interface javax.microedition.io.HttpConnection
Returns the HTTP response status code.
getResponseMessage() - Method in interface javax.microedition.io.HttpConnection
Gets the HTTP response message, if any, returned along with the response code from a server.
getSecurityInfo() - Method in interface javax.microedition.io.HttpsConnection
Return the security information associated with this successfully opened connection.
getSecurityInfo() - Method in interface javax.microedition.io.SecureConnection
Return the security information associated with this connection when it was opened.
getServerCertificate() - Method in interface javax.microedition.io.SecurityInfo
Returns the Certificate used to establish the secure connection with the server.
getSocketOption(byte) - Method in interface javax.microedition.io.SocketConnection
Get a socket option for the connection.
getTimestamp() - Method in interface javax.wireless.messaging.Message
Returns the timestamp indicating when this message has been sent.
getType() - Method in interface javax.microedition.io.ContentConnection
Returns the type of content that the resource connected to is providing.
getURL() - Method in interface javax.microedition.io.HttpConnection
Return a string representation of the URL for this connection.

H

HEAD - Static variable in interface javax.microedition.io.HttpConnection
HTTP Head method.
HTTP_ACCEPTED - Static variable in interface javax.microedition.io.HttpConnection
202: The request has been accepted for processing, but the processing has not been completed.
HTTP_BAD_GATEWAY - Static variable in interface javax.microedition.io.HttpConnection
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.
HTTP_BAD_METHOD - Static variable in interface javax.microedition.io.HttpConnection
405: The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.
HTTP_BAD_REQUEST - Static variable in interface javax.microedition.io.HttpConnection
400: The request could not be understood by the server due to malformed syntax.
HTTP_CLIENT_TIMEOUT - Static variable in interface javax.microedition.io.HttpConnection
408: The client did not produce a request within the time that the server was prepared to wait.
HTTP_CONFLICT - Static variable in interface javax.microedition.io.HttpConnection
409: The request could not be completed due to a conflict with the current state of the resource.
HTTP_CREATED - Static variable in interface javax.microedition.io.HttpConnection
201: The request has been fulfilled and resulted in a new resource being created.
HTTP_ENTITY_TOO_LARGE - Static variable in interface javax.microedition.io.HttpConnection
413: The server is refusing to process a request because the request entity is larger than the server is willing or able to process.
HTTP_EXPECT_FAILED - Static variable in interface javax.microedition.io.HttpConnection
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.
HTTP_FORBIDDEN - Static variable in interface javax.microedition.io.HttpConnection
403: The server understood the request, but is refusing to fulfill it.
HTTP_GATEWAY_TIMEOUT - Static variable in interface javax.microedition.io.HttpConnection
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.
HTTP_GONE - Static variable in interface javax.microedition.io.HttpConnection
410: The requested resource is no longer available at the server and no forwarding address is known.
HTTP_INTERNAL_ERROR - Static variable in interface javax.microedition.io.HttpConnection
500: The server encountered an unexpected condition which prevented it from fulfilling the request.
HTTP_LENGTH_REQUIRED - Static variable in interface javax.microedition.io.HttpConnection
411: The server refuses to accept the request without a defined Content- Length.
HTTP_MOVED_PERM - Static variable in interface javax.microedition.io.HttpConnection
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.
HTTP_MOVED_TEMP - Static variable in interface javax.microedition.io.HttpConnection
302: The requested resource resides temporarily under a different URI.
HTTP_MULT_CHOICE - Static variable in interface javax.microedition.io.HttpConnection
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.
HTTP_NO_CONTENT - Static variable in interface javax.microedition.io.HttpConnection
204: The server has fulfilled the request but does not need to return an entity-body, and might want to return updated meta-information.
HTTP_NOT_ACCEPTABLE - Static variable in interface javax.microedition.io.HttpConnection
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.
HTTP_NOT_AUTHORITATIVE - Static variable in interface javax.microedition.io.HttpConnection
203: The returned meta-information in the entity-header is not the definitive set as available from the origin server.
HTTP_NOT_FOUND - Static variable in interface javax.microedition.io.HttpConnection
404: The server has not found anything matching the Request-URI.
HTTP_NOT_IMPLEMENTED - Static variable in interface javax.microedition.io.HttpConnection
501: The server does not support the functionality required to fulfill the request.
HTTP_NOT_MODIFIED - Static variable in interface javax.microedition.io.HttpConnection
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.
HTTP_OK - Static variable in interface javax.microedition.io.HttpConnection
200: The request has succeeded.
HTTP_PARTIAL - Static variable in interface javax.microedition.io.HttpConnection
206: The server has fulfilled the partial GET request for the resource.
HTTP_PAYMENT_REQUIRED - Static variable in interface javax.microedition.io.HttpConnection
402: This code is reserved for future use.
HTTP_PRECON_FAILED - Static variable in interface javax.microedition.io.HttpConnection
412: The precondition given in one or more of the request-header fields evaluated to false when it was tested on the server.
HTTP_PROXY_AUTH - Static variable in interface javax.microedition.io.HttpConnection
407: This code is similar to 401 (Unauthorized), but indicates that the client must first authenticate itself with the proxy.
HTTP_REQ_TOO_LONG - Static variable in interface javax.microedition.io.HttpConnection
414: The server is refusing to service the request because the Request-URI is longer than the server is willing to interpret.
HTTP_RESET - Static variable in interface javax.microedition.io.HttpConnection
205: The server has fulfilled the request and the user agent SHOULD reset the document view which caused the request to be sent.
HTTP_SEE_OTHER - Static variable in interface javax.microedition.io.HttpConnection
303: The response to the request can be found under a different URI and SHOULD be retrieved using a GET method on that resource.
HTTP_TEMP_REDIRECT - Static variable in interface javax.microedition.io.HttpConnection
307: The requested resource resides temporarily under a different URI.
HTTP_UNAUTHORIZED - Static variable in interface javax.microedition.io.HttpConnection
401: The request requires user authentication.
HTTP_UNAVAILABLE - Static variable in interface javax.microedition.io.HttpConnection
503: The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
HTTP_UNSUPPORTED_RANGE - Static variable in interface javax.microedition.io.HttpConnection
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.
HTTP_UNSUPPORTED_TYPE - Static variable in interface javax.microedition.io.HttpConnection
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.
HTTP_USE_PROXY - Static variable in interface javax.microedition.io.HttpConnection
305: The requested resource MUST be accessed through the proxy given by the Location field.
HTTP_VERSION - Static variable in interface javax.microedition.io.HttpConnection
505: The server does not support, or refuses to support, the HTTP protocol version that was used in the request message.
HttpConnection - interface javax.microedition.io.HttpConnection.
This interface defines the necessary methods and constants for an HTTP connection.
HttpsConnection - interface javax.microedition.io.HttpsConnection.
This interface defines the necessary methods and constants to establish a secure network connection.

I

InputConnection - interface javax.microedition.io.InputConnection.
This interface defines the capabilities that an input stream connection must have.

J

javax.microedition.io - package javax.microedition.io
This pacakge includes the platform networking interfaces which have been modified for use on platforms that support message connections.
javax.wireless.messaging - package javax.wireless.messaging
This package defines an API which allows applications to send and receive wireless messages.

K

KEEPALIVE - Static variable in interface javax.microedition.io.SocketConnection
Socket option for the keep alive feature (2).

L

LINGER - Static variable in interface javax.microedition.io.SocketConnection
Socket option for the linger time to wait in seconds before closing a connection with pending data output (1).
listConnections(boolean) - Static method in class javax.microedition.io.PushRegistry
Return a list of registered connections for the current MIDlet suite.

M

Message - interface javax.wireless.messaging.Message.
This is the base interface for derived interfaces that represent various types of messages.
MessageConnection - interface javax.wireless.messaging.MessageConnection.
The MessageConnection interface defines the basic functionality for sending and receiving messages.
MessageListener - interface javax.wireless.messaging.MessageListener.
The MessageListener interface provides a mechanism for the application to be notified of incoming messages.

N

newDatagram(byte[], int) - Method in interface javax.microedition.io.DatagramConnection
Make a new datagram object.
newDatagram(byte[], int, String) - Method in interface javax.microedition.io.DatagramConnection
Make a new datagram object.
newDatagram(int) - Method in interface javax.microedition.io.DatagramConnection
Make a new datagram object automatically allocating a buffer.
newDatagram(int, String) - Method in interface javax.microedition.io.DatagramConnection
Make a new datagram object.
newMessage(String) - Method in interface javax.wireless.messaging.MessageConnection
Constructs a new message object of a given type.
newMessage(String, String) - Method in interface javax.wireless.messaging.MessageConnection
Constructs a new Message object of a given type and initializes it with the given destination address.
notifyIncomingMessage(MessageConnection) - Method in interface javax.wireless.messaging.MessageListener
Called by the platform when an incoming message arrives to a MessageConnection where the application has registered this listener object.
numberOfSegments(Message) - Method in interface javax.wireless.messaging.MessageConnection
Returns the number of segments in the underlying protocol that would be needed for sending the specified Message.

O

open(String) - Static method in class javax.microedition.io.Connector
Creates and opens a Connection.
open(String, int) - Static method in class javax.microedition.io.Connector
Creates and opens a Connection.
open(String, int, boolean) - Static method in class javax.microedition.io.Connector
Creates and opens a Connection.
openDataInputStream() - Method in interface javax.microedition.io.InputConnection
Open and return a data input stream for a connection.
openDataInputStream(String) - Static method in class javax.microedition.io.Connector
Creates and opens a connection input stream.
openDataOutputStream() - Method in interface javax.microedition.io.OutputConnection
Open and return a data output stream for a connection.
openDataOutputStream(String) - Static method in class javax.microedition.io.Connector
Creates and opens a connection output stream.
openInputStream() - Method in interface javax.microedition.io.InputConnection
Open and return an input stream for a connection.
openInputStream(String) - Static method in class javax.microedition.io.Connector
Creates and opens a connection input stream.
openOutputStream() - Method in interface javax.microedition.io.OutputConnection
Open and return an output stream for a connection.
openOutputStream(String) - Static method in class javax.microedition.io.Connector
Creates and opens a connection output stream.
OutputConnection - interface javax.microedition.io.OutputConnection.
This interface defines the capabilities that an output stream connection must have.

P

POST - Static variable in interface javax.microedition.io.HttpConnection
HTTP Post method.
PushRegistry - class javax.microedition.io.PushRegistry.
The PushRegistry maintains a list of inbound connections.

R

RCVBUF - Static variable in interface javax.microedition.io.SocketConnection
Socket option for the size of the receiving buffer (3).
READ - Static variable in class javax.microedition.io.Connector
Access mode READ.
READ_WRITE - Static variable in class javax.microedition.io.Connector
Access mode READ_WRITE.
receive() - Method in interface javax.wireless.messaging.MessageConnection
Receives a message.
receive(Datagram) - Method in interface javax.microedition.io.DatagramConnection
Receive a datagram.
registerAlarm(String, long) - Static method in class javax.microedition.io.PushRegistry
Register a time to launch the specified application.
registerConnection(String, String, String) - Static method in class javax.microedition.io.PushRegistry
Register a dynamic connection with the application management software.
reset() - Method in interface javax.microedition.io.Datagram
Zero the read/write pointer as well as the offset and length parameters.

S

SecureConnection - interface javax.microedition.io.SecureConnection.
This interface defines the secure socket stream connection.
SecurityInfo - interface javax.microedition.io.SecurityInfo.
This interface defines methods to access information about a secure network connection.
send(Datagram) - Method in interface javax.microedition.io.DatagramConnection
Send a datagram.
send(Message) - Method in interface javax.wireless.messaging.MessageConnection
Sends a message.
ServerSocketConnection - interface javax.microedition.io.ServerSocketConnection.
This interface defines the server socket stream connection.
setAddress(Datagram) - Method in interface javax.microedition.io.Datagram
Set datagram address, copying the address from another datagram.
setAddress(String) - Method in interface javax.wireless.messaging.Message
Sets the address associated with this message, that is, the address returned by the getAddress method.
setAddress(String) - Method in interface javax.microedition.io.Datagram
Set datagram address.
setBaudRate(int) - Method in interface javax.microedition.io.CommConnection
Sets the baudrate for the serial port connection.
setData(byte[], int, int) - Method in interface javax.microedition.io.Datagram
Set the buffer, offset and length.
setLength(int) - Method in interface javax.microedition.io.Datagram
Set the length.
setMessageListener(MessageListener) - Method in interface javax.wireless.messaging.MessageConnection
Registers a MessageListener object that the platform can notify when a message has been received on this MessageConnection.
setPayloadData(byte[]) - Method in interface javax.wireless.messaging.BinaryMessage
Sets the payload data of this message.
setPayloadText(String) - Method in interface javax.wireless.messaging.TextMessage
Sets the payload data of this message.
setRequestMethod(String) - Method in interface javax.microedition.io.HttpConnection
Set the method for the URL request, one of: GET POST HEAD are legal, subject to protocol restrictions.
setRequestProperty(String, String) - Method in interface javax.microedition.io.HttpConnection
Sets the general request property.
setSocketOption(byte, int) - Method in interface javax.microedition.io.SocketConnection
Set a socket option for the connection.
SNDBUF - Static variable in interface javax.microedition.io.SocketConnection
Socket option for the size of the sending buffer (4).
SocketConnection - interface javax.microedition.io.SocketConnection.
This interface defines the socket stream connection.
StreamConnection - interface javax.microedition.io.StreamConnection.
This interface defines the capabilities that a stream connection must have.
StreamConnectionNotifier - interface javax.microedition.io.StreamConnectionNotifier.
This interface defines the capabilities that a connection notifier must have.

T

TEXT_MESSAGE - Static variable in interface javax.wireless.messaging.MessageConnection
Constant for a message type for text messages (value = "text").
TextMessage - interface javax.wireless.messaging.TextMessage.
An interface representing a text message.

U

UDPDatagramConnection - interface javax.microedition.io.UDPDatagramConnection.
This interface defines a datagram connection which knows it's local end point address.
unregisterConnection(String) - Static method in class javax.microedition.io.PushRegistry
Remove a dynamic connection registration.

W

WRITE - Static variable in class javax.microedition.io.Connector
Access mode WRITE.

A B C D G H I J K L M N O P R S T U W
WMA - JSR120

Submit a comment or suggestion Version 1.0 of WMA Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road,Palo Alto, California, 94303, U.S.A. All Rights Reserved.