net.rim.device.api.io.http
Class MDSPushInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.DataInputStream
|
+--net.rim.device.api.io.http.PushInputStream
|
+--net.rim.device.api.io.http.MDSPushInputStream
- All Implemented Interfaces:
- DataInput
- public final class MDSPushInputStream
- extends PushInputStream
A push input stream specifically for use with MDS connections.
- Since:
- JDE 4.0.0
|
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 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 |
MDSPushInputStream
public MDSPushInputStream(HttpServerConnection connection,
InputStream in)
- Creates a new MDSPushInputStream instance from a connection.
- Parameters:
connection - HttpServerConnection received from the invocation of
HttpServerSocketConnection.acceptAndOpen().in - Input stream associated with the server connection.- Since:
- JDE 4.0.0
getSource
public String getSource()
- Retrieves the source for this push stream.
- Overrides:
getSource in class PushInputStream
- Returns:
- String form of the source of this push; it could be a UID for a
connection, IPv4 address, or SMSC.
- Since:
- JDE 4.0.0
isChannelEncrypted
public boolean isChannelEncrypted()
- Determines if this channel is encrypted.
- Overrides:
isChannelEncrypted in class PushInputStream
- Returns:
- True if this channel is encrypted; otherwise, false.
- Since:
- JDE 4.0.0
decline
public void decline(int reasonCode)
throws IOException
- Declines this push because of the reason provided.
- Overrides:
decline in class PushInputStream
- Parameters:
reasonCode - Code for the reason why the push was declined.- Since:
- JDE 4.0.0
accept
public void accept()
throws IOException
- Accepts this push.
Indicates the push acceptance to the server if the bearer supports
acknowledgement.
- Overrides:
accept in class PushInputStream
- Since:
- JDE 4.0.0
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.