Java 类org.jivesoftware.smackx.packet.HeadersExtension 实例源码

项目:EIM    文件:Node.java   
private static List<String> getSubscriptionIds(Packet packet)
{
    HeadersExtension headers = (HeadersExtension)packet.getExtension("headers", "http://jabber.org/protocol/shim");
    List<String> values = null;

    if (headers != null)
    {
        values = new ArrayList<String>(headers.getHeaders().size());

        for (Header header : headers.getHeaders())
        {
            values.add(header.getValue());
        }
    }
    return values;
}
项目:androidPN-client.    文件:Node.java   
private static List<String> getSubscriptionIds(Packet packet)
{
    HeadersExtension headers = (HeadersExtension)packet.getExtension("headers", "http://jabber.org/protocol/shim");
    List<String> values = null;

    if (headers != null)
    {
        values = new ArrayList<String>(headers.getHeaders().size());

        for (Header header : headers.getHeaders())
        {
            values.add(header.getValue());
        }
    }
    return values;
}
项目:java-bells    文件:Node.java   
private static List<String> getSubscriptionIds(Packet packet)
{
    HeadersExtension headers = (HeadersExtension)packet.getExtension("headers", "http://jabber.org/protocol/shim");
    List<String> values = null;

    if (headers != null)
    {
        values = new ArrayList<String>(headers.getHeaders().size());

        for (Header header : headers.getHeaders())
        {
            values.add(header.getValue());
        }
    }
    return values;
}
项目:telegraph    文件:Node.java   
private static List<String> getSubscriptionIds(Packet packet)
{
    HeadersExtension headers = (HeadersExtension)packet.getExtension("headers", "http://jabber.org/protocol/shim");
    List<String> values = null;

    if (headers != null)
    {
        values = new ArrayList<String>(headers.getHeaders().size());

        for (Header header : headers.getHeaders())
        {
            values.add(header.getValue());
        }
    }
    return values;
}
项目:NewCommunication-Android    文件:Node.java   
private static List<String> getSubscriptionIds(Packet packet)
{
    HeadersExtension headers = (HeadersExtension)packet.getExtension("headers", "http://jabber.org/protocol/shim");
    List<String> values = null;

    if (headers != null)
    {
        values = new ArrayList<String>(headers.getHeaders().size());

        for (Header header : headers.getHeaders())
        {
            values.add(header.getValue());
        }
    }
    return values;
}
项目:xmppsupport_v2    文件:Node.java   
private static List<String> getSubscriptionIds(Packet packet) {
    HeadersExtension headers = (HeadersExtension) packet.getExtension(
            "headers", "http://jabber.org/protocol/shim");
    List<String> values = null;

    if (headers != null) {
        values = new ArrayList<String>(headers.getHeaders().size());

        for (Header header : headers.getHeaders()) {
            values.add(header.getValue());
        }
    }
    return values;
}
项目:EIM    文件:HeadersProvider.java   
@Override
protected PacketExtension createReturnExtension(String currentElement, String currentNamespace, Map<String, String> attributeMap, List<? extends PacketExtension> content)
{
    return new HeadersExtension((Collection<Header>)content);
}
项目:androidPN-client.    文件:HeadersProvider.java   
@Override
protected PacketExtension createReturnExtension(String currentElement, String currentNamespace, Map<String, String> attributeMap, List<? extends PacketExtension> content)
{
    return new HeadersExtension((Collection<Header>)content);
}
项目:xmppsupport_v2    文件:HeadersProvider.java   
@Override
protected PacketExtension createReturnExtension(String currentElement,
        String currentNamespace, Map<String, String> attributeMap,
        List<? extends PacketExtension> content) {
    return new HeadersExtension((Collection<Header>) content);
}
项目:java-bells    文件:HeadersProvider.java   
@Override
protected PacketExtension createReturnExtension(String currentElement, String currentNamespace, Map<String, String> attributeMap, List<? extends PacketExtension> content)
{
    return new HeadersExtension((Collection<Header>)content);
}
项目:telegraph    文件:HeadersProvider.java   
@Override
protected PacketExtension createReturnExtension(String currentElement, String currentNamespace, Map<String, String> attributeMap, List<? extends PacketExtension> content)
{
    return new HeadersExtension((Collection<Header>)content);
}
项目:NewCommunication-Android    文件:HeadersProvider.java   
@Override
protected PacketExtension createReturnExtension(String currentElement, String currentNamespace, Map<String, String> attributeMap, List<? extends PacketExtension> content)
{
    return new HeadersExtension((Collection<Header>)content);
}