|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdiameter.common.impl.validation.DiameterMessageValidator
public class DiameterMessageValidator
Start time:11:42:36 2009-05-26
Project: diameter-parent
| Method Summary | |
|---|---|
static DiameterMessageValidator |
getInstance()
Retrieves singleton instance of DiameterMessageValidator |
boolean |
hasRepresentation(int commandCode,
long appId,
boolean isRequest,
int avpCode,
long avpVendor)
Return values is computed as follows: return messages.get(commandCode,appId,isRequest)!=null && messages.get(commandCode ,appId,isRequest).getAvp(avpCode,avpVendor)!=null; |
boolean |
isAllowed(int commandCode,
long appId,
boolean isRequest,
int avpCode,
long avpVendor)
Determines if avp is allowed in message. |
boolean |
isCountValidForMultiplicity(int commandCode,
long appId,
boolean isRequest,
org.jdiameter.api.AvpSet destination,
int avpCode,
long avpVendor)
Determines if avp identified by code and vendor has correct multiplicity in passed set. |
boolean |
isOn()
Determines if validator is enabled. |
void |
parseConfiguration(java.io.InputStream is)
|
void |
validate(int commandCode,
long appId,
boolean isRequest,
org.jdiameter.api.AvpSet destination,
org.jdiameter.api.Avp avp)
Validate if avp can be added/present in message - meaning it checks if there is place for passed avp. |
void |
validate(org.jdiameter.api.Message msg)
Valdiates message against XML configuration file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void parseConfiguration(java.io.InputStream is)
public static final DiameterMessageValidator getInstance()
public boolean isOn()
public void validate(org.jdiameter.api.Message msg)
throws JAvpNotAllowedException
hasRepresentation(int, long, boolean, int, long)
returns false this method returns always without exception.
msg -
JAvpNotAllowedException - - thrown when validation fails.
public void validate(int commandCode,
long appId,
boolean isRequest,
org.jdiameter.api.AvpSet destination,
org.jdiameter.api.Avp avp)
hasRepresentation(int, long, boolean, int, long)
returns false this method returns always without exception.
commandCode - - message command codeappId - - application id of messageisRequest - - true if message is request.destination - - AvpSet of messageavp - - avp to be checked.
public boolean isCountValidForMultiplicity(int commandCode,
long appId,
boolean isRequest,
org.jdiameter.api.AvpSet destination,
int avpCode,
long avpVendor)
hasRepresentation(int, long, boolean, int, long)
returns false this method returns always true.
commandCode - - message codeappId - - message application id.isRequest - - true if message is request.destination - - message AvpSetavpCode - - avp codeavpVendor - - avp vendor - zero if there is none
public boolean isAllowed(int commandCode,
long appId,
boolean isRequest,
int avpCode,
long avpVendor)
hasRepresentation(int, long, boolean, int, long)
returns false this method returns always true.
commandCode - - message command codeappId - - message application idisRequest - - true if message is request.avpCode - - avp code.avpVendor - - avp vendor, zero if none.
public boolean hasRepresentation(int commandCode,
long appId,
boolean isRequest,
int avpCode,
long avpVendor)
commandCode - - message command codeappId - - message application idisRequest - - true if message is request.avpCode - - avp code.avpVendor - - avp vendor, zero if none.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||