|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object dk.i1.diameter.MessageHeader
public class MessageHeader
A Diameter message header. See RFC3588 section 3. After you have read that understanding the class is trivial. The only fields and methods you will normally use are:
Note: The default command flags does not include the proxiable bit, meaning that request messages by default cannot be proxied by diameter proxies and other gateways. It is still not determined if this is a reasonable default. You should always call setProxiable() explicitly so it has the value you expect it to be.
Field Summary | |
---|---|
int |
application_id
|
int |
command_code
|
static byte |
command_flag_error_bit
|
static byte |
command_flag_proxiable_bit
|
static byte |
command_flag_request_bit
|
static byte |
command_flag_retransmit_bit
|
int |
end_to_end_identifier
|
int |
hop_by_hop_identifier
|
Constructor Summary | |
---|---|
MessageHeader()
Default constructor for MessageHeader. |
|
MessageHeader(MessageHeader mh)
Copy-constructor for MessageHeader. |
Method Summary | |
---|---|
boolean |
isError()
|
boolean |
isProxiable()
|
boolean |
isRequest()
|
boolean |
isRetransmit()
|
void |
prepareAnswer(MessageHeader request)
Prepare an answer from the specified request header. |
void |
prepareResponse(MessageHeader request)
Prepare a response from the specified request header. |
void |
setError(boolean b)
Set error bit. |
void |
setProxiable(boolean b)
|
void |
setRequest(boolean b)
|
void |
setRetransmit(boolean b)
Set retransmit bit |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int command_code
public int application_id
public int hop_by_hop_identifier
public int end_to_end_identifier
public static final byte command_flag_request_bit
public static final byte command_flag_proxiable_bit
public static final byte command_flag_error_bit
public static final byte command_flag_retransmit_bit
Constructor Detail |
---|
public MessageHeader()
public MessageHeader(MessageHeader mh)
Method Detail |
---|
public boolean isRequest()
public boolean isProxiable()
public boolean isError()
public boolean isRetransmit()
public void setRequest(boolean b)
public void setProxiable(boolean b)
public void setError(boolean b)
public void setRetransmit(boolean b)
public void prepareResponse(MessageHeader request)
public void prepareAnswer(MessageHeader request)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |