|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.rim.blackberry.api.mail.Service
|
+--net.rim.blackberry.api.mail.Transport
Represents an e-mail transport protocol.
You retrieve a Transport instance by invoking
Session.getTransport().
| Method Summary | ||
|
static void |
more(BodyPart bp,
boolean reqAll)
Requests more data from the server for a body part on which more is available. |
|
static void |
send(Message msg)
Sends a message. |
|
static void |
send(Message msg,
ServiceConfiguration sc)
Sends a message using the specified Service |
| Methods inherited from class net.rim.blackberry.api.mail.Service |
addServiceListener, getServiceConfiguration, isConnected, removeServiceListener, setConnected, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static void more(BodyPart bp, boolean reqAll) throws MessagingException
Invoke hasMore on the body part to determine
if more data is available. If a more request is already outstanding on
the body part, this method takes no action. Invoke
moreRequestSent on the body part to
determine if a request has already been sent for more data.
bp - Body part for which to request more data.reqAll - True to request all the data available or false to request
only up to 1500 bytes.SendFailedException - If the request could not be sent.MessagingException - If the body part does not belong to any
Message object, or if the provided body part does not support the
more operationpublic static void send(Message msg) throws MessagingException
msg - Message to send.SendFailedException - If the message cannot be sent to one or more
of the recipients.public static void send(Message msg, ServiceConfiguration sc) throws MessagingException
msg - Message to send.sc - ServiceConfigurationMessagingException - If the message cannot be sent to one or more
of the recipients.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2008 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.