|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdiameter.common.impl.validation.DictionaryImpl
public class DictionaryImpl
Implementation of Dictionary interface.
| Field Summary | |
|---|---|
static java.lang.String |
_AVP_ATTRIBUTE_CODE
|
static java.lang.String |
_AVP_ATTRIBUTE_INDEX
|
static java.lang.String |
_AVP_ATTRIBUTE_MULTIPLICITY
|
static java.lang.String |
_AVP_ATTRIBUTE_NAME
|
static java.lang.String |
_AVP_ATTRIBUTE_VENDOR
|
static Dictionary |
INSTANCE
|
| Method Summary | |
|---|---|
void |
configure(java.io.InputStream is)
|
AvpRepresentation |
getAvp(int code)
|
AvpRepresentation |
getAvp(int code,
long vendorId)
|
AvpRepresentation |
getAvp(java.lang.String avpName)
|
java.util.Map<AvpRepresentation,AvpRepresentation> |
getAvpMap()
|
java.util.Map<MessageRepresentation,MessageRepresentation> |
getCommandMap()
|
MessageRepresentation |
getMessage(int commandCode,
boolean isRequest)
|
MessageRepresentation |
getMessage(int commandCode,
long applicationId,
boolean isRequest)
|
java.util.Map<java.lang.String,AvpRepresentation> |
getNameToCodeMap()
|
ValidatorLevel |
getReceiveLevel()
|
ValidatorLevel |
getSendLevel()
|
java.util.Map<java.lang.String,java.lang.String> |
getTypedefMap()
|
java.util.Map<java.lang.String,java.lang.String> |
getVendorMap()
|
boolean |
isConfigured()
|
boolean |
isEnabled()
|
protected void |
parseAvps(org.w3c.dom.Document doc)
Parses the |
protected void |
parseTypeDefs(org.w3c.dom.Document doc)
Parses the |
protected void |
parseVendors(org.w3c.dom.Document doc)
Parses the |
protected void |
printAvpTree(AvpRepresentation rep,
java.lang.String tab)
|
void |
setConfigured(boolean configured)
|
void |
setEnabled(boolean enabled)
|
void |
setReceiveLevel(ValidatorLevel level)
|
void |
setSendLevel(ValidatorLevel level)
|
void |
validate(Message msg,
boolean incoming)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Dictionary INSTANCE
public static final java.lang.String _AVP_ATTRIBUTE_NAME
public static final java.lang.String _AVP_ATTRIBUTE_CODE
public static final java.lang.String _AVP_ATTRIBUTE_VENDOR
public static final java.lang.String _AVP_ATTRIBUTE_MULTIPLICITY
public static final java.lang.String _AVP_ATTRIBUTE_INDEX
| Method Detail |
|---|
public void configure(java.io.InputStream is)
configure in interface Dictionaryprotected void parseVendors(org.w3c.dom.Document doc)
doc - the DOM object representing the XML Document with the Dictionary definitionsprotected void parseTypeDefs(org.w3c.dom.Document doc)
doc - the DOM object representing the XML Document with the Dictionary definitionsprotected void parseAvps(org.w3c.dom.Document doc)
doc - the DOM object representing the XML Document with the Dictionary definitionspublic boolean isConfigured()
isConfigured in interface Dictionarypublic AvpRepresentation getAvp(int code)
getAvp in interface Dictionary
public AvpRepresentation getAvp(int code,
long vendorId)
getAvp in interface Dictionarypublic AvpRepresentation getAvp(java.lang.String avpName)
getAvp in interface Dictionary
public MessageRepresentation getMessage(int commandCode,
boolean isRequest)
getMessage in interface Dictionary
public MessageRepresentation getMessage(int commandCode,
long applicationId,
boolean isRequest)
getMessage in interface Dictionarypublic boolean isEnabled()
isEnabled in interface Dictionarypublic ValidatorLevel getSendLevel()
getSendLevel in interface Dictionarypublic ValidatorLevel getReceiveLevel()
getReceiveLevel in interface Dictionarypublic void setSendLevel(ValidatorLevel level)
setSendLevel in interface Dictionarypublic void setReceiveLevel(ValidatorLevel level)
setReceiveLevel in interface Dictionarypublic void setEnabled(boolean enabled)
setEnabled in interface Dictionarypublic void setConfigured(boolean configured)
public void validate(Message msg,
boolean incoming)
throws AvpNotAllowedException
validate in interface DictionaryAvpNotAllowedExceptionpublic java.util.Map<AvpRepresentation,AvpRepresentation> getAvpMap()
public java.util.Map<java.lang.String,java.lang.String> getVendorMap()
public java.util.Map<MessageRepresentation,MessageRepresentation> getCommandMap()
public java.util.Map<java.lang.String,java.lang.String> getTypedefMap()
public java.util.Map<java.lang.String,AvpRepresentation> getNameToCodeMap()
protected void printAvpTree(AvpRepresentation rep,
java.lang.String tab)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||