2 * Copyright 2015 Open Networking Laboratory
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.onosproject.pcepio.protocol;
19 import org.jboss.netty.buffer.ChannelBuffer;
20 import org.onosproject.pcepio.exceptions.PcepParseException;
23 * Abstraction of an entity providing PCEP Label Range Reservation Message.
25 public interface PcepLabelRangeResvMsg extends PcepObject, PcepMessage {
28 PcepVersion getVersion();
34 * Returns LabelRange field in Label Range Reservation message.
36 * @return LabelRange field
38 PcepLabelRange getLabelRange();
41 * Sets LabelRange field in Label Range Reservation message with specified value.
43 * @param lR label range object
45 void setLabelRange(PcepLabelRange lR);
48 void writeTo(ChannelBuffer channelBuffer) throws PcepParseException;
51 * Builder interface with get and set functions to build Label Range Reservation message.
53 interface Builder extends PcepMessage.Builder {
56 PcepLabelRangeResvMsg build();
59 PcepVersion getVersion();
65 * Returns LabelRange field in Label Range Reservation message.
67 * @return LabelRange object
69 PcepLabelRange getLabelRange();
72 * Sets LabelRange field and returns its Builder.
74 * @param lR label range object
75 * @return builder by setting LabelRange field
77 Builder setLabelRange(PcepLabelRange lR);