|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.DataInputStream
net.rim.device.api.io.http.PushInputStream
net.rim.device.api.io.http.MDSPushInputStream
public final class MDSPushInputStream
A push input stream specifically for use with the BlackBerry MDS Connection service. An application may use an instance of this class to send an acknowledgement back to the BlackBerry MDS Connection service that indicates the application has accepted a push request.
Field Summary |
---|
Fields inherited from class net.rim.device.api.io.http.PushInputStream |
---|
CONNECTION_IPPP_UID, CONNECTION_IPV4, CONNECTION_SMSC, DECLINE_REASON_USERDCR, DECLINE_REASON_USERDCU, DECLINE_REASON_USERPND, DECLINE_REASON_USERREQ, DECLINE_REASON_USERRFS |
Fields inherited from class java.io.DataInputStream |
---|
in |
Constructor Summary | ||
---|---|---|
|
MDSPushInputStream(HttpServerConnection connection,
InputStream in)
Creates a new MDSPushInputStream instance from a connection. |
Method Summary | ||
---|---|---|
|
void |
accept()
Accepts this push. |
|
void |
decline(int reasonCode)
Declines this push because of the reason provided. |
|
int |
getConnectionType()
Retrieves the connection type for this push. |
|
String |
getSource()
Retrieves the source for this push stream. |
|
boolean |
isChannelEncrypted()
Determines if this channel is encrypted. |
Methods inherited from class net.rim.device.api.io.http.PushInputStream |
---|
getSender |
Methods inherited from class java.io.DataInputStream |
---|
available, close, mark, markSupported, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLong, readShort, readUTF, readUTF, readUnsignedByte, readUnsignedShort, reset, skip, skipBytes |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MDSPushInputStream(HttpServerConnection connection, InputStream in)
connection
- HttpServerConnection received from the invocation of
HttpServerSocketConnection.acceptAndOpen()
.in
- Input stream associated with the server connection.Method Detail |
---|
public String getSource()
getSource
in class PushInputStream
public int getConnectionType()
getConnectionType
in class PushInputStream
PushInputStream.CONNECTION_IPPP_UID
.public boolean isChannelEncrypted()
isChannelEncrypted
in class PushInputStream
public void decline(int reasonCode) throws IOException
decline
in class PushInputStream
reasonCode
- Code for the reason why the push was declined.
IOException
public void accept() throws IOException
Indicates the push acceptance to the server if the bearer supports acknowledgement.
accept
in class PushInputStream
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2010 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. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.