|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
To allow each connection scheme to have its own protocol specific options,
a ResourceProfile can have a single SchemeOptions implementation.
When the ResourceProfile XML file is being parsed and a SchemeOptions element is encountered, the className attribute is used to instantiate a class that implements this interface. All child elements are then passed to the instance so the it can build up its properties.
| Method Summary | |
nanoxml.XMLElement |
getElement()
Get these options as an XML element that can be persisted along with the ResourceProfile. |
void |
init(nanoxml.XMLElement element)
Invoked when instantiated by the ResourceProfile parser or when creating a new profile. |
boolean |
isAppropriateForScheme(java.lang.String schemeName)
Return if these options are appropriate for a scheme |
| Method Detail |
public void init(nanoxml.XMLElement element)
throws ProfileException
null is provided as the element, default options
will be set.
element - SchemeOptions element
ProfileException - if any data provided by the element is invalidpublic nanoxml.XMLElement getElement()
public boolean isAppropriateForScheme(java.lang.String schemeName)
schemeName -
true if these options are appropriate for a scheme
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||