|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.authoritymapping.XmlMappableAttributesRetriever
public abstract class XmlMappableAttributesRetriever
This implementation for the MappableAttributesRetriever interface retrieves the list of mappable attributes from an XML file.
This class is defined as abstract because it is too generic to be used directly. As this class is usually used to read very specific XML files (e.g. web.xml, ejb-jar.xml), subclasses should usually define the actual XPath-expression to use, and define a more specifically named setter for the XML InputStream (e.g. setWebXmlInputStream).
Nested Class Summary | |
---|---|
static class |
XmlMappableAttributesRetriever.IgnoreCloseInputStream
|
Constructor Summary | |
---|---|
XmlMappableAttributesRetriever()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Check whether all required properties have been set. |
String[] |
getMappableAttributes()
Implementations of this method should return a list of all string attributes which can be mapped to GrantedAuthoritys. |
void |
setCloseInputStream(boolean b)
Define whether the provided InputStream must be closed after reading it. |
protected void |
setXmlInputStream(InputStream aStream)
Subclasses should provide this method with a more specific name (e.g. |
protected void |
setXpathExpression(String anXpathExpression)
Subclasses usually want to set an XPath expression by themselves (e.g. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlMappableAttributesRetriever()
Method Detail |
---|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public String[] getMappableAttributes()
MappableAttributesRetriever
getMappableAttributes
in interface MappableAttributesRetriever
protected void setXmlInputStream(InputStream aStream)
protected void setXpathExpression(String anXpathExpression)
public void setCloseInputStream(boolean b)
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |