Methods Summary |
---|
public static int | getAcceptedContentLength()Get the maximum number of bytes of the message content that the client
can handle.
return 256 * 1024;
|
public static java.lang.String[] | getBasicPresenceAttributes()Gets the basic presence attributes.
return new String[] {
ImpsTags.OnlineStatus,
ImpsTags.ClientInfo,
ImpsTags.UserAvailability,
};
|
public static java.lang.String | getClientType()Gets the type of the client.
return "MOBILE_PHONE";
|
public static java.lang.String | getInitialDeliveryMethod()Gets the initial IM delivery method that the recipient client prefers in
the set of "PUSH" and "Notify/Get".
return "P";
|
public static int | getMultiTrans()Gets the maximum number of open transactions from both client and
server side at any given time.
return 1;
|
public static int | getMultiTransPerMessage()Gets the maximum number of primitives that the client can handle within
the same transport message at any given time.
return 1;
|
public static int | getParserSize()Get the maximum number of bytes of XML (WBXML, SMS - depending on the
actual encoding) primitive that the client-side parser can handle.
// TODO: we do not really have a limit for this for now. Just return
// a number big enough.
return 256 * 1024;
|
public static com.android.im.imps.ImpsConnectionConfig.TransportType[] | getSupportedBearers()Get supported bearers (HTTP(S), WSP, SMS).
return new TransportType[] {
TransportType.HTTP
};
|
public static com.android.im.imps.ImpsConnectionConfig.CirMethod[] | getSupportedCirMethods()Get supported CIR methods in preferred order.
return new CirMethod[] {
CirMethod.STCP,
CirMethod.SSMS,
CirMethod.SHTTP,
};
|
public static java.lang.String[] | getSupportedPresenceAttribs()Get supported Presence attributes
return new String[] {
ImpsTags.OnlineStatus,
ImpsTags.ClientInfo,
ImpsTags.UserAvailability,
ImpsTags.StatusText,
ImpsTags.StatusContent,
};
|