|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pkrete.jsip2.util.MessageUtil
public class MessageUtil
This class offers methods that are needed for creating SIP2 messages.
| Constructor Summary | |
|---|---|
MessageUtil()
|
|
| Method Summary | |
|---|---|
static String |
computeChecksum(String str)
Computes the checksum of the given string. |
static String |
createFutureDate(int days,
int months)
Creates a new date/time string presented in the SIP2 format "yyyyMMdd HHmmss" by adding the given number of days and months to the current date. |
static String |
getSipDateTime()
Returns the current date and time in the format used in the SIP2 messages. |
static Date |
parseSipDateTime(String dateStr)
Parses the date and time from the given SIP2 formatted string. |
static String |
toSipDateTime(Date date)
Converts the given date to a SIP2 formatted date/time string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageUtil()
| Method Detail |
|---|
public static String computeChecksum(String str)
str - transmission string
public static String getSipDateTime()
public static Date parseSipDateTime(String dateStr)
dateStr - date and time in SIP2 format
public static String toSipDateTime(Date date)
date - date object to be converted
public static String createFutureDate(int days,
int months)
days - number of days to be added to the current datemonths - number of months to be added to the current date
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||