aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/NDTPv6Protocol.java
blob: 78dc11b50451711bd532768de866545e5e83ab4b (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
/*
 * 2020 - NDTP v6 Protocol
 */
package org.traccar.protocol;

import org.traccar.BaseProtocol;
import org.traccar.PipelineBuilder;
import org.traccar.TrackerServer;
import org.traccar.config.Config;

import javax.inject.Inject;

public class NDTPv6Protocol extends BaseProtocol {

    @Inject
    public NDTPv6Protocol(Config config) {
        addServer(
                new TrackerServer(config, getName(), false) {
                    @Override
                    protected void addProtocolHandlers(PipelineBuilder pipeline, Config config) {
                        pipeline.addLast(new NDTPv6ProtocolDecoder(NDTPv6Protocol.this));
                    }
                }
        );
    }
}