blob: 913f7c6d3a4f98056255418ada8a0dc05d7422b8 [file] [log] [blame]
Jian Licdbc0872016-12-05 17:23:53 +09001/*
2 * Copyright 2016-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.lisp.msg.protocols;
17
18/**
19 * An interface that wraps LispMapRecord with proxy-bit flag.
20 */
21public interface LispProxyMapRecord {
22
23 /**
24 * Obtains LISP map record.
25 *
26 * @return LISP map record
27 */
28 LispMapRecord getMapRecord();
29
30 /**
31 * Obtains proxy-map-reply flag.
32 *
33 * @return proxy-map-reply flag
34 */
35 boolean isProxyMapReply();
36
37 /**
38 * A builder of LISP map with proxy flag internal data structure.
39 */
40 interface MapWithProxyBuilder {
41
42 /**
43 * Sets LISP map record.
44 *
45 * @param mapRecord map record
46 * @return MapWithProxyBuilder object
47 */
48 MapWithProxyBuilder withMapRecord(LispMapRecord mapRecord);
49
50 /**
51 * Sets isProxyMapReply flag.
52 *
53 * @param isProxyMapReply isProxyMapReply flag
54 * @return MapWithProxyBuilder object
55 */
56 MapWithProxyBuilder withIsProxyMapReply(boolean isProxyMapReply);
57
58 /**
59 * Builds LISP map with proxy data object.
60 *
61 * @return LISP map with proxy data object
62 */
63 LispProxyMapRecord build();
64 }
65}