Jian Li | 451175e | 2016-07-19 23:22:20 +0900 | [diff] [blame] | 1 | /* |
| 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 | */ |
| 16 | package org.onosproject.lisp.msg.protocols; |
| 17 | |
| 18 | import io.netty.buffer.ByteBuf; |
| 19 | |
Jian Li | 719b3bf | 2016-07-22 00:38:29 +0900 | [diff] [blame^] | 20 | import java.util.List; |
| 21 | |
Jian Li | 451175e | 2016-07-19 23:22:20 +0900 | [diff] [blame] | 22 | /** |
| 23 | * Default LISP map notify message class. |
| 24 | */ |
| 25 | public class DefaultLispMapNotify implements LispMapNotify { |
| 26 | |
| 27 | @Override |
| 28 | public LispType getType() { |
| 29 | return null; |
| 30 | } |
| 31 | |
| 32 | @Override |
| 33 | public void writeTo(ByteBuf byteBuf) { |
| 34 | |
| 35 | } |
| 36 | |
| 37 | @Override |
| 38 | public Builder createBuilder() { |
| 39 | return null; |
| 40 | } |
Jian Li | 719b3bf | 2016-07-22 00:38:29 +0900 | [diff] [blame^] | 41 | |
| 42 | @Override |
| 43 | public long getNonce() { |
| 44 | return 0; |
| 45 | } |
| 46 | |
| 47 | @Override |
| 48 | public byte getRecordCount() { |
| 49 | return 0; |
| 50 | } |
| 51 | |
| 52 | @Override |
| 53 | public short getKeyId() { |
| 54 | return 0; |
| 55 | } |
| 56 | |
| 57 | @Override |
| 58 | public byte[] getAuthenticationData() { |
| 59 | return new byte[0]; |
| 60 | } |
| 61 | |
| 62 | @Override |
| 63 | public List<LispRecord> getLispRecords() { |
| 64 | return null; |
| 65 | } |
| 66 | |
| 67 | public static final class DefaultNotifyBuilder implements NotifyBuilder { |
| 68 | |
| 69 | @Override |
| 70 | public LispMessage build() { |
| 71 | return null; |
| 72 | } |
| 73 | |
| 74 | @Override |
| 75 | public LispType getType() { |
| 76 | return null; |
| 77 | } |
| 78 | |
| 79 | @Override |
| 80 | public NotifyBuilder withNonce(long nonce) { |
| 81 | return null; |
| 82 | } |
| 83 | |
| 84 | @Override |
| 85 | public NotifyBuilder withRecordCount(byte recordCount) { |
| 86 | return null; |
| 87 | } |
| 88 | |
| 89 | @Override |
| 90 | public NotifyBuilder withKeyId(short keyId) { |
| 91 | return null; |
| 92 | } |
| 93 | |
| 94 | @Override |
| 95 | public NotifyBuilder withAuthenticationData(byte[] authenticationData) { |
| 96 | return null; |
| 97 | } |
| 98 | |
| 99 | @Override |
| 100 | public NotifyBuilder addRecord(LispRecord record) { |
| 101 | return null; |
| 102 | } |
| 103 | } |
Jian Li | 451175e | 2016-07-19 23:22:20 +0900 | [diff] [blame] | 104 | } |