public class SenderDescriptor extends RSVPConstruct
Represents a Sender Descriptor construct, as defined in RFC 2205.
The format of a Path message is as follows:
| Modifier and Type | Field and Description |
|---|---|
protected IntservADSPEC |
adspec
ADSPEC is an optional RSVP Object
|
protected SenderTemplate |
senderTemplate
Sender Template is a mandatory RSVP Object
|
protected SenderTSpec |
senderTSPEC
Sender TSPEC is a mandatory RSVP Object
|
bytes, length| Constructor and Description |
|---|
SenderDescriptor()
Builder to be used when a received Sender Descriptor and it is wanted to decode it
|
SenderDescriptor(SenderTemplate senderTemplate,
IntservSenderTSpec senderTSPEC,
IntservADSPEC adspec)
Builder to be used when a new Sender 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()
Sender Descriptor encoding method.
|
IntservADSPEC |
getAdspec() |
SenderTemplate |
getSenderTemplate() |
SenderTSpec |
getSenderTSPEC() |
void |
setAdspec(IntservADSPEC adspec) |
void |
setSenderTemplate(SenderTemplate senderTemplate) |
void |
setSenderTSPEC(SenderTSpec senderTSPEC) |
getBytes, getLength, setBytes, setLengthprotected SenderTemplate senderTemplate
protected SenderTSpec senderTSPEC
protected IntservADSPEC adspec
public SenderDescriptor()
public SenderDescriptor(SenderTemplate senderTemplate, IntservSenderTSpec senderTSPEC, IntservADSPEC adspec) throws RSVPProtocolViolationException
senderTemplate - senderTSPEC - adspec - Optional, might be nullRSVPProtocolViolationException - It is thrown when a mandatory field is not presentpublic void encode()
throws RSVPProtocolViolationException
RSVPProtocolViolationExceptionpublic void decode(byte[] bytes,
int offset)
throws RSVPProtocolViolationException
decode in class RSVPConstructRSVPProtocolViolationExceptionpublic SenderTemplate getSenderTemplate()
public void setSenderTemplate(SenderTemplate senderTemplate)
public SenderTSpec getSenderTSPEC()
public void setSenderTSPEC(SenderTSpec senderTSPEC)
public IntservADSPEC getAdspec()
public void setAdspec(IntservADSPEC adspec)
Copyright © 2016. All rights reserved.