es.tid.rsvp.RSVPElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of network-protocols Show documentation
Show all versions of network-protocols Show documentation
BGP-LS,OSPF-TE,PCEP and RSVP-TE protocol encodings.
The newest version!
package es.tid.rsvp;
/**
* Interface class for all RSVP Elements, which are RSVP Messages, RSVP Constructs and RSVP Objects.
*
* @author Fernando Munoz del Nuevo
*
*/
public interface RSVPElement {
/**
* Generic method to encode an RSVP element
* @throws RSVPProtocolViolationException Exception is thrown when there is a problem encoding the RSVP Message
*/
public void encode() throws RSVPProtocolViolationException;
/**
* Generic method to get the byte array from an encoded RSVP element
* @return The byte array with the encoded RSVP element
*/
public byte[] getBytes();
/**
* Generic method to get length an encoded RSVP element byte array
* @return The length of with the encoded RSVP element
*/
public int getLength();
}