|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.glite.ce.commonj.axis.handlers.AuthZConfiguration
This class is a Management Bean, as stated in Java Management Extensions specification. It contains any information about the configuration of a chain of the grid Java Authorization Framework (gJAF). The configuration items are parsed from an XML file and are stored into the servlet context. Several "slave" MBeans are created, one MBean for each plugin of the chain, containing the configuration of that plugin. The class exposes all methods required by a dynamic management bean, together with the methods dealing with MBean notification and registration.
Constructor Summary | |
AuthZConfiguration(javax.servlet.ServletContext ctx)
The constructor of the class. |
Method Summary | |
void |
endElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName)
Method used by the internal XML parser. |
java.lang.Object |
getAttribute(java.lang.String attr)
This method returns the value of a given configuration attribute. |
javax.management.AttributeList |
getAttributes(java.lang.String[] attrs)
This method returns a list of configuration attributes matching the given list of attributes name. |
javax.management.MBeanInfo |
getMBeanInfo()
It returns any information necessary to describe the current MBean behaviour |
void |
handleNotification(javax.management.Notification notification,
java.lang.Object handback)
This method is called by a JMX agent in order to notify a generic event. |
java.lang.Object |
invoke(java.lang.String operation,
java.lang.Object[] params,
java.lang.String[] signature)
It allows the JMX agent to call an operation on the current MBean. |
boolean |
isNotificationEnabled(javax.management.Notification notification)
Method used to filter notifications. |
void |
postDeregister()
Method called by the JMX engine after the removal of the current MBean from an MBean server. |
void |
postRegister(java.lang.Boolean registrationDone)
Method called by the JMX engine after the registration of the current MBean into an MBean server. |
void |
preDeregister()
Method called by the JMX engine before the removal of the current MBean from an MBean server. |
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
Method called by the JMX engine before the registration of the current MBean into an MBean server. |
void |
setAttribute(javax.management.Attribute attr)
Method used to set an attribute. |
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attrs)
Method used to set a list of attributes. |
void |
startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Method used by the internal XML parser. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AuthZConfiguration(javax.servlet.ServletContext ctx) throws AuthZConfigException
ctx
- is the servlet context used to store informationMethod Detail |
public void startElement(java.lang.String uri, java.lang.String name, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXParseException
startElement
in interface org.xml.sax.ContentHandler
uri
- is the namespace of the current elementname
- is the name without prefix of the current elementqName
- is the qualified name (with prefix) of the current elementattributes
- is a list of attributes for the current element
org.xml.sax.SAXParseException
- Any SAX exception, possibly wrapping another exceptionpublic void endElement(java.lang.String uri, java.lang.String name, java.lang.String qName)
endElement
in interface org.xml.sax.ContentHandler
uri
- is the namespace of the current elementname
- is the name without prefix of the current elementqName
- is the qualified name (with prefix) of the current elementpublic java.lang.Object getAttribute(java.lang.String attr) throws javax.management.AttributeNotFoundException
getAttribute
in interface javax.management.DynamicMBean
attr
- the name of the configuration attribute desired
javax.management.AttributeNotFoundException
- if the attribute doesn't exist.public javax.management.AttributeList getAttributes(java.lang.String[] attrs)
getAttributes
in interface javax.management.DynamicMBean
attrs
- the list of the configuration attribute desired
public javax.management.MBeanInfo getMBeanInfo()
getMBeanInfo
in interface javax.management.DynamicMBean
public java.lang.Object invoke(java.lang.String operation, java.lang.Object[] params, java.lang.String[] signature)
invoke
in interface javax.management.DynamicMBean
operation
- is the name of the operation requiredparams
- an array of object representing the parameters of the operationsignature
- is an array of decriptions for the given parameters
java.lang.IllegalArgumentException
- if the operation is not well-specified
java.lang.UnsupportedOperationException
- if the operation is not availablepublic void setAttribute(javax.management.Attribute attr)
setAttribute
in interface javax.management.DynamicMBean
attr
- the attribute to insert into the current MBeanpublic javax.management.AttributeList setAttributes(javax.management.AttributeList attrs)
setAttributes
in interface javax.management.DynamicMBean
attrs
- the list of attributes to insert into the current MBean
public void postDeregister()
postDeregister
in interface javax.management.MBeanRegistration
public void postRegister(java.lang.Boolean registrationDone)
postRegister
in interface javax.management.MBeanRegistration
registrationDone
- "true" if the registration has been accomplished with
success.public void preDeregister()
preDeregister
in interface javax.management.MBeanRegistration
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name) throws javax.management.MalformedObjectNameException
preRegister
in interface javax.management.MBeanRegistration
server
- is the MBean server choosen for the registrationname
- if specified is the key used to register the MBean into the
MBean server.
javax.management.MalformedObjectNameException
public void handleNotification(javax.management.Notification notification, java.lang.Object handback)
handleNotification
in interface javax.management.NotificationListener
notification
- contains information about the event notifiedhandback
- unused callback objectpublic boolean isNotificationEnabled(javax.management.Notification notification)
isNotificationEnabled
in interface javax.management.NotificationFilter
notification
- contains information about the event notified
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |