Package org.glassfish.admin.rest.readers
Class XmlInputObject
- java.lang.Object
-
- org.glassfish.admin.rest.provider.ProviderUtil
-
- org.glassfish.admin.rest.readers.InputObject
-
- org.glassfish.admin.rest.readers.XmlInputObject
-
public class XmlInputObject extends InputObject
- Author:
- Rajeshwar Patil
-
-
Field Summary
Fields Modifier and Type Field Description static Character
AMP
The Character '&'.static Character
APOS
The Character '''.static Character
BANG
The Character '!'.static Character
EQ
The Character '='.static Character
GT
The Character '>'.static Character
LT
The Character '<'.static Character
QUEST
The Character '?'.static Character
QUOT
The Character '"'.static Character
SLASH
The Character '/'.-
Fields inherited from class org.glassfish.admin.rest.readers.InputObject
map
-
Fields inherited from class org.glassfish.admin.rest.provider.ProviderUtil
KEY_CHILD_RESOURCE, KEY_CHILD_RESOURCES, KEY_COMMAND, KEY_COMMANDS, KEY_ENTITY, KEY_METHODS
-
-
Constructor Summary
Constructors Constructor Description XmlInputObject(InputStream inputstream)
Construct a XmlInputObjectfrom a input stream.XmlInputObject(String source)
Construct a XmlInputObjectfrom a XML text string.XmlInputObject(XmlInputReader xmlReader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map
getMap()
Map
initializeMap()
Construct and returns a map of input key-value pairs-
Methods inherited from class org.glassfish.admin.rest.readers.InputObject
get, getBoolean, getDouble, getInt, getLong, getString, has, isNull, keys, length, put, putMap, putMap, stringToValue
-
Methods inherited from class org.glassfish.admin.rest.provider.ProviderUtil
getElementLink, getEndXmlElement, getHint, getHtmlForComponent, getHtmlHeader, getHtmlRepresentationForAttributes, getHtmlRespresentationsForCommand, getJsonForMethodMetaData, getJsonForMethodMetaData, getStartXmlElement, getStatistic, getStatistics, getStringMap, getXmlForMethodMetaData, jsonValue, quote, readAsString, slashToDash
-
-
-
-
Field Detail
-
AMP
public static final Character AMP
The Character '&'.
-
APOS
public static final Character APOS
The Character '''.
-
BANG
public static final Character BANG
The Character '!'.
-
EQ
public static final Character EQ
The Character '='.
-
GT
public static final Character GT
The Character '>'.
-
LT
public static final Character LT
The Character '<'.
-
QUEST
public static final Character QUEST
The Character '?'.
-
QUOT
public static final Character QUOT
The Character '"'.
-
SLASH
public static final Character SLASH
The Character '/'.
-
-
Constructor Detail
-
XmlInputObject
public XmlInputObject(InputStream inputstream) throws InputException, IOException
Construct a XmlInputObjectfrom a input stream.- Parameters:
inputstream
- an input stream- Throws:
InputException
- If there is a syntax error in the source input stream or a duplicate key.IOException
-
XmlInputObject
public XmlInputObject(String source) throws InputException
Construct a XmlInputObjectfrom a XML text string.- Parameters:
source
- A XML text string- Throws:
InputException
- If there is a syntax error in the source string or a duplicated key.
-
XmlInputObject
public XmlInputObject(XmlInputReader xmlReader)
-
-
Method Detail
-
initializeMap
public Map initializeMap() throws InputException
Construct and returns a map of input key-value pairs- Specified by:
initializeMap
in classInputObject
- Returns:
- The map of key-value pairs.
- Throws:
InputException
- If there is a syntax error in the source string or a duplicated key.
-
getMap
public Map getMap()
-
-