|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.DataInputStream
|
+--net.rim.device.api.io.http.PushInputStream
An abstract class providing a mechanism for push input streams.
| Field Summary | ||
static int |
CONNECTION_IPPP_UID
IPP/UID connection type. |
|
static int |
CONNECTION_IPV4
IPv4 connection type. |
|
static int |
CONNECTION_SMSC
SMSC connection type. |
|
static int |
DECLINE_REASON_USERDCR
Push message discarded due to resource shortage. |
|
static int |
DECLINE_REASON_USERDCU
Content type of Push message cannot be processed. |
|
static int |
DECLINE_REASON_USERPND
Push message cannot be delivered to intended destination. |
|
static int |
DECLINE_REASON_USERRFS
User refused Push message. |
|
| Fields inherited from class java.io.DataInputStream |
in |
| Constructor Summary | ||
PushInputStream(InputStream in)
Creates a new PushInputStream instance from a general input stream. |
||
| Method Summary | ||
abstract void |
accept()
Accepts this push, possibly indicating this to the server if the bearer supports acknowledgement. |
|
abstract void |
decline(int reasonCode)
Declines this push because of the reason provided. |
|
abstract int |
getConnectionType()
Retrieves the connection type for this push. |
|
abstract String |
getSource()
Retrieves the source for this push stream. |
|
abstract boolean |
isChannelEncrypted()
Determines if the channel is encrypted. |
|
| Methods inherited from class java.io.DataInputStream |
available, close, mark, markSupported, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, reset, skip, skipBytes |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DECLINE_REASON_USERRFS
public static final int DECLINE_REASON_USERPND
public static final int DECLINE_REASON_USERDCR
public static final int DECLINE_REASON_USERDCU
public static final int CONNECTION_IPPP_UID
| Constructor Detail |
public PushInputStream(InputStream in)
in - Super input stream.| Method Detail |
public abstract String getSource()
public abstract int getConnectionType()
public abstract void decline(int reasonCode)
throws IOException
reasonCode - Code for the reason why the push was declined.
public abstract void accept()
throws IOException
public abstract boolean isChannelEncrypted()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2004 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.