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

项目: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;
}
项目:EIM    文件:HeaderProvider.java   
public PacketExtension parseExtension(XmlPullParser parser) throws Exception
{
    String name = parser.getAttributeValue(null, "name");
    String value = null;

    parser.next();

    if (parser.getEventType() == XmlPullParser.TEXT)
        value = parser.getText();

    while(parser.getEventType() != XmlPullParser.END_TAG)
        parser.next();

    return new Header(name, value);
}
项目:androidPN-client.    文件:HeaderProvider.java   
public PacketExtension parseExtension(XmlPullParser parser) throws Exception
{
    String name = parser.getAttributeValue(null, "name");
    String value = null;

    parser.next();

    if (parser.getEventType() == XmlPullParser.TEXT)
        value = parser.getText();

    while(parser.getEventType() != XmlPullParser.END_TAG)
        parser.next();

    return new Header(name, value);
}
项目: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;
}
项目:xmppsupport_v2    文件:HeaderProvider.java   
public PacketExtension parseExtension(XmlPullParser parser)
        throws Exception {
    String name = parser.getAttributeValue(null, "name");
    String value = null;

    parser.next();

    if (parser.getEventType() == XmlPullParser.TEXT)
        value = parser.getText();

    while (parser.getEventType() != XmlPullParser.END_TAG)
        parser.next();

    return new Header(name, value);
}
项目:java-bells    文件:HeaderProvider.java   
public PacketExtension parseExtension(XmlPullParser parser) throws Exception
{
    String name = parser.getAttributeValue(null, "name");
    String value = null;

    parser.next();

    if (parser.getEventType() == XmlPullParser.TEXT)
        value = parser.getText();

    while(parser.getEventType() != XmlPullParser.END_TAG)
        parser.next();

    return new Header(name, value);
}
项目:telegraph    文件:HeaderProvider.java   
public PacketExtension parseExtension(XmlPullParser parser) throws Exception
{
    String name = parser.getAttributeValue(null, "name");
    String value = null;

    parser.next();

    if (parser.getEventType() == XmlPullParser.TEXT)
        value = parser.getText();

    while(parser.getEventType() != XmlPullParser.END_TAG)
        parser.next();

    return new Header(name, value);
}
项目:NewCommunication-Android    文件:HeaderProvider.java   
public PacketExtension parseExtension(XmlPullParser parser) throws Exception
{
    String name = parser.getAttributeValue(null, "name");
    String value = null;

    parser.next();

    if (parser.getEventType() == XmlPullParser.TEXT)
        value = parser.getText();

    while(parser.getEventType() != XmlPullParser.END_TAG)
        parser.next();

    return new Header(name, value);
}
项目: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);
}