Class SecurityConfigurationStaxReader
java.lang.Object
org.codehaus.plexus.components.secdispatcher.model.io.stax.SecurityConfigurationStaxReader
Class SecurityConfigurationStaxReader.
- Version:
- $Revision$ $Date$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
checkFieldWithDuplicate
(XMLStreamReader xmlStreamReader, String tagName, String alias, Set parsed) Method checkFieldWithDuplicate.private void
checkUnknownElement
(XMLStreamReader xmlStreamReader, boolean strict) Method checkUnknownElement.private boolean
getBooleanValue
(String s, String attribute, XMLStreamReader xmlStreamReader) Method getBooleanValue.private byte
getByteValue
(String s, String attribute, XMLStreamReader xmlStreamReader, boolean strict) Method getByteValue.private char
getCharacterValue
(String s, String attribute, XMLStreamReader xmlStreamReader) Method getCharacterValue.private Date
getDateValue
(String s, String attribute, String dateFormat, XMLStreamReader xmlStreamReader) Method getDateValue.private String
getDefaultValue
(String s, String v) Method getDefaultValue.private double
getDoubleValue
(String s, String attribute, XMLStreamReader xmlStreamReader, boolean strict) Method getDoubleValue.private float
getFloatValue
(String s, String attribute, XMLStreamReader xmlStreamReader, boolean strict) Method getFloatValue.private int
getIntegerValue
(String s, String attribute, XMLStreamReader xmlStreamReader, boolean strict) Method getIntegerValue.private long
getLongValue
(String s, String attribute, XMLStreamReader xmlStreamReader, boolean strict) Method getLongValue.private String
getRequiredAttributeValue
(String s, String attribute, XMLStreamReader xmlStreamReader, boolean strict) Method getRequiredAttributeValue.private short
getShortValue
(String s, String attribute, XMLStreamReader xmlStreamReader, boolean strict) Method getShortValue.private String
Method getTrimmedValue.private int
nextTag
(XMLStreamReader xmlStreamReader) Method nextTag.private Config
parseConfig
(XMLStreamReader xmlStreamReader, boolean strict) Method parseConfig.private ConfigProperty
parseConfigProperty
(XMLStreamReader xmlStreamReader, boolean strict) Method parseConfigProperty.private SettingsSecurity
parseSettingsSecurity
(XMLStreamReader xmlStreamReader, boolean strict) Method parseSettingsSecurity.read
(InputStream stream) Method read.read
(InputStream stream, boolean strict) Method read.Method read.Method read.Method read.Method read.private SettingsSecurity
read
(XMLStreamReader xmlStreamReader, boolean strict) Method read.private void
Method resolveReferences.
-
Constructor Details
-
SecurityConfigurationStaxReader
public SecurityConfigurationStaxReader()
-
-
Method Details
-
read
Method read.- Parameters:
reader
- a reader object.strict
- a strict object.- Returns:
- SettingsSecurity
- Throws:
IOException
- IOException if any.XMLStreamException
- XMLStreamException if any.
-
read
Method read.- Parameters:
reader
- a reader object.- Returns:
- SettingsSecurity
- Throws:
IOException
- IOException if any.XMLStreamException
- XMLStreamException if any.
-
read
public SettingsSecurity read(InputStream stream, boolean strict) throws IOException, XMLStreamException Method read.- Parameters:
stream
- a stream object.strict
- a strict object.- Returns:
- SettingsSecurity
- Throws:
IOException
- IOException if any.XMLStreamException
- XMLStreamException if any.
-
read
Method read.- Parameters:
stream
- a stream object.- Returns:
- SettingsSecurity
- Throws:
IOException
- IOException if any.XMLStreamException
- XMLStreamException if any.
-
read
public SettingsSecurity read(String filePath, boolean strict) throws IOException, XMLStreamException Method read.- Parameters:
filePath
- a filePath object.strict
- a strict object.- Returns:
- SettingsSecurity
- Throws:
IOException
- IOException if any.XMLStreamException
- XMLStreamException if any.
-
read
Method read.- Parameters:
filePath
- a filePath object.- Returns:
- SettingsSecurity
- Throws:
IOException
- IOException if any.XMLStreamException
- XMLStreamException if any.
-
checkFieldWithDuplicate
private boolean checkFieldWithDuplicate(XMLStreamReader xmlStreamReader, String tagName, String alias, Set parsed) throws XMLStreamException Method checkFieldWithDuplicate.- Parameters:
xmlStreamReader
- a xmlStreamReader object.tagName
- a tagName object.alias
- a alias object.parsed
- a parsed object.- Returns:
- boolean
- Throws:
XMLStreamException
- XMLStreamException if any.
-
checkUnknownElement
private void checkUnknownElement(XMLStreamReader xmlStreamReader, boolean strict) throws XMLStreamException Method checkUnknownElement.- Parameters:
xmlStreamReader
- a xmlStreamReader object.strict
- a strict object.- Throws:
XMLStreamException
- XMLStreamException if any.
-
getBooleanValue
private boolean getBooleanValue(String s, String attribute, XMLStreamReader xmlStreamReader) throws XMLStreamException Method getBooleanValue.- Parameters:
s
- a s object.attribute
- a attribute object.xmlStreamReader
- a xmlStreamReader object.- Returns:
- boolean
- Throws:
XMLStreamException
- XMLStreamException if any.
-
getByteValue
private byte getByteValue(String s, String attribute, XMLStreamReader xmlStreamReader, boolean strict) throws XMLStreamException Method getByteValue.- Parameters:
s
- a s object.attribute
- a attribute object.xmlStreamReader
- a xmlStreamReader object.strict
- a strict object.- Returns:
- byte
- Throws:
XMLStreamException
- XMLStreamException if any.
-
getCharacterValue
private char getCharacterValue(String s, String attribute, XMLStreamReader xmlStreamReader) throws XMLStreamException Method getCharacterValue.- Parameters:
s
- a s object.attribute
- a attribute object.xmlStreamReader
- a xmlStreamReader object.- Returns:
- char
- Throws:
XMLStreamException
- XMLStreamException if any.
-
getDateValue
private Date getDateValue(String s, String attribute, String dateFormat, XMLStreamReader xmlStreamReader) throws XMLStreamException Method getDateValue.- Parameters:
s
- a s object.attribute
- a attribute object.dateFormat
- a dateFormat object.xmlStreamReader
- a xmlStreamReader object.- Returns:
- Date
- Throws:
XMLStreamException
- XMLStreamException if any.
-
getDefaultValue
Method getDefaultValue.- Parameters:
s
- a s object.v
- a v object.- Returns:
- String
-
getDoubleValue
private double getDoubleValue(String s, String attribute, XMLStreamReader xmlStreamReader, boolean strict) throws XMLStreamException Method getDoubleValue.- Parameters:
s
- a s object.attribute
- a attribute object.xmlStreamReader
- a xmlStreamReader object.strict
- a strict object.- Returns:
- double
- Throws:
XMLStreamException
- XMLStreamException if any.
-
getFloatValue
private float getFloatValue(String s, String attribute, XMLStreamReader xmlStreamReader, boolean strict) throws XMLStreamException Method getFloatValue.- Parameters:
s
- a s object.attribute
- a attribute object.xmlStreamReader
- a xmlStreamReader object.strict
- a strict object.- Returns:
- float
- Throws:
XMLStreamException
- XMLStreamException if any.
-
getIntegerValue
private int getIntegerValue(String s, String attribute, XMLStreamReader xmlStreamReader, boolean strict) throws XMLStreamException Method getIntegerValue.- Parameters:
s
- a s object.attribute
- a attribute object.xmlStreamReader
- a xmlStreamReader object.strict
- a strict object.- Returns:
- int
- Throws:
XMLStreamException
- XMLStreamException if any.
-
getLongValue
private long getLongValue(String s, String attribute, XMLStreamReader xmlStreamReader, boolean strict) throws XMLStreamException Method getLongValue.- Parameters:
s
- a s object.attribute
- a attribute object.xmlStreamReader
- a xmlStreamReader object.strict
- a strict object.- Returns:
- long
- Throws:
XMLStreamException
- XMLStreamException if any.
-
getRequiredAttributeValue
private String getRequiredAttributeValue(String s, String attribute, XMLStreamReader xmlStreamReader, boolean strict) throws XMLStreamException Method getRequiredAttributeValue.- Parameters:
s
- a s object.attribute
- a attribute object.xmlStreamReader
- a xmlStreamReader object.strict
- a strict object.- Returns:
- String
- Throws:
XMLStreamException
- XMLStreamException if any.
-
getShortValue
private short getShortValue(String s, String attribute, XMLStreamReader xmlStreamReader, boolean strict) throws XMLStreamException Method getShortValue.- Parameters:
s
- a s object.attribute
- a attribute object.xmlStreamReader
- a xmlStreamReader object.strict
- a strict object.- Returns:
- short
- Throws:
XMLStreamException
- XMLStreamException if any.
-
getTrimmedValue
Method getTrimmedValue.- Parameters:
s
- a s object.- Returns:
- String
-
nextTag
Method nextTag.- Parameters:
xmlStreamReader
- a xmlStreamReader object.- Returns:
- int
- Throws:
XMLStreamException
- XMLStreamException if any.
-
parseConfig
private Config parseConfig(XMLStreamReader xmlStreamReader, boolean strict) throws IOException, XMLStreamException Method parseConfig.- Parameters:
xmlStreamReader
- a xmlStreamReader object.strict
- a strict object.- Returns:
- Config
- Throws:
IOException
- IOException if any.XMLStreamException
- XMLStreamException if any.
-
parseConfigProperty
private ConfigProperty parseConfigProperty(XMLStreamReader xmlStreamReader, boolean strict) throws IOException, XMLStreamException Method parseConfigProperty.- Parameters:
xmlStreamReader
- a xmlStreamReader object.strict
- a strict object.- Returns:
- ConfigProperty
- Throws:
IOException
- IOException if any.XMLStreamException
- XMLStreamException if any.
-
parseSettingsSecurity
private SettingsSecurity parseSettingsSecurity(XMLStreamReader xmlStreamReader, boolean strict) throws IOException, XMLStreamException Method parseSettingsSecurity.- Parameters:
xmlStreamReader
- a xmlStreamReader object.strict
- a strict object.- Returns:
- SettingsSecurity
- Throws:
IOException
- IOException if any.XMLStreamException
- XMLStreamException if any.
-
read
private SettingsSecurity read(XMLStreamReader xmlStreamReader, boolean strict) throws IOException, XMLStreamException Method read.- Parameters:
xmlStreamReader
- a xmlStreamReader object.strict
- a strict object.- Returns:
- SettingsSecurity
- Throws:
IOException
- IOException if any.XMLStreamException
- XMLStreamException if any.
-
resolveReferences
Method resolveReferences.- Parameters:
value
- a value object.
-