summaryrefslogtreecommitdiffstats
blob: dc7f18158c3b96db9aacb17a3f28eb86b65decc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Copyright (c) 2015, Isode Limited, London, England.
 * All rights reserved.
 */
/*
 * Copyright (c) 2011 Tobias Markmann
 * Licensed under the BSD license.
 * See http://www.opensource.org/licenses/bsd-license.php for more information.
 */
package com.isode.stroke.parser.payloadparsers;

import com.isode.stroke.parser.AttributeMap;
import com.isode.stroke.parser.PayloadParser;
import com.isode.stroke.parser.PayloadParserFactory;

class DeliveryReceiptRequestParserFactory implements PayloadParserFactory {

    public DeliveryReceiptRequestParserFactory() {
    }

    @Override
    public boolean canParse(String element, String ns, AttributeMap attributes) {
        return "urn:xmpp:receipts".equals(ns) && "request".equals(element);
    }
    
    @Override
    public PayloadParser createPayloadParser() {
        return new DeliveryReceiptRequestParser();
    }

}