public class WFFlowDescriptor extends FlowDescriptor
Represents a WF Style Flow Descriptor construct, as defined in RFC 2205.
If the INTEGRITY object is present, it must immediately follow the common header. The STYLE object followed by the flow descriptor list must occur at the end of the message, and objects within the flow descriptor list must follow the BNF given below. There are no other requirements on transmission order, although the above order is recommended.
The NHOP (i.e., the RSVP_HOP) object contains the IP address of the interface through which the Resv message was sent and the LIH for the logical interface on which the reservation is required.
The appearance of a RESV_CONFIRM object signals a request for a reservation confirmation and carries the IP address of the receiver to which the ResvConf should be sent. Any number of POLICY_DATA objects may appear.
The BNF above defines a flow descriptor list as simply a list of flow descriptors. The following style-dependent rules specify in more detail the composition of a valid flow descriptor list for each of the reservation styles.
bytes, length
Constructor and Description |
---|
WFFlowDescriptor()
Builder to be used when a received WF Flow Descriptor and it is wanted to decode it
|
WFFlowDescriptor(FlowSpec flowSpec)
Builder to be used when a new WF Flow Descriptor it wanted to be created and sent
|
Modifier and Type | Method and Description |
---|---|
void |
decode(byte[] bytes,
int offset)
Sender Descriptor decoding method.
|
void |
encode()
WF Flow Descriptor encoding method.
|
FlowSpec |
getFlowSpec() |
void |
setFlowSpec(FlowSpec flowSpec) |
getBytes, getLength, setBytes, setLength
public WFFlowDescriptor()
public WFFlowDescriptor(FlowSpec flowSpec) throws RSVPProtocolViolationException
flowSpec
- RSVPProtocolViolationException
- It is thrown when a mandatory field is not presentpublic void encode() throws RSVPProtocolViolationException
encode
in interface RSVPElement
encode
in class FlowDescriptor
RSVPProtocolViolationException
public void decode(byte[] bytes, int offset) throws RSVPProtocolViolationException
decode
in class FlowDescriptor
RSVPProtocolViolationException
public FlowSpec getFlowSpec()
public void setFlowSpec(FlowSpec flowSpec)
Copyright © 2016. All rights reserved.