|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ie.ncl.sms.gsm.LongMessageReceiver
public class LongMessageReceiver
Construct a long message receiver. This coalates short message fragments into long messages.
Field Summary | |
---|---|
static int |
DEFAULT_TIMEOUT
The default timeout (5 minutes). |
Fields inherited from interface ie.ncl.sms.MessageAttributeNames |
---|
CC, DCS, EOT_GSM_ESCAPE_CHARACTER, PID, PRIORITY, RECEIPT, RECEIPT_BYTES, RECEIPT_STATUS, RECEIPT_TEXT, REGISTERED, REPLACE, REPLY_PATH, SCA, SCHEDULE, SUBMIT_ERROR, TIMESTAMP, UDH, UDHI, VALIDITY |
Constructor Summary | |
---|---|
LongMessageReceiver(Receiver receiver)
Construct a LongMessageReceiver specifying the underlying SMS interface. |
|
LongMessageReceiver(Receiver receiver,
int timeout)
Construct a LongMessageReceiver specifying the underlying SMS interface and the timeout. |
Method Summary | |
---|---|
void |
close()
Close the connection. |
void |
connect()
Open the connection. |
boolean |
getAlwaysExpectHeaders()
Check to see if the receiver is always expecting a header in the the short messages. |
Message |
receive()
Block until a long message is received. |
void |
setAlwaysExpectHeaders(boolean value)
Always expect the header even if the UDHI field is not set. |
void |
warnings(boolean on)
Log warnings about expired messages. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int DEFAULT_TIMEOUT
Constructor Detail |
---|
public LongMessageReceiver(Receiver receiver, int timeout) throws ConnectionException
ConnectionException
Receiver
public LongMessageReceiver(Receiver receiver) throws ConnectionException
ConnectionException
DEFAULT_TIMEOUT
,
Receiver
Method Detail |
---|
public void setAlwaysExpectHeaders(boolean value)
public boolean getAlwaysExpectHeaders()
getAlwaysExpectHeaders()
public Message receive() throws MessageException, ConnectionException, UserDataHeaderMalformedException
MessageException
ConnectionException
UserDataHeaderMalformedException
public void warnings(boolean on)
public void close()
public void connect() throws ConnectionException
ConnectionException
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |