FileDocCategorySizeDatePackage
ImpsClientCapability.javaAPI DocAndroid 1.5 API4121Wed May 06 22:42:46 BST 2009com.android.im.imps

ImpsClientCapability

public final class ImpsClientCapability extends Object
The configuration of the capabilities of the client.

Fields Summary
Constructors Summary
private ImpsClientCapability()

    
Methods Summary
public static intgetAcceptedContentLength()
Get the maximum number of bytes of the message content that the client can handle.

return
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
an array of the basic Presence attributes.

        return new String[] {
                ImpsTags.OnlineStatus,
                ImpsTags.ClientInfo,
                ImpsTags.UserAvailability,
        };
    
public static java.lang.StringgetClientType()
Gets the type of the client.

return
the type of the client.

        return "MOBILE_PHONE";
    
public static java.lang.StringgetInitialDeliveryMethod()
Gets the initial IM delivery method that the recipient client prefers in the set of "PUSH" and "Notify/Get".

return
"P" if prefers "PUSH", or "N" if prefers "Notify/Get".

        return "P";
    
public static intgetMultiTrans()
Gets the maximum number of open transactions from both client and server side at any given time.

return
the maximum number of open transactions.

        return 1;
    
public static intgetMultiTransPerMessage()
Gets the maximum number of primitives that the client can handle within the same transport message at any given time.

return
the maximum number of primitives within the same transport message.

        return 1;
    
public static intgetParserSize()
Get the maximum number of bytes of XML (WBXML, SMS - depending on the actual encoding) primitive that the client-side parser can handle.

return
the maximum number of bytes that the 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
the array of supported bearers.

        return new TransportType[] {
                TransportType.HTTP
        };
    
public static com.android.im.imps.ImpsConnectionConfig.CirMethod[]getSupportedCirMethods()
Get supported CIR methods in preferred order.

return
a array of supported CIR methods.

        return new CirMethod[] {
                CirMethod.STCP,
                CirMethod.SSMS,
                CirMethod.SHTTP,
        };
    
public static java.lang.String[]getSupportedPresenceAttribs()
Get supported Presence attributes

return
the array of supported Presence attributes

        return new String[] {
                ImpsTags.OnlineStatus,
                ImpsTags.ClientInfo,
                ImpsTags.UserAvailability,
                ImpsTags.StatusText,
                ImpsTags.StatusContent,
        };